Closed Bug 232734 Opened 21 years ago Closed 2 years ago

NSPR requires "-lmp -laio" when -lposix4 used(Solaris 2.6 issue)

Categories

(NSPR :: NSPR, defect)

Sun
Solaris
defect

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: mmokrejs, Unassigned)

Details

(Whiteboard: reviewed)

User-Agent: Build Identifier: Mozilla 1.6 gcc -shared -Wl,-h,libnspr4.so,-z,combreloc,-z,defs -Wl,-f,\$ORIGIN/cpu/\$ISALIST/libnspr_flt4.so -o libnspr4.so -Wl,--versio n-script,./nsprmap.sun ./prvrsion.o io/./prfdcach.o io/./prmwait.o io/./prmapopt.o io/./priometh.o io/./pripv6.o io/./prlayer .o io/./prlog.o io/./prmmap.o io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o threads/./prcmon.o threads/./prrwloc k.o threads/./prtpd.o linking/./prlink.o malloc/./prmem.o md/./prosdep.o memory/./prshm.o memory/./prshma.o memory/./prseg.o misc/./pralarm.o misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o misc/./prenv.o misc/./prerr.o misc/./prerror.o misc/./prer rortable.o misc/./prinit.o misc/./prinrval.o misc/./pripc.o misc/./prlog2.o misc/./prlong.o misc/./prnetdb.o misc/./prolock.o misc/./prrng.o misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o misc/./prtime.o malloc/./prmalloc.o pth reads/./ptsynch.o pthreads/./ptio.o pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o md/unix/./unix_errors.o md/uni x/./uxproces.o md/unix/./uxrng.o md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./solaris.o md/unix/./os_SunOS.o -lpthread -lth read -lposix4 -lsocket -lnsl -ldl -lc -lm /usr/lib/libposix4.so: undefined reference to `__aio_suspend' /usr/lib/libposix4.so: undefined reference to `__aio_cancel' /usr/lib/libposix4.so: undefined reference to `__aio_fsync' /usr/lib/libposix4.so: undefined reference to `__lio_listio64' /usr/lib/libposix4.so: undefined reference to `aio_fork' /usr/lib/libposix4.so: undefined reference to `__aio_suspend64' /usr/lib/libnsl.so: undefined reference to `mp_madd' /usr/lib/libposix4.so: undefined reference to `__aio_return64' /usr/lib/libposix4.so: undefined reference to `__aio_read64' /usr/lib/libposix4.so: undefined reference to `__aio_error' /usr/lib/libposix4.so: undefined reference to `__aio_write' /usr/lib/libnsl.so: undefined reference to `mp_mtox' /usr/lib/libposix4.so: undefined reference to `__aio_return' /usr/lib/libposix4.so: undefined reference to `__aio_error64' /usr/lib/libnsl.so: undefined reference to `mp_mfree' /usr/lib/libnsl.so: undefined reference to `mp_itom' /usr/lib/libposix4.so: undefined reference to `__aio_cancel64' /usr/lib/libnsl.so: undefined reference to `mp_mult' /usr/lib/libnsl.so: undefined reference to `mp_pow' /usr/lib/libposix4.so: undefined reference to `__lio_listio' /usr/lib/libposix4.so: undefined reference to `__aio_write64' /usr/lib/libnsl.so: undefined reference to `mp_xtom' /usr/lib/libnsl.so: undefined reference to `mp_mdiv' /usr/lib/libposix4.so: undefined reference to `__aio_read' /usr/lib/libposix4.so: undefined reference to `__aio_fsync64' collect2: ld returned 1 exit status Fix: make sure the mozilla/nsprpub/pr/src/Makefile looks like: # In Solaris 2.6 or earlier, -lrt is called -lposix4. # -lposix4 needs -lmp and -laio # LIBRT_TEST=$(firstword $(sort 5.7 $(OS_RELEASE))) ifeq (5.7, $(LIBRT_TEST)) LIBRT=-lrt else LIBRT=-lposix4 -lmp -laio endif Reproducible: Always Steps to Reproduce: 1. 2. 3.
-> nspr
Assignee: general → wchang0222
Component: Browser-General → NSPR
Product: Browser → NSPR
QA Contact: general → wchang0222
Version: Trunk → other
OS: other → Solaris
Hardware: Other → Sun
QA Contact: wtchang → nspr
Whiteboard: reviewed
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.