Closed
Bug 292547
Opened 20 years ago
Closed 20 years ago
A compile error caused by a 'wrong' #ifdef
Categories
(NSPR :: NSPR, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: er.baitch, Assigned: wtc)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: thunderbird-1.0.2-source.tar.bz2 With this configure options it fails: ./configure --prefix=/opt/thunderbird --exec-prefix=/opt/thunderbird --with-x --with-system-jpeg=/usr/lib/ --with-system-zlib=/usr/lib/ --with-system-png=/usr/lib/ --enable-calendar --enable-static-mail --enable-plaintext-editor-only --enable-extensions --enable-crash-on-assert with this error: ********Error*************** linking/prlink.c: In function `PR_GetLibraryFilePathname': linking/prlink.c:1720: error: `Dl_info' undeclared (first use in this function) linking/prlink.c:1720: error: (Each undeclared identifier is reported only once linking/prlink.c:1720: error: for each function it appears in.) linking/prlink.c:1720: error: parse error before "dli" linking/prlink.c:1723: warning: implicit declaration of function `dladdr' linking/prlink.c:1723: error: `dli' undeclared (first use in this function) gmake[4]: *** [linking/./prlink.o] Error 1 gmake[4]: Leaving directory `/usr/local/src/thunderbird/mozilla/nsprpub/pr/src' gmake[3]: *** [export] Error 2 gmake[3]: Leaving directory `/usr/local/src/thunderbird/mozilla/nsprpub/pr' gmake[2]: *** [export] Error 2 gmake[2]: Leaving directory `/usr/local/src/thunderbird/mozilla/nsprpub' gmake[1]: *** [nspr] Error 2 gmake[1]: Leaving directory `/usr/local/src/thunderbird/mozilla' make: *** [default] Error 2 ************************* Reproducible: Always Steps to Reproduce: 1../configure --prefix=/opt/thunderbird --exec-prefix=/opt/thunderbird --with-x --with-system-jpeg=/usr/lib/ --with-system-zlib=/usr/lib/ --with-system-png=/usr/lib/ --enable-calendar --enable-static-mail --enable-plaintext-editor-only --enable-extensions --enable-crash-on-assert 2. 3. Actual Results: compile fails Expected Results: compile i've solved this error simply changing in file: nsprpub/pr/src/linking/prlink.c on line 65: #ifdef XP_UNIX with: #if defined(XP_UNIX) || defined(LINUX)
Assignee: mscott → wtchang
Component: General → NSPR
Product: Thunderbird → NSPR
QA Contact: wtchang
Version: unspecified → other
Comment 1•20 years ago
|
||
XP_UNIX should be defined on linux. are you cross-compiling? The first few lines running configure should look like: checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu
The NSPR portion of the build completes for me with those build options. I don't believe those options will get you a thunderbird build anyway. You'll need to use the instructions from http://www.mozilla.org/projects/thunderbird/build.html .
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•