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

Enrico Weigelt weigelt at metux.de
Mon Apr 26 13:29:41 EDT 2010


* Nelson H. F. Beebe <beebe at math.utah.edu> schrieb:
> During the zlib-1.2.4.x tests, the recommendation was not to install
> the built libraries, so I didn't.  However, experience this morning
> with the new zlib-1.2.5 shows that to have been a mistake.

A full build cycle should always include install into some $DESTDIR ;-o

> I noticed after doing the installs on all of my systems that on most,
> both libz.a and libz.so.1.2.5 are built and installed.  However,
> shared libraries are not built on Mac OS X, MirBSD, and OpenSUSE.

Obviously configure can't detect shared-library capability.
Maybe this is related to the recently discussed way of detecting
compiler errors on whether it does output ...


> 	% make shared
> 	cc -O -o examplesh example.o -L.

aehm, shouldnt there be an -lz ?

> 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

uuuups!

btw: perhaps you'd like to give my branch a try:

http://repo.or.cz/w/oss-qm-packages.git/shortlog/refs/heads/METUX.zlib.master

> Notice that three chmod commands have argument 644, while the first
> has u=rw,go=r.  While the symbolic form is legal, it is unwise to use
> it in Makefiles of portable code, since rather old chmod
> implementations may not recognize that form.  

has to be a *very* old one, IMHO. my first unix book, about 20yrs ago,
explained the symbolic version ...

> Also, it would be better
> to parametrize that argument as a Makefile macro, so I could override
> the default with
> 
> 	make install CHMODFLAGS=664

better something more precise, like SHLIB_PERMS ...
 

cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------




More information about the Zlib-devel mailing list