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)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 256508
4.6
People
(Reporter: afabian, Assigned: wtc)
Details
Attachments
(3 files)
|
72.69 KB,
text/plain
|
Details | |
|
277 bytes,
text/plain
|
Details | |
|
686 bytes,
patch
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•21 years ago
|
||
gmake -f client.mk build 2>&1 | tee build.out
| Reporter | ||
Comment 2•21 years ago
|
||
| Reporter | ||
Comment 3•21 years ago
|
||
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.
| Assignee | ||
Comment 5•20 years ago
|
||
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
int poll(struct pollfd[], nfds_t, int);
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/poll.h?rev=1.11&content-type=text/x-cvsweb-markup
| Assignee | ||
Comment 7•20 years ago
|
||
Let me know if this patch gets you past the NSPR
build error.
| Assignee | ||
Comment 8•20 years ago
|
||
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
| Assignee | ||
Comment 9•20 years ago
|
||
*** 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.
Description
•