jpeg & php & apache

From: Douglas B. Jones <douglas_at_gpc.peachnet.edu>
Date: Tue, 09 Oct 2001 16:24:41 -0400

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
Received on Tue Oct 09 2001 - 20:25:15 NZDT

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