[Zlib-devel] [zlib-devel] Issues with "make install" in zlib-1.2.5

Török Edwin edwintorok at gmail.com
Tue Apr 20 15:02:08 EDT 2010


On 04/20/2010 08:59 PM, Nelson H. F. Beebe wrote:
> On OpenSUSE, configure reports
> 
> 	Checking for shared library support...
> 	Tested /usr/bin/cc -w -c -O ztest8549.c
> 	Tested cc -shared -O -o ztest8549.so ztest8549.o
> 	No shared library support; try without defining CC and CFLAGS
> 	Building static library libz.a version 1.2.5 with /usr/bin/cc.
> 	/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld:
> 	ztest8549.o: relocation R_X86_64_PC32 against undefined symbol
> 	`getchar@@GLIBC_2.2.5' can not be used when making a shared
> 	object; recompile with -fPIC
> 	/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld:
> 	final link failed: Bad value collect2: ld returned 1 exit
> 	status
> 
> I have about 40 shared libraries in /usr/local/lib* on that platform
> from other packages, so it is unclear why zlib won't build that way
> too.

It looks like it picked up cc instead of gcc, and zlib's configure only
knows to pass -fPIC to gcc.
Perhaps configure should use a more reliable way of detecting -fPIC, or
try -fPIC even if it thinks you're not using gcc.

Best regards,
--Edwin




More information about the Zlib-devel mailing list