From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96991940626710.tru64-unix-managers.marc@archive.invalid> From: "Ian 'Ivo' Veach" Date: Mon, 25 Sep 2000 22:05:02 +0000 To: tru64-unix-managers Subject: Q: compiled gd on 4.0F with jpeg/freetype extensions? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96991940626710 Greetings - Trying to compile gd 1.8.3 on a 4.0F platform. Seems to compile fine with or without options, but linker seems to fail when the jpeg options are included (have latest version of this and all other support libs). Boutell says try changing the -l flags around, but there's seven of them, and I'm not sure which order to juggle them in. 8^) Can anyone help me not re-invent the wheel and tell me which order you used to get a correct build? Here's the error message (similar ones (unresolved lz or lpng, depending on order) occur for different orders I've tried, but no rhyme or reason): (make) ... gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/src/Jpeg/jpeg-6b/ -I/usr/local/src/Freetype/freetype-1.3.1/lib gdtest.o -o gdtest -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -lttf -ljpeg -lgd -lm -lpng -lz /usr/bin/ld: Unresolved: jpeg_destroy jpeg_std_error jpeg_CreateCompress jpeg_set_defaults jpeg_set_quality jpeg_simple_progression jpeg_destroy_compress jpeg_start_compress jpeg_write_marker jpeg_write_scanlines jpeg_finish_compress jpeg_CreateDecompress jpeg_read_header jpeg_start_decompress jpeg_read_scanlines jpeg_finish_decompress jpeg_destroy_decompress jpeg_resync_to_restart collect2: ld returned 1 exit status *** Exit 1 Stop. I've made sure that the appropriate libraries and headers are included in the appropriate vars (in the Makefile): CFLAGS=-O -DHAVE_LIBTTF -DHAVE_JPEG LIBS=-lm -lgd -lpng -lz -lttf -ljpeg LIBDIRS=-L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib \ -L/usr/local/src/Jpeg/jpeg-6b INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include/X11 \ -I/usr/X11R6/include/X11 -I/usr/local/src/Jpeg/jpeg-6b \ -I/usr/local/src/Freetype/freetype-1.3.1/lib Even tried puting the library directly in current dir. Any suggestions / comments? cheers and thanks, ________________________________________________________________________ Ian 'Ivo' Veach, ivo@nevada.edu UCCSN System Computing Services http://www.nevada.edu/~ivo postmaster/webmaster/sysadmin ________________________________________________________________________