cannot find -lz when running makefile

RESOLVED INCOMPLETE

Status

NSS
Build
RESOLVED INCOMPLETE
2 years ago
2 years ago

People

(Reporter: shashwatmahar12, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160425114621

Steps to reproduce:

sudo nss_build_all


Actual results:

make[2]: Entering directory '/home/cr33d/nss/lib/ssl'
rm -f Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/libssl3.so
gcc -shared -m32 -Wl,--gc-sections -Wl,-z,defs -Wl,-soname -Wl,libssl3.so  -Wl,--version-script,Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl.def -o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/libssl3.so Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/derive.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/dtlscon.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/prelib.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl3con.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl3gthr.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslauth.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslcon.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssldef.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslenum.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslerr.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslerrstrs.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslinit.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl3ext.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslmutex.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslnonce.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslreveal.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslsecur.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslsnce.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslsock.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssltrace.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslver.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/authcert.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/cmpcert.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslinfo.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl3ecc.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/tls13con.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/tls13hkdf.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/sslcert.o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/unix_err.o   ../../../dist/Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/lib/libfreebl.a  -L../../../dist/Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/lib -lnss3 -L../../../dist/Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/lib -lnssutil3 -L../../../dist/Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/lib -lplc4 -lplds4 -lnspr4  -lpthread  -ldl -lc -lz
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
../../coreconf/rules.mk:289: recipe for target 'Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/libssl3.so' failed
make[2]: *** [Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/libssl3.so] Error 1
make[2]: Leaving directory '/home/cr33d/nss/lib/ssl'
../coreconf/rules.mk:101: recipe for target 'libs' failed
make[1]: *** [libs] Error 2
make[1]: Leaving directory '/home/cr33d/nss/lib'
coreconf/rules.mk:101: recipe for target 'libs' failed
make: *** [libs] Error 2



Expected results:

no errors must have been there
(Reporter)

Updated

2 years ago
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
(In reply to shashwatmahar12 from comment #0)
> gcc -shared -m32 -Wl,--gc-sections -Wl,-z,defs -Wl,-soname -Wl,libssl3.so  -Wl,--version-script,Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl.def -o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/libssl3.so > ../../../dist/Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/lib/libfreebl.a 
…

Note that this is a 32-bit build ("x86", not "x86_64"), which is the default.  "export USE_64=1" for a 64-bit build.

> -lpthread  -ldl -lc -lz
> /usr/bin/ld: cannot find -lz
> collect2: error: ld returned 1 exit status

Is the 32-bit development package for libz installed?
Hardware: x86_64 → x86
not enough information to act on
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.