libnssutil3 fails to link

RESOLVED DUPLICATE of bug 529878

Status

RESOLVED DUPLICATE of bug 529878
9 years ago
9 years ago

People

(Reporter: jeremyhu, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
On darwin x86_64 building for i386, libnssutil3.dylib fails to link:

gmake[5]: Leaving directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/security/nss/lib/ckfw'
cd util; gmake -j1 libs
gmake[5]: Entering directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/security/nss/lib/util'
rm -f /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/libnssutil3.dylib
/usr/bin/gcc-4.2 -dynamiclib -compatibility_version 1 -current_version 1 -install_name /opt/local/lib/xulrunner/libnssutil3.dylib -headerpad_max_install_names  -o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/libnssutil3.dylib /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/quickder.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secdig.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/derdec.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/derenc.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/dersubr.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/dertime.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/nssb64d.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/nssb64e.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/nssrwlk.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/nssilock.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/oidstring.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/portreg.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secalgid.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secasn1d.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secasn1e.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secasn1u.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secitem.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secoid.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/sectime.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secport.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/secinit.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/templates.o /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/nss/nssutil/utf8.o    -L/private/var/tmp/macports-build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/dist/lib -L/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/dist/lib -lplc4 -lplds4 -lnspr4  
ld: warning: in /private/var/tmp/macports-build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/dist/lib/libplc4.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /private/var/tmp/macports-build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/dist/lib/libplds4.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /private/var/tmp/macports-build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/dist/lib/libnspr4.dylib, file was built for i386 which is not the architecture being linked (x86_64)

The problem seems to be that it's not including $LDFLAGS that were set at configure time.
Summary: libnssutil3 failst to link → libnssutil3 fails to link
Assignee: nobody → nobody
Component: Security → Build
Product: Core → NSS
QA Contact: toolkit → build
Version: 1.9.2 Branch → unspecified
(Reporter)

Comment 1

9 years ago
Here's how we configured xulrunner-1.9.2:


DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-O0 -ggdb3 -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O0 -ggdb3 -arch i386' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/.CC_PRINT_OPTIONS' F90FLAGS='-O0 -ggdb3 -m32' MOZCONFIG='/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/xulrunner/config/mozconfig' LDFLAGS='-L/opt/local/lib -arch i386' FCFLAGS='-O0 -ggdb3 -m32' OBJC='/usr/bin/gcc-4.2' INSTALL='/usr/bin/install -c' MOZILLA_FIVE_HOME='/opt/local/lib/xulrunner' OBJCFLAGS='-O0 -ggdb3 -arch i386' FFLAGS='-O0 -ggdb3 -m32' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2" && ./configure --prefix=/opt/local --with-xulrunner-stub-name=xulrunner-stub --disable-static --enable-shared --with-distribution-id=org.macports --enable-default-toolkit=cairo-gtk2 --x-includes=/opt/local/include --x-libraries=/opt/local/lib --with-system-bzip2=/opt/local --with-system-jpeg=/opt/local --with-system-zlib=/opt/local --enable-system-lcms --enable-system-cairo --enable-system-sqlite --with-default-mozilla-five-home=/opt/local/lib/xulrunner --enable-oji --enable-plugins --enable-mathml --enable-extensions="default,spellcheck" --enable-permissions --enable-cookie --enable-image-decoders=all --enable-image-encoder=all --enable-canvas --enable-jsd --disable-xpctools --enable-crypto --enable-pango --enable-svg --enable-svg-renderer=cairo --enable-xinerama --with-pthreads --enable-postscript --enable-safe-browsing --disable-crashreporter --disable-prebinding --disable-installer --disable-updater --disable-pedantic --disable-tests --disable-necko-wifi --enable-libxul --enable-debug='-ggdb3' --enable-mochitest --disable-optimize --disable-strip --disable-install-strip --enable-gnomevfs --enable-gnomeui'
Adding configure options from /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_xulrunner-devel/work/mozilla-1.9.2/xulrunner/config/mozconfig:
  --enable-application=xulrunner

Note that LDFLAGS is set in the environment and ignored when linking libnssutil3.dylib ... they were present when linking nspr and others.
(Reporter)

Comment 2

9 years ago
I already reported this.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 529878
You need to log in before you can comment on or make changes to this bug.