[MacPorts] #28216: perl5.8: library not found for -lutil (10.4 deployment target)
#28216: perl5.8: library not found for -lutil (10.4 deployment target) -------------------------------------------+-------------------------------- Reporter: anthony_oro@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.99 Keywords: perl5.8 universal 10.4 -lutil | Port: perl5.8 -------------------------------------------+-------------------------------- I am running OSX10.6 with latest MacPorts from SVN (1.9.99). I need to compile Universal PPC/i386 libraries for OSX 10.4 Target. So I set the following flags in macports.conf: build_arch i386, universal_archs ppc i386, macosx_deployment_target 10.4 I managed to build a few libraries successfully (libpng, fltk...) But I get a configure error for Perl5.8, saying that -lutil cannot be found. I tried port clean, and also a complete port reinstall, neither worked. I cannot find which is this library that -lutil refers too. (Note1: perl5.8 builds correctly if I remove macosx_deployment_target 10.4) (Note2: However, I DO NEED to build the libs for 10.4) {{{ :info:configure Operating system name? [darwin] :info:configure Operating system version? [10.6.0] :info:configure Installation prefix to use? (~name ok) [/opt/local] :info:configure AFS does not seem to be running... :info:configure What installation prefix should I use for installing files? (~name ok) :info:configure [/opt/local] :info:configure Build Perl for SOCKS? [n] :info:configure Use the PerlIO abstraction layer? [y] :info:configure Getting the current patchlevel... :info:configure Build a threading Perl? [n] :info:configure Build Perl for multiplicity? [n] :info:configure Use which C compiler? [/usr/bin/gcc-4.0] :info:configure ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong- branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o :info:configure ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong- branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o :info:configure Checking for GNU cc in disguise and/or its version number... :info:configure ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong- branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o :info:configure Now, how can we feed standard input to your C preprocessor... :info:configure Directories to use for library searches? [/opt/local/lib /usr/lib] :info:configure What is the file extension used for shared libraries? [dylib] :info:configure Try to use long doubles if available? [n] :info:configure Checking for optional libraries... :info:configure What libraries to use? [-ldbm -ldl -lm -lutil -lc] :info:configure What optimizer/debugger flag should be used? [-O3] :info:configure Any additional cc flags? :info:configure [-pipe -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -fno-common -DPERL_DARWIN -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include] :info:configure Let me guess what the preprocessor flags are... :info:configure Any additional ld flags (NOT including libraries)? :info:configure [-L/opt/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386] :info:configure Checking your choice of C compiler and flags for coherency... :info:configure I've tried to compile and run the following simple program: :info:configure :info:configure #include <stdio.h> :info:configure int main() { printf("Ok\n"); return(0); } :info:configure :info:configure I used the command: :info:configure :info:configure /usr/bin/gcc-4.0 -o try -O3 -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -fno-common -DPERL_DARWIN -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -L/opt/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 try.c -ldbm -ldl -lm -lutil -lc :info:configure ./try :info:configure :info:configure and I got the following output: :info:configure :info:configure ld: library not found for -lutil :info:configure ld: library not found for -lutil :info:configure collect2: ld returned 1 exit status :info:configure collect2: ld returned 1 exit status :info:configure lipo: can't open input file: /var/tmp//ccuUvHCC.out (No such file or directory) :info:configure I can't compile the test program. :info:configure You have a BIG problem. Shall I abort Configure [y] :info:configure Ok. Stopping Configure. :info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.9" && /bin/sh Configure -des -D prefix='/opt/local' -D scriptdir='/opt/local/bin' -D cppflags="${CPPFLAGS}" -D ccflags="${CFLAGS}" -D ldflags="${LDFLAGS}" -D vendorprefix='/opt/local' -D man1ext='1pm' -D man3ext='3pm' -D cc=${CC} -D ld=${CC} -D man1dir='/opt/local/share/man/man1p' -D man3dir='/opt/local/share/man/man3p' -D siteman1dir='/opt/local/share/man/man1' -D siteman3dir='/opt/local/share/man/man3' -D vendorman1dir='/opt/local/share/man/man1' -D vendorman3dir='/opt/local/share/man/man3' -D inc_version_list="5.8.8 5.8.8 /darwin-2level" -U i_bind -U i_gdbm -U i_db " returned error 1 :error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details) :debug:configure Backtrace: configure failure: shell command failed (see log for details)}}} -- Ticket URL: <https://trac.macports.org/ticket/28216> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28216: perl5.8: library not found for -lutil (10.4 deployment target) -------------------------------------------+-------------------------------- Reporter: anthony_oro@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.99 Keywords: perl5.8 universal 10.4 -lutil | Port: perl5.8 -------------------------------------------+-------------------------------- Comment(by anthony_oro@…): A bit of investigation revealed that /MacOSX10.4u.sdk/usr/lib/ does not contain libutil. On the other hand it is available in the 10.5 and 10.6 SDKs. Does anyone know what I could do to solve this problem? -- Ticket URL: <https://trac.macports.org/ticket/28216#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28216: perl5.8: library not found for -lutil (10.4 deployment target) ----------------------------------+----------------------------------------- Reporter: anthony_oro@… | Owner: ricci@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.99 Keywords: | Port: perl5.8 ----------------------------------+----------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => ricci@… * keywords: perl5.8 universal 10.4 -lutil => -- Ticket URL: <https://trac.macports.org/ticket/28216#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28216: perl5.8: library not found for -lutil (10.4 deployment target) -----------------------------------+---------------------------------------- Reporter: anthony_oro@… | Owner: ricci@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.99 Resolution: wontfix | Keywords: Port: perl5.8 | -----------------------------------+---------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => wontfix Comment: Unless someone comes up with a fix and attaches a patch it seems unlikely this will be fixed. Note that we don't officially support changing the deployment target. -- Ticket URL: <https://trac.macports.org/ticket/28216#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts