Q: compiled gd on 4.0F with jpeg/freetype extensions?

From: Ian 'Ivo' Veach <ivo_at_scsr.nevada.edu>
Date: Mon, 25 Sep 2000 15:05:02 -0700 (PDT)

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_at_nevada.edu UCCSN System Computing Services
http://www.nevada.edu/~ivo postmaster/webmaster/sysadmin
________________________________________________________________________
Received on Mon Sep 25 2000 - 22:06:13 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT