-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to install glib on 10.4.11 #594
Comments
Hm, that's interesting. It passed |
Yep. I ran into the same issue while trying to build Cairo. :( Gist of the output: https://gist.github.com/jarcane/8531f6cc5659616a7cae88ee83aba238 Does anyone know if the same issue occurs on Leopard? |
Getting a very similar error: libtool: link: /usr/bin/gcc-4.0 -Wall -Wstrict-prototypes -Os -w -pipe -mcpu=970 -faltivec -mmacosx-version-min=10.4 -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,Foundation -o .libs/glib-compile-resources gvdb-builder.o glib-compile-resources.o -L/usr/local/opt/zlib/lib -L/usr/local/opt/gettext/lib -L/usr/local/lib ./.libs/libgio-2.0.dylib -L/usr/local/Cellar/pcre/8.39/lib -L/usr/local/Cellar/libffi/3.0.13/lib -L/usr/local/Cellar/zlib/1.2.11/lib /private/tmp/glib20191028-24140-18u539k/glib-2.50.1/gobject/.libs/libgobject-2.0.dylib /private/tmp/glib20191028-24140-18u539k/glib-2.50.1/gmodule/.libs/libgmodule-2.0.dylib -lz -lresolv ../gobject/.libs/libgobject-2.0.dylib -lffi ../gmodule/.libs/libgmodule-2.0.dylib /private/tmp/glib20191028-24140-18u539k/glib-2.50.1/glib/.libs/libglib-2.0.dylib ../glib/.libs/libglib-2.0.dylib /usr/lib/libiconv.dylib -lpcre -lintl |
Error: No such file or directory - /usr/sbin/pkgutil Install XCode 2.5. |
I have XCode 2.5 installed, it has been installed from the beginning. |
Glib failed to install on my Mac OS 10.4.11 (x86) system. Here is the output: Making all in tests |
I also encountered the same exact error as the OP, on a PowerMac G4 AGP running 10.4.11. I discovered that it is due to how the default Apple GCC4.0 was compiling The solution that worked for me was to |
I'll give that a go this week! |
OK, took a month to get to it :) But I'm getting the same errors after installing GCC 7.3.0 via Tigerbrew. Not sure what start Tigerbrew is in at the moment, perhaps I ought to remove and start over. Is there a way to set the default CC for Tigerbrew and just brew everything under GCC 7.3.0? |
I can confirm that there are two methods to successfully install glib on OS X 10.4.11 (PowerPC, but this probably applies to x86 as well). The first, simpler method involves using brew install apple-gcc42
brew remove zlib
brew install glib The second method involves using brew install gcc
brew remove zlib
brew install --cc=gcc-7 zlib
brew install glib @chapmajs Try using either of the methods above and see if you can get I think this issue can be resolved directly in the zlib formula by specifying The If I have some free time in the future, I may submit a PR that fixes this issue. |
Hey, that seems to have done it! Currently building some stuff that needs glib to verify. Thanks a million! |
Good to go! I was able to build the applications that were failing before. Thanks again to everyone involved. |
Building zlib with GCC 4.0 results in a static library instead of a shared library, which can cause formulae that depend on zlib (such as glib in issue mistydemeo#594) to fail to build.
* zlib-block-gcc-4.0: zlib: Require building with GCC 4.2 or higher. Fixes mistydemeo#594.
This is a fresh install of tigerbrew with just a few packages installed, gsl, curl and the pre-requisites for glib. It fails in a fashion similar to issue #500, I believe. The logs are attached, I added .txt to some of them to upload.
Tks.
02.make.txt
01.configure.txt
config.log
Last 15 lines from /Users/edevaldo/Library/Logs/Homebrew/glib/02.make:
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_deflateSetHeader
_inflateGetHeader
collect2: ld returned 1 exit status
make[4]: *** [glib-compile-resources] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: /usr/bin/gcc-4.0 -Wall -Wstrict-prototypes -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,Foundation -o .libs/gsettings gsettings-tool.o -L/usr/local/opt/zlib/lib -L/usr/local/opt/gettext/lib -L/usr/local/lib ./.libs/libgio-2.0.dylib -L/usr/local/Cellar/pcre/8.39/lib -L/usr/local/Cellar/libffi/3.0.13/lib -L/usr/local/Cellar/zlib/1.2.11/lib /private/tmp/glib20180603-18795-18z0sgc/glib-2.50.1/gobject/.libs/libgobject-2.0.dylib /private/tmp/glib20180603-18795-18z0sgc/glib-2.50.1/gmodule/.libs/libgmodule-2.0.dylib -lz -lresolv ../gobject/.libs/libgobject-2.0.dylib -lffi ../gmodule/.libs/libgmodule-2.0.dylib /private/tmp/glib20180603-18795-18z0sgc/glib-2.50.1/glib/.libs/libglib-2.0.dylib ../glib/.libs/libglib-2.0.dylib /usr/lib/libiconv.dylib -lpcre -lintl
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_inflateGetHeader
collect2: ld returned 1 exit status
make[4]: *** [gsettings] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: No such file or directory - /usr/sbin/pkgutil
The text was updated successfully, but these errors were encountered: