Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.
Again error at netconf.c, is it not patched? do I have to manually edit netconf.c again in the src dir?

Code:
darwin/netconf.c:78:31: error: initialization of 'CFDictionaryRef' {aka 'const struct __CFDictionary *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
darwin/netconf.c:84:47: error: 'kSCPropNetProxiesHTTPEnable' undeclared (first use in this function); did you mean 'kCFNetworkProxiesHTTPEnable'?
   84 |                                               kSCPropNetProxiesHTTPEnable);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               kCFNetworkProxiesHTTPEnable
darwin/netconf.c:84:47: note: each undeclared identifier is reported only once for each function it appears in
darwin/netconf.c:94:55: error: 'kSCPropNetProxiesHTTPProxy' undeclared (first use in this function)
   94 |                                                       kSCPropNetProxiesHTTPProxy);
      |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
darwin/netconf.c:99:57: error: 'kSCPropNetProxiesHTTPPort' undeclared (first use in this function)
   99 |                                                         kSCPropNetProxiesHTTPPort);
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from darwin/netconf.c:28:
../include/vlc_common.h: At top level:
../include/vlc_common.h:829:13: warning: 'vlc_free' defined but not used [-Wunused-function]
  829 | static void vlc_free(void *ptr)
      |             ^~~~~~~~
make[3]: *** [darwin/netconf.lo] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_VLC2/VLC2/work/vlc-2.2.8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_VLC2/VLC2/work/vlc-2.2.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_VLC2/VLC2/work/vlc-2.2.8'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_VLC2/VLC2/work/vlc-2.2.8'

Where to edit the file for success? src dir or work dir?

I think I have missed some header then. Give me a sec.

No need to clean the build. Let me check what was missed.
 
  • Like
Reactions: saxfun
Again error at netconf.c, is it not patched? do I have to manually edit netconf.c again in the src dir?

Code:
darwin/netconf.c:78:31: error: initialization of 'CFDictionaryRef' {aka 'const struct __CFDictionary *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
darwin/netconf.c:84:47: error: 'kSCPropNetProxiesHTTPEnable' undeclared (first use in this function); did you mean 'kCFNetworkProxiesHTTPEnable'?
   84 |                                               kSCPropNetProxiesHTTPEnable);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               kCFNetworkProxiesHTTPEnable
darwin/netconf.c:84:47: note: each undeclared identifier is reported only once for each function it appears in
darwin/netconf.c:94:55: error: 'kSCPropNetProxiesHTTPProxy' undeclared (first use in this function)
   94 |                                                       kSCPropNetProxiesHTTPProxy);
      |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
darwin/netconf.c:99:57: error: 'kSCPropNetProxiesHTTPPort' undeclared (first use in this function)
   99 |                                                         kSCPropNetProxiesHTTPPort);
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from darwin/netconf.c:28:
../include/vlc_common.h: At top level:
../include/vlc_common.h:829:13: warning: 'vlc_free' defined but not used [-Wunused-function]
  829 | static void vlc_free(void *ptr)
      |             ^~~~~~~~
make[3]: *** [darwin/netconf.lo] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_VLC2/VLC2/work/vlc-2.2.8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_VLC2/VLC2/work/vlc-2.2.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_VLC2/VLC2/work/vlc-2.2.8'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_VLC2/VLC2/work/vlc-2.2.8'

Where to edit the file for success? src dir or work dir?

Okay, so you could either replace the contents of that file with https://raw.githubusercontent.com/v...481927ce8c1d6202fb890233/src/darwin/netconf.c (same as you did earlier) or just add `#include <SystemConfiguration/SystemConfiguration.h>` below CoreServices.h one (or in place of it).

UPD. With updated SystemConfiguration patch.
 

Attachments

  • VLC2.zip
    53.3 KB · Views: 25
Last edited:
Build failed.

Did you add the header or replace the whole thing? I suggest for now just replace it with https://raw.githubusercontent.com/v...481927ce8c1d6202fb890233/src/darwin/netconf.c since that already worked for you earlier.

I.e. this worked before: https://forums.macrumors.com/thread...pc.2421891/page-3?post=33480225#post-33480225 (so it must work now as well).
What failed after that was linking, which got fixed by configure-script-related part of patch-SystemConfiguration.diff.
 
Last edited:
Bild 2.png



Mannnnn, after a couple of days/hours . . . it is working now. the app itself is not under /Applications/MacPorts, nor in /Applications. I can start it via terminal, ether is vlc. vlc-wrapper, vlc-wrapper-original and vlc-orig.

i have to test its functionality. it seems there are not so many people around with vlc 2.2.8 on 10.5.8 and MPs . . . ;)

vlc is working when used in gpodder as streaming client. seems to have some errors on closing and maybe dylib and au components. will test this on video files.
 
Last edited:
  • Like
Reactions: barracuda156
View attachment 2436539


Mannnnn, after a couple of days/hours . . . it is working now. the app itself is not under /Applications/MacPorts, nor in /Applications. I can start it via terminal, ether is vlc. vlc-wrapper, vlc-wrapper-original and vlc-orig.

i have to test its functionality. it seems there are not so many people around with vlc 2.2.8 on 10.5.8 and MPs . . . ;)

vlc is working when used in gpodder as streaming client. seems to have some errors on closing and maybe dylib and au components. will test this on video files.

1. What does `file /opt/local/bin/vlc-wrapper-orig` show? If it is a script, as it sounds to be, then, perhaps, it is done a bit wrong now in the portfile. This is not something to be urgently fixed, but I should check it later on 10.6.
Installation inside MacPorts prefix is expected. I think I just didn’t see a reason to bother with fixing an app bundle, it never helps on old systems, but not infrequently breaks launching.

2. Some warnings/errors in terminal output are there. As long as the app works, those are of little concern.

P. S. You can also modify settings in SMTube so that VLC is used for the YouTube vids.
 
1. vlc-wrapper-orig - no such file or dir

2. video module on automatic does not seem to work . . . it outputs a video through x11. if I want to close vlc-orig it crashes after hard stop via ALT+CMD+ESC.
 
1. vlc-wrapper-orig - no such file or dir

2. video module on automatic does not seem to work . . . it outputs a video through x11. if I want to close vlc-orig it crashes after hard stop via ALT+CMD+ESC.

1. Ok, never mind. I assume that `legacysupport.redirect_bins vlc vlc-wrapper` in portfile should produce wrappers for both, and then original files will be renamed to vlc-orig and vlc-wrapper-orig. But no need to bother with that now, it is easier for me to check it directly on a powerpc machine. (What I thought is that we do not need a wrapper of a wrapper, so if that is a script, it should be done differently.)

2. I usually close apps from terminal directly with Control + C. Re video: do you not get any video output at all? It does use X11, because Cocoa video is not supported. But X11 should work, provided you have xorg-server-legacy (which you do, I believe).

UPD. By the way, what I remembered now: VLC may need hardware acceleration for video playback. If the GPU does not support it, there may be issues. (I do not know which Mac models and which GPUs have no hardware acceleration.)
This perhaps can be verified with official, old VLC, which behaves similarly, as I recall.
If that is the issue, then VLC may be a no-go, and then alternatives are QMPlay2 or mpv-legacy.
 
Last edited:
2. I cannot close the app with Control+c from terminal.
2b. video through x11 is working, direct openGL is not, but you gave the explanation.
 
  • Like
Reactions: barracuda156
2. I cannot close the app with Control+c from terminal.
2b. video through x11 is working, direct openGL is not, but you gave the explanation.

Perhaps the only video player not relying on X11 and actually working is QMPlay2. I think you may have a better experience with that app, it is definitely more stable than VLC and IMO delivers a better quality.
 
i will start a lil competition between the two. both are installed. what about mpv? on intel it is running superb. on ppc imho it is not possible? what kind of experience do you have with player on ppc?
 
i will start a lil competition between the two. both are installed. what about mpv? on intel it is running superb. on ppc imho it is not possible? what kind of experience do you have with player on ppc?

You can try installing mpv-legacy.

I suspect that overall experience may depend on both hardware and OS (I only ran those on 10a190 which is not super-stable with OpenGL stuff), but QMPlay2 worked nearly flawlessly for video playback for me, while everything with video via X11 was slightly troublesome and could not handle very large video files.

BTW, you can also try ffplay as a video player – from ffmpeg7 or ffmpeg6. It uses SDL2 via X11.
 
  • Like
Reactions: saxfun
@barracuda156, just trying out other ports on 10.5.8 like GIMP and RAWSTUDIO. Both are failing though I saw that you got them working and fixed a lot of errors in the past. with gcc14 it is not working on my system. attached the logs from both applications. RAWSTUDIO failed compiling after install of all its dependencies, GIMP gave up directly on its first dependency AALIB.

EDIT: regarding GIMP:

i installed all possible ports manually, only these ports are left. .. .

Code:
sudo port -v install gimp--->  Computing dependencies for gimp........
The following dependencies will be installed:
 aalib
 gimp-lqr-plugin
 gimp2
 gimp2-launcher
 gutenprint
 libmypaint
 xsane
Continue? [Y/n]:
 

Attachments

  • rawstudio.txt
    1.9 MB · Views: 22
  • aalib.txt
    61.4 KB · Views: 23
Last edited:
@barracuda156, just trying out other ports on 10.5.8 like GIMP and RAWSTUDIO. Both are failing though I saw that you got them working and fixed a lot of errors in the past. with gcc14 it is not working on my system. attached the logs from both applications. RAWSTUDIO failed compiling after install of all its dependencies, GIMP gave up directly on its first dependency AALIB.

EDIT: regarding GIMP:

i installed all possible ports manually, only these ports are left. .. .

Code:
sudo port -v install gimp--->  Computing dependencies for gimp........
The following dependencies will be installed:
 aalib
 gimp-lqr-plugin
 gimp2
 gimp2-launcher
 gutenprint
 libmypaint
 xsane
Continue? [Y/n]:

I suspect GIMP won’t work correctly until this is fixed: https://trac.macports.org/ticket/69525
For aalib I have opened a new ticket: https://trac.macports.org/ticket/71123
You may try building it with gcc14 instead:
Code:
sudo port clean aalib
sudo port -v install aalib configure.compiler=macports-gcc-14

rawstudio error is likely an incompatibility with the current libxml2: https://github.com/rawstudio/rawstudio/issues/94
However, the app seems more or less abandoned. I recommend using rawtherapee instead.
 
  • Like
Reactions: saxfun
Thanks for your suggestion, I'll try compiling rawtherapee atm.

aalib failed while building. log attached.

gimp is broken atm? what a shame.
 

Attachments

  • aalib.txt
    107.5 KB · Views: 21
Thanks for your suggestion, I'll try compiling rawtherapee atm.

aalib failed while building. log attached.

gimp is broken atm? what a shame.

Re aalib: please comment in Trac ticket, so that someone can notice there is a demand for a fix. It is probably related to some of the recent changes in ncurses. (Likely will fail on some other systems too, and I think nothing specific to powerpc as such.)

Re GIMP, the bug appears similar to the one reported on Win32: https://gitlab.gnome.org/GNOME/gimp/-/issues/4428
Notice, I have not tried it on 10.5, so it could be worth checking if it fails or not.
Again, to increase chances of having it fixed, worth commenting there or even opening a new issue for macOS specifically. (I am pretty sure GIMP upstream does not officially support any older OS, but asking nicely never hurts.)
 
at the end I could compile aalib with the suggested fix from kencu!


in the meantime I fixed libmypaint too with this fix from Ryan:




building GIMP failed with the same error you discovered:


could you resolve it, cause you wrote GIMP is broken since it cannot open files. so you did build it?


EDIT: with these fixes for GENTOO I could circumvent the tiff problems, but there are more . . .


GIMP is compiling atm. I'll report back.
 
Last edited:
  • Like
Reactions: barracuda156
gimp is installed! gimp-launcher is not (port tries to install it, but is extraction gimp-2.10.38-x86_64). gimp2-launcher is not for ppc?!


but as you said, gimp can open .gifs but e.g. no .pngs. its crashes immediately.

Code:
<!-- Copy-paste this whole debug data to report to developers -->


```
GNU Image Manipulation Program version 2.10.38
git-describe: GIMP_2_10_38
Build: unknown rev 0 for macos
# C compiler #
    Using built-in specs.
    COLLECT_GCC=/opt/local/bin/gcc-mp-14
    COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/powerpc-apple-darwin9/14.2.0/lto-wrapper
    Target: powerpc-apple-darwin9
    Configured with: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/gcc14/work/gcc-14.2.0/configure --prefix=/opt/local --build=powerpc-apple-darwin9 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc14 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-14 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-14 --with-gxx-include-dir=/opt/local/include/gcc14/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto --enable-libstdcxx-time --without-build-config --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local --disable-tls --with-pkgversion='MacPorts gcc14 14.2.0_1'
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 14.2.0 (MacPorts gcc14 14.2.0_1)

# Libraries #
using babl version 0.1.108 (compiled against version 0.1.108)
using GEGL version 0.4.48 (compiled against version 0.4.48)
using GLib version 2.78.4 (compiled against version 2.78.4)
using GdkPixbuf version 2.42.12 (compiled against version 2.42.12)
using GTK+ version 2.24.33 (compiled against version 2.24.33)
using Pango version 1.52.2 (compiled against version 1.52.2)
using Fontconfig version 2.15.0 (compiled against version 2.15.0)
using Cairo version 1.17.6 (compiled against version 1.17.6)

```
> fatal error: Bus error

Stack trace:
```
0   libgimpbase-2.0.0.dylib             0x00fd17cc gimp_stack_trace_print + 908
```
 
Last edited:
gimp is installed! gimp-launcher is not (port tries to install it, but is extraction gimp-2.10.38-x86_64). gimp2-launcher is not for ppc?!

Portfile has a note:

> name has an architecture in it, but we delete architecture dependent components

It should be arch-independent. I am not sure it will be helpful, but you can try.
 
thanks, I'll try.
gimp is installed, but only gifs are imported and some few other formats. jpeg-plugin, tiff-plugin etc. are crashing but without crashing the app. png-import is crashing the whole app.
 
thanks, I'll try.
gimp is installed, but only gifs are imported and some few other formats. jpeg-plugin, tiff-plugin etc. are crashing but without crashing the app. png-import is crashing the whole app.

Well, the only way to deal with this is to open an issue with GIMP upstream in a hope they can fix this.
https://gitlab.gnome.org/GNOME/gimp/-/issues/
If it was a build failure, it could be dealt with, but I have no idea what goes wrong at runtime there.
 
thanks, I'll try.
gimp is installed, but only gifs are imported and some few other formats. jpeg-plugin, tiff-plugin etc. are crashing but without crashing the app. png-import is crashing the whole app.

There is also `gimp3-devel` port, which uses gtk3. I have no idea if it compiles, but it is definitely worth trying at least.
 
Portfile has a note:

> name has an architecture in it, but we delete architecture dependent components

It should be arch-independent. I am not sure it will be helpful, but you can try.

in the portfile I omitted the line "distfiles" and use_dmg (no), but then port wont't find the distfile, of course. but you nailed it, I think it is not important to run gimp. gimp-3-devel, I saw it on the cmdline, maybe I try that one.
 
View attachment 2436539


Mannnnn, after a couple of days/hours . . . it is working now. the app itself is not under /Applications/MacPorts, nor in /Applications. I can start it via terminal, ether is vlc. vlc-wrapper, vlc-wrapper-original and vlc-orig.

i have to test its functionality. it seems there are not so many people around with vlc 2.2.8 on 10.5.8 and MPs . . . ;)

vlc is working when used in gpodder as streaming client. seems to have some errors on closing and maybe dylib and au components. will test this on video files.
@saxfun, I have VLC 2.0.10 as a Mac-native DMG, running successfully under Mac OS X 10.5.9 Sorbet Leopard, if that would be of interest. I can post it to one of my web sites for download. It is open source, so I believe that doing so is fully "legal".
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.