tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* jpeg & php & apache
@ 2001-10-09 20:24 Douglas B. Jones
  0 siblings, 0 replies; only message in thread
From: Douglas B. Jones @ 2001-10-09 20:24 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-09 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-09 20:24 jpeg & php & apache Douglas B. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox