Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#12997 closed defect (fixed)

tiff won't build with Leopard

Reported by: tannhaus@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: tannhaus@…, afb@…, davidc1947@…, expiation@…
Port: tiff

Description (last modified by mf2k (Frank Schima))

I keep trying to build tiff in order to install wine. It fails with the following:

libtool: link: creating tiffsplit
if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff  -I/opt/local/include -I/opt/local/include -I/opt/local/include -O2 -Wall -W   -O2 -Wall -W -MT tiffgt-tiffgt.o -MD -MP -MF ".deps/tiffgt-tiffgt.Tpo" -c -o tiffgt-tiffgt.o `test -f 'tiffgt.c' || echo './'`tiffgt.c; \
	then mv -f ".deps/tiffgt-tiffgt.Tpo" ".deps/tiffgt-tiffgt.Po"; else rm -f ".deps/tiffgt-tiffgt.Tpo"; exit 1; fi
tiffgt.c: In function 'raster_keys':
tiffgt.c:303: warning: unused parameter 'x'
tiffgt.c:303: warning: unused parameter 'y'
tiffgt.c: In function 'raster_special':
tiffgt.c:348: warning: unused parameter 'x'
tiffgt.c:348: warning: unused parameter 'y'
/bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc-4.0  -O2 -Wall -W  -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o tiffgt  tiffgt-tiffgt.o ../libtiff/libtiff.la ../port/libport.la -L/usr/X11/lib -framework GLUT -lobjc -framework OpenGL -ljpeg -lz -lc
libtool: link: /usr/bin/gcc-4.0 -O2 -Wall -W -o .libs/tiffgt tiffgt-tiffgt.o  -L/opt/local/lib ../libtiff/.libs/libtiff.dylib ../port/.libs/libport.a -L/usr/X11/lib -framework GLUT -lobjc -framework OpenGL /opt/local/lib/libjpeg.dylib -lz -lc
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make[1]: *** [tiffgt] Error 1
make: *** [all-recursive] Error 1

Warning: the following items did not execute (for tiff): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (23)

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

Cc: tannhaus@… waqar@… added
Milestone: Port Bugs
Owner: changed from macports-dev@… to waqar@…

comment:2 Changed 16 years ago by afb@…

/bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -Wall -W  -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o tiffgt  tiffgt-tiffgt.o ../libtiff/libtiff.la ../port/libport.la -L/usr/X11/lib -framework GLUT -lobjc -framework OpenGL -ljpeg -lz -lc 

Apparently you can't use both -L/usr/X11/lib and -framework OpenGL, when on Leotard...

Removing the useless (for --with-apple-opengl-framework) -L/usr/X11/lib makes it compile OK.

comment:3 Changed 16 years ago by afb@…

platform macosx {
    configure.args-append   --with-apple-opengl-framework
    post-configure { reinplace "s,-L/usr/X11/lib,," ${worksrcpath}/tools/Makefile }
}

comment:4 Changed 16 years ago by tannhaus@…

That doesn't appear to work either. I get the following:

Error: Target org.macports.configure returned: reinplace ?-E? pattern file ...

comment:5 Changed 16 years ago by tannhaus@…

I take that back. It was a copy and paste error on my part.

platform macosx {

configure.args-append --with-apple-opengl-framework post-configure { reinplace "s,-L/usr/X11/lib" ${worksrcpath}/tools/Makefile }

}

does indeed work. It compiles fine now. Thank you.

comment:6 Changed 16 years ago by akb@…

same issue as original ticket; have applied change to port file; still fails to compile at same place:

--->  Cleaning jpeg
--->  Fetching tiff
--->  Attempting to fetch tiff-3.8.2.tar.gz from ftp://ftp.remotesensing.org/pub/libtiff/
--->  Verifying checksum(s) for tiff
--->  Extracting tiff
--->  Configuring tiff
--->  Building tiff with target all
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_tiff/work/tiff-3.8.2" && make all " returned error 2
Command output: libtool: link: creating tiffinfo
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff  -I/opt/local/include -I/opt/local/include -I/opt/local/include  -O2 -Wall -W -MT tiffmedian.o -MD -MP -MF ".deps/tiffmedian.Tpo" -c -o tiffmedian.o tiffmedian.c; \
	then mv -f ".deps/tiffmedian.Tpo" ".deps/tiffmedian.Po"; else rm -f ".deps/tiffmedian.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -Wall -W  -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o tiffmedian  tiffmedian.o ../libtiff/libtiff.la ../port/libport.la -ljpeg -lz -lc 
libtool: link: gcc -O2 -Wall -W -o .libs/tiffmedian tiffmedian.o  -L/opt/local/lib ../libtiff/.libs/libtiff.dylib ../port/.libs/libport.a /opt/local/lib/libjpeg.dylib -lz -lc
libtool: link: creating tiffmedian
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff  -I/opt/local/include -I/opt/local/include -I/opt/local/include  -O2 -Wall -W -MT tiffset.o -MD -MP -MF ".deps/tiffset.Tpo" -c -o tiffset.o tiffset.c; \
	then mv -f ".deps/tiffset.Tpo" ".deps/tiffset.Po"; else rm -f ".deps/tiffset.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -Wall -W  -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o tiffset  tiffset.o ../libtiff/libtiff.la ../port/libport.la -ljpeg -lz -lc 
libtool: link: gcc -O2 -Wall -W -o .libs/tiffset tiffset.o  -L/opt/local/lib ../libtiff/.libs/libtiff.dylib ../port/.libs/libport.a /opt/local/lib/libjpeg.dylib -lz -lc
libtool: link: creating tiffset
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff  -I/opt/local/include -I/opt/local/include -I/opt/local/include  -O2 -Wall -W -MT tiffsplit.o -MD -MP -MF ".deps/tiffsplit.Tpo" -c -o tiffsplit.o tiffsplit.c; \
	then mv -f ".deps/tiffsplit.Tpo" ".deps/tiffsplit.Po"; else rm -f ".deps/tiffsplit.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -Wall -W  -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o tiffsplit  tiffsplit.o ../libtiff/libtiff.la ../port/libport.la -ljpeg -lz -lc 
libtool: link: gcc -O2 -Wall -W -o .libs/tiffsplit tiffsplit.o  -L/opt/local/lib ../libtiff/.libs/libtiff.dylib ../port/.libs/libport.a /opt/local/lib/libjpeg.dylib -lz -lc
libtool: link: creating tiffsplit
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff  -I/opt/local/include -I/opt/local/include -I/opt/local/include -O2 -Wall -W   -O2 -Wall -W -MT tiffgt-tiffgt.o -MD -MP -MF ".deps/tiffgt-tiffgt.Tpo" -c -o tiffgt-tiffgt.o `test -f 'tiffgt.c' || echo './'`tiffgt.c; \
	then mv -f ".deps/tiffgt-tiffgt.Tpo" ".deps/tiffgt-tiffgt.Po"; else rm -f ".deps/tiffgt-tiffgt.Tpo"; exit 1; fi
tiffgt.c: In function 'raster_keys':
tiffgt.c:303: warning: unused parameter 'x'
tiffgt.c:303: warning: unused parameter 'y'
tiffgt.c: In function 'raster_special':
tiffgt.c:348: warning: unused parameter 'x'
tiffgt.c:348: warning: unused parameter 'y'
/bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -Wall -W  -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o tiffgt  tiffgt-tiffgt.o ../libtiff/libtiff.la ../port/libport.la -L/usr/X11/lib -framework GLUT -lobjc -framework OpenGL -ljpeg -lz -lc 
libtool: link: gcc -O2 -Wall -W -o .libs/tiffgt tiffgt-tiffgt.o  -L/opt/local/lib ../libtiff/.libs/libtiff.dylib ../port/.libs/libport.a -L/usr/X11/lib -framework GLUT -lobjc -framework OpenGL /opt/local/lib/libjpeg.dylib -lz -lc
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make[1]: *** [tiffgt] Error 1
make: *** [all-recursive] Error 1

comment:7 Changed 16 years ago by sd@…

The fix worked for me

comment:8 Changed 16 years ago by akb@…

Just tried the fix again - worked this time. Great Cheers,

comment:9 Changed 16 years ago by afb@…

Patch applied in r30466.

comment:10 Changed 16 years ago by afb@…

Resolution: fixed
Status: newclosed

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

Cc: afb@… added

The fix does not appear to work for everyone; the problem has been re-reported in #13683.

comment:12 Changed 16 years ago by afb@…

Resolution: fixed
Status: closedreopened

Need a better workaround, instead of hack above.

http://developer.apple.com/qa/qa2007/qa1567.html

configure.ldflags.append \
-dylib_file \
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib

comment:13 Changed 16 years ago by jmroot (Joshua Root)

Cc: davidc1947@… added; waqar@… removed

Cc reporter of duplicate #14392.

comment:14 Changed 16 years ago by jmroot (Joshua Root)

The better fix doesn't seem to have ever been checked in. Any reason it shouldn't be?

comment:15 Changed 16 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed

Applied in r36600.

comment:16 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:17 Changed 15 years ago by expiation@…

In r48176 the change from r36600 was removed as "not needed". Currently, the same error occurs. Using XCode 3.1.2

comment:18 Changed 15 years ago by expiation@…

Cc: expiation@… added

Cc Me!

comment:19 in reply to:  17 Changed 15 years ago by raimue (Rainer Müller)

Replying to expiation@…:

In r48176 the change from r36600 was removed as "not needed". Currently, the same error occurs. Using XCode 3.1.2

Make sure you are really using Xcode >= 3.1 (full install, including Unix development tools), this bug has been fixed there.

comment:20 Changed 15 years ago by macports.org@…

Tiff refused to build for me with Xcode 3.1, but worked with 3.1.2.

comment:21 in reply to:  20 Changed 15 years ago by macports.org@…

Replying to macports.org@…:

Tiff refused to build for me with Xcode 3.1, but worked with 3.1.2.

I meant 3.1.3

comment:22 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:23 Changed 15 years ago by mf2k (Frank Schima)

Port: tiff added
Note: See TracTickets for help on using tickets.