Link to home
Start Free TrialLog in
Avatar of aijohn
aijohn

asked on

gzopen not recognized on compile

I am trying to compile and when I run ./configure I get

checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for ranlib... (cached) ranlib
checking for gdImageCreateFromPng in -lgd... (cached) no
checking for gdImageStringTTF in -lgd... (cached) no
checking for png_init_io in -lpng... (cached) no
checking for gzopen in -lz... (cached) no
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes

zlib1g, zlib1g-dbg, and zlib1g-dev are installed on ubuntu and zlib.h is in /usr/include/

any suggestions on how to get gzopen to work?

thanks
SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What does this show?

nm /usr/lib/libz.a | grep gzopen
Avatar of aijohn
aijohn

ASKER

000019a0 T gzopen
00001980 T gzopen64
Then the lib exists and has the symbols for gzopen in it... did you try linking against it like I suggested... just to make sure you can link to it? If that works you can always try looking at what the script is doing to check it exists.
Then I think the configure.pl script is not finding the correct library. Try compiling evilrix' program standalone. The problem might not be your system or your compiler, but your configure script.
@evilrix: oops I see you have it in hand
>> @evilrix: oops I see you have it in hand
No worries... collaboration is good for the soul (and the asker) :)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aijohn

ASKER

Wonderful!  Cleared config.cache and got a good install. This is old, old code and still hs problems but will handle that with some more questions.