From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653641821704.tru64-unix-managers.marc@archive.invalid> From: "Douglas B. Jones" Date: Tue, 09 Oct 2001 20:24:41 +0000 To: tru64-unix-managers Subject: jpeg & php & apache X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653641821704 Hi, This is a compiling question, but I am wondering if there is a bug in the cc/ld command, so that is why I am posting it here. Here are the version information: %cc -V Compaq C V6.3-028 on Compaq Tru64 UNIX V5.1 (Rev. 732) Compiler Driver V6.3-026 (sys) cc Driver apache_1.3.20 php-4.0.6 jpeg-6b In the php configuration part, it say that it cannot find jpeg_read_header() Now, I have simplified everything down to the following: 1) the c code: char jpeg_read_header(); int main() { jpeg_read_header() ; return 0; } 2) the compile command: %cc -o t -g t.c -L/usr/local/lib -ljpeg 3) nm on /usr/local/lib/jpeg.a: %nm /usr/local/lib/libjpeg.a | grep jpeg_read_header jpeg_read_header | 0000000000000496 | T | 0000000000000008 4) the output from the #2 compile command: %cc -o t -g t.c -L/usr/local/lib -ljpeg ld: Unresolved: jpeg_read_header Does anyone have any ideas what is happening here. Please note that in the source code above, if I make it extern char ..., this make no difference or if I correctly define it as extern int.... A little later, I plan on doing another test where I will test against another library, but I was wondering if this struck any bells with anyone. Thanks for any help, Cheers, Douglas