Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18182 closed defect (fixed)

giflib 4.1.6 Build Failure

Reported by: ctempleton3@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: giflib

Description

giflib won't build for me

--->  Fetching giflib
--->  Attempting to fetch giflib-4.1.6.tar.bz2 from http://easynews.dl.sourceforge.net/giflib
--->  Verifying checksum(s) for giflib
--->  Extracting giflib
--->  Applying patches to giflib
--->  Configuring giflib
--->  Building giflib
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_giflib/work/giflib-4.1.6" && make all " returned error 2
Command output:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wall -c qprintf.c -o qprintf.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wall -c -o quantize.lo quantize.c
 /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wall -c quantize.c  -fno-common -DPIC -o .libs/quantize.o
 /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wall -c quantize.c -o quantize.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wall -version-info 5:6:1 -L/opt/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -o libgif.la -rpath /opt/local/lib dev2gif.lo dgif_lib.lo egif_lib.lo gif_err.lo gif_font.lo gif_hash.lo gifalloc.lo qprintf.lo quantize.lo -L/usr/X11R6/lib  -lX11   -L/usr/X11R6/lib  -lX11
/usr/bin/gcc-4.0 -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libgif.4.1.6.dylib  .libs/dev2gif.o .libs/dgif_lib.o .libs/egif_lib.o .libs/gif_err.o .libs/gif_font.o .libs/gif_hash.o .libs/gifalloc.o .libs/qprintf.o .libs/quantize.o  -L/opt/local/lib -L/usr/X11R6/lib /opt/local/lib/libX11.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wl,-syslibroot -Wl,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -install_name  /opt/local/lib/libgif.4.dylib -Wl,-compatibility_version -Wl,6 -Wl,-current_version -Wl,6.6
(cd .libs && rm -f libgif.4.dylib && ln -s libgif.4.1.6.dylib libgif.4.dylib)
(cd .libs && rm -f libgif.dylib && ln -s libgif.4.1.6.dylib libgif.dylib)
ar cru .libs/libgif.a  dev2gif.o dgif_lib.o egif_lib.o gif_err.o gif_font.o gif_hash.o gifalloc.o qprintf.o quantize.o
ranlib .libs/libgif.a
creating libgif.la
(cd .libs && rm -f libgif.la && ln -s ../libgif.la libgif.la)
Making all in util
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..  -I. -I../lib -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wall -c gif2epsn.c
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wall  -L/opt/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -o gif2epsn gif2epsn.o ../lib/libgif.la ../lib/libgetarg.a
mkdir .libs
/usr/bin/gcc-4.0 -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -Wall -Wl,-syslibroot -Wl,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -o .libs/gif2epsn gif2epsn.o  -L/opt/local/lib ../lib/.libs/libgif.dylib -L/usr/X11R6/lib /opt/local/lib/libX11.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib ../lib/libgetarg.a
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /opt/local/lib/libX11.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /opt/local/lib/libXau.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /opt/local/lib/libXdmcp.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_XGetImage
_XGetWindowAttributes
_XQueryColors
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccGSShkB.out (No such file or directory)
make[2]: *** [gif2epsn] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: giflib openmotif
Error: Status 1 encountered during processing.

Change History (3)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

It looks like you are trying to build giflib with the +universal variant, but you have not built its prerequisites xorg-libX11 (/opt/local/lib/libX11.dylib), xorg-libXau (/opt/local/lib/libXau.dylib) or xorg-libXdmcp (/opt/local/lib/libXdmcp.dylib) with the +universal variant. To solve this, either do not build giflib with the +universal variant, or rebuild those other ports with the +universal variant.

I see that giflib does not declare any dependencies on these X11 ports. I didn't realize giflib required them. I'll look into it and add the dependencies to the portfile if necessary.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jeremyhu@… added; ryandesign@… removed
Resolution: fixed
Status: assignedclosed

Jeremy added the X11 dependencies to giflib in r46263 which resolves this ticket.

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.