Closed Bug 269591 Opened 21 years ago Closed 20 years ago

build on OpenBSD attempts to redefine poll(2) and stops the build.

Categories

(NSPR :: NSPR, defect)

x86
OpenBSD
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 256508

People

(Reporter: afabian, Assigned: wtc)

Details

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.6) Gecko/20040902 Build Identifier: firefox-1.0-source.tar.bz2 The file /mozilla/nsprpub/pr/src/md/unix/uxwrap.c around line 356 has code to redefine the poll function, and some specific #ifdef stuff for OpenBSD. The build stops. This is OpenBSD 3.6 using the included system gcc-2.95.3 on the i386 platform. Reproducible: Always Steps to Reproduce: 1. create .mozconfig 2. gmake -f client.mk build 3. Actual Results: Attached. Expected Results: Compile without any additional tweaking.
gmake -f client.mk build 2>&1 | tee build.out
Attached file the .mozconfig used.
I was looking over this, and this output from configure doesn't seem right: checking for perl5... no checking for perl... /usr/bin/perl checking for minimum required perl version >= 5.004... 5.008005 checking for full perl installation... yes OpenBSD 3.6 has a vendor-bundled version perl 5.8.5 that other software seems to detect and use. Not that this really has anything to do with my bug. I don't know the perl install hierarchy that well, but the binary is in the standard place, /usr/bin/perl
This is a duplicate of Bug 256508.
Could you post the poll() declaration from /usr/include/sys/poll.h:57 ? This bug has a workaround: use the --with-pthreads configure option. Let me know if that works for you. In the current sources, I've made --with-pthreads the default. Alternatively, you can try changing the poll declaration in /mozilla/nsprpub/pr/src/md/unix/uxwrap.c to match the poll declaration in /usr/include/sys/poll.h and see if that enables you to build Firefox without using --with-pthreads. If you have some spare time, I'd be interested in knowing the result of this experiment. But --with-pthreads is still recommended.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Let me know if this patch gets you past the NSPR build error.
This is an NSPR bug. I've checked in the patch on the NSPR trunk for NSPR 4.6.
Assignee: bryner → wtchang
Component: Build Config → NSPR
Product: Firefox → NSPR
QA Contact: asa → wtchang
Target Milestone: --- → 4.6
Version: unspecified → 4.5
*** This bug has been marked as a duplicate of 256508 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: