Opened 16 years ago

Closed 16 years ago

Last modified 12 years ago

#19607 closed defect (fixed)

nss: update fails

Reported by: dbevans (David B. Evans) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: bryan@…, ctempleton3@…
Port: nss

Description

10.4.11 ppc XCode 2.5

upgrading nss to 3.12.3 fails linking libsoftokn3.dylib as follows:

/usr/bin/gcc-4.0 -dynamiclib -compatibility_version 1 -current_version 1 -install_name /opt/local/lib/nss/libsoftokn3.dylib -headerpad_max_install_names -L/opt/local/lib/nspr  -o Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib Darwin8.11.0_gcc-4.0_DBG.OBJ/ecdecode.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipsaudt.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstest.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstokn.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lgglue.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowkey.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowpbe.o Darwin8.11.0_gcc-4.0_DBG.OBJ/padbuf.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11c.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11u.o Darwin8.11.0_gcc-4.0_DBG.OBJ/rsawrapr.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkmod.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpars.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpwd.o Darwin8.11.0_gcc-4.0_DBG.OBJ/softkver.o Darwin8.11.0_gcc-4.0_DBG.OBJ/tlsprf.o   ../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib/libfreebl.a  -L../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib -lnssutil3 -lsqlite3 -L/opt/local/lib/nspr -lplc4 -lplds4 -lnspr4  
ld: Undefined symbols:
_sqlite3_prepare_v2

The missing symbol is defined in libsqlite3 but there is no path to that library (i.e. -L/opt/local/lib) in the link command

Change History (17)

comment:1 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

what version of sqlite do you have? Make sure you do a 'sudo port -v upgrade outdated' first...

comment:2 Changed 16 years ago by dbevans (David B. Evans)

devans% port installed sqlite3
The following ports are currently installed:
  sqlite3 @3.6.13_0 (active)
devans% nm -a /opt/local/lib/libsqlite3.dylib | grep sqlite3_prepare_v2
000456d0 T _sqlite3_prepare_v2

all ports are upgraded to r50900 (except nss of course).

tried

sudo port clean nss
sudo port upgrade nss

this morning with the same results

comment:3 Changed 16 years ago by dbevans (David B. Evans)

Again it looks to me like the link command needs a -L/opt/local/lib before -lsqlite3. Note also from earlier in the build

/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sdb.c
sdb.c: In function 'sdb_FindObjectsInit':
sdb.c:707: warning: implicit declaration of function 'sqlite3_prepare_v2'

This one is missing -I/opt/local/include

comment:4 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:5 Changed 16 years ago by bryan@…

I'm still getting this error on a port install nss.

comment:6 Changed 16 years ago by bryan@…

Cc: bryan@… added

Cc Me!

comment:7 Changed 16 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: closedreopened

Didn't work for me, either. The offending command looks the same

rm -f Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib
/usr/bin/gcc-4.0 -dynamiclib -compatibility_version 1 -current_version 1 -install_name /opt/local/lib/nss/libsoftokn3.dylib -headerpad_max_install_names -L/opt/local/lib/nspr  -o Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib Darwin8.11.0_gcc-4.0_DBG.OBJ/ecdecode.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipsaudt.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstest.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstokn.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lgglue.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowkey.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowpbe.o Darwin8.11.0_gcc-4.0_DBG.OBJ/padbuf.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11c.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11u.o Darwin8.11.0_gcc-4.0_DBG.OBJ/rsawrapr.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkmod.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpars.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpwd.o Darwin8.11.0_gcc-4.0_DBG.OBJ/softkver.o Darwin8.11.0_gcc-4.0_DBG.OBJ/tlsprf.o   ../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib/libfreebl.a  -L../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib -lnssutil3 -lsqlite3 -L/opt/local/lib/nspr -lplc4 -lplds4 -lnspr4  
ld: Undefined symbols:
_sqlite3_prepare_v2
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed
make[2]: *** [Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib] Error 1
make[1]: *** [libs] Error 2
make: *** [libs] Error 2

So your change didn't change this.

comment:8 Changed 16 years ago by ctempleton3@…

Cc: ctempleton3@… added

Cc Me!

comment:9 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: reopenedclosed

sudo port -v selfupdate && sudo port clean nss && sudo port install nss

You obviously don't have the changes from r50928

comment:10 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: closedreopened

ugg since multiple people think this isn't fixed, I'll look into it again... I don't see how you can get the -L/opt/local/lib/nspr without getting -L/opt/local/lib ...

comment:11 Changed 16 years ago by dbevans (David B. Evans)

Thank you. I actually checked the patch file before my last comment because I thought the same thing you did.

At any rate, I updated again (building from svn)

cd `port dir nss`
svn update
At revision 50953.
sudo port clean nss
sudo port upgrade nss
../../../coreconf/nsinstall/Darwin8.11.0_gcc-4.0_DBG.OBJ/nsinstall -R -m 775 Darwin8.11.0_gcc-4.0_DBG.OBJ/Darwin_SINGLE_SHLIB/libfreebl3.dylib ../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib
cd softoken; make libs
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/ecdecode.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  ecdecode.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipsaudt.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  fipsaudt.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstest.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  fipstest.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstokn.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  fipstokn.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/lgglue.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  lgglue.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowkey.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  lowkey.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowpbe.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  lowpbe.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/padbuf.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  padbuf.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  pkcs11.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11c.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  pkcs11c.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11u.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  pkcs11u.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/rsawrapr.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  rsawrapr.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sdb.c
sdb.c: In function 'sdb_FindObjectsInit':
sdb.c:707: warning: implicit declaration of function 'sqlite3_prepare_v2'
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkdb.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sftkdb.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkmod.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sftkmod.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpars.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sftkpars.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpwd.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sftkpwd.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/softkver.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  softkver.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/tlsprf.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  tlsprf.c
rm -f Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn.a
ar cr Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn.a Darwin8.11.0_gcc-4.0_DBG.OBJ/ecdecode.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipsaudt.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstest.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstokn.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lgglue.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowkey.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowpbe.o Darwin8.11.0_gcc-4.0_DBG.OBJ/padbuf.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11c.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11u.o Darwin8.11.0_gcc-4.0_DBG.OBJ/rsawrapr.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkmod.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpars.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpwd.o Darwin8.11.0_gcc-4.0_DBG.OBJ/softkver.o Darwin8.11.0_gcc-4.0_DBG.OBJ/tlsprf.o
/usr/bin/ranlib Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn.a
grep -v ';+' softokn.def | grep -v ';-' | sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,_,' > Darwin8.11.0_gcc-4.0_DBG.OBJ/softokn.def
rm -f Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib
/usr/bin/gcc-4.0 -dynamiclib -compatibility_version 1 -current_version 1 -install_name /opt/local/lib/nss/libsoftokn3.dylib -headerpad_max_install_names -L/opt/local/lib/nspr  -o Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib Darwin8.11.0_gcc-4.0_DBG.OBJ/ecdecode.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipsaudt.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstest.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstokn.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lgglue.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowkey.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowpbe.o Darwin8.11.0_gcc-4.0_DBG.OBJ/padbuf.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11c.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11u.o Darwin8.11.0_gcc-4.0_DBG.OBJ/rsawrapr.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkmod.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpars.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpwd.o Darwin8.11.0_gcc-4.0_DBG.OBJ/softkver.o Darwin8.11.0_gcc-4.0_DBG.OBJ/tlsprf.o   ../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib/libfreebl.a  -L../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib -lnssutil3 -lsqlite3 -L/opt/local/lib/nspr -lplc4 -lplds4 -lnspr4  
ld: Undefined symbols:
_sqlite3_prepare_v2
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed
make[2]: *** [Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib] Error 1
make[1]: *** [libs] Error 2
make: *** [libs] Error 2

So obviously something is not obvious.

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:12 Changed 16 years ago by ctempleton3@…

It is still not building for me. I am running Mac 10.4.11 with Xcode 2.5

$ sudo port clean nss
--->  Cleaning nss
$ sudo port sync
$ sudo port install nss
--->  Fetching nss
--->  Verifying checksum(s) for nss
--->  Extracting nss
--->  Applying patches to nss
--->  Configuring nss
--->  Building nss
Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nss/work/nss-3.12.3 && make -C mozilla/security/coreconf/nsinstall && make -C mozilla/security/dbm && make -C mozilla/security/nss NSPR_LIB_DIR=/opt/local/lib/nspr NSS_USE_SYSTEM_SQLITE=1" returned error 2
Command output: /usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstokn.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  fipstokn.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/lgglue.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  lgglue.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowkey.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  lowkey.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowpbe.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  lowpbe.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/padbuf.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  padbuf.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  pkcs11.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11c.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  pkcs11c.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11u.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  pkcs11u.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/rsawrapr.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  rsawrapr.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sdb.c
sdb.c: In function 'sdb_FindObjectsInit':
sdb.c:707: warning: implicit declaration of function 'sqlite3_prepare_v2'
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkdb.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sftkdb.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkmod.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sftkmod.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpars.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sftkpars.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpwd.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  sftkpwd.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/softkver.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  softkver.c
/usr/bin/gcc-4.0 -o Darwin8.11.0_gcc-4.0_DBG.OBJ/tlsprf.o -c -g -fPIC -Dppc -Wmost -fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\" -DSHLIB_VERSION=\"3\" -DDEBUG -UNDEBUG -DDEBUG_root -I/opt/local/include/nspr -L/opt/local/lib/nspr -I@@/opt/local/include -L/opt/local/lib -DUSE_UTIL_DIRECTLY -I../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/dbm  tlsprf.c
rm -f Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn.a
ar cr Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn.a Darwin8.11.0_gcc-4.0_DBG.OBJ/ecdecode.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipsaudt.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstest.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstokn.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lgglue.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowkey.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowpbe.o Darwin8.11.0_gcc-4.0_DBG.OBJ/padbuf.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11c.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11u.o Darwin8.11.0_gcc-4.0_DBG.OBJ/rsawrapr.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkmod.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpars.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpwd.o Darwin8.11.0_gcc-4.0_DBG.OBJ/softkver.o Darwin8.11.0_gcc-4.0_DBG.OBJ/tlsprf.o
/usr/bin/ranlib Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn.a
grep -v ';+' softokn.def | grep -v ';-' | sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,_,' > Darwin8.11.0_gcc-4.0_DBG.OBJ/softokn.def
rm -f Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib
/usr/bin/gcc-4.0 -dynamiclib -compatibility_version 1 -current_version 1 -install_name /opt/local/lib/nss/libsoftokn3.dylib -headerpad_max_install_names -L/opt/local/lib/nspr  -o Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib Darwin8.11.0_gcc-4.0_DBG.OBJ/ecdecode.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipsaudt.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstest.o Darwin8.11.0_gcc-4.0_DBG.OBJ/fipstokn.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lgglue.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowkey.o Darwin8.11.0_gcc-4.0_DBG.OBJ/lowpbe.o Darwin8.11.0_gcc-4.0_DBG.OBJ/padbuf.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11c.o Darwin8.11.0_gcc-4.0_DBG.OBJ/pkcs11u.o Darwin8.11.0_gcc-4.0_DBG.OBJ/rsawrapr.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkdb.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkmod.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpars.o Darwin8.11.0_gcc-4.0_DBG.OBJ/sftkpwd.o Darwin8.11.0_gcc-4.0_DBG.OBJ/softkver.o Darwin8.11.0_gcc-4.0_DBG.OBJ/tlsprf.o   ../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib/libfreebl.a  -L../../../../dist/Darwin8.11.0_gcc-4.0_DBG.OBJ/lib -lnssutil3 -lsqlite3 -L/opt/local/lib/nspr -lplc4 -lplds4 -lnspr4
ld: Undefined symbols:
_sqlite3_prepare_v2
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed
make[2]: *** [Darwin8.11.0_gcc-4.0_DBG.OBJ/libsoftokn3.dylib] Error 1
make[1]: *** [libs] Error 2
make: *** [libs] Error 2

Error: Status 1 encountered during processing.
$

comment:13 Changed 16 years ago by blb@…

I'm guessing the extra (total of four) @ signs in patch-UNIX.mk.diff which results in -I@@/opt/local/include is a typo; though nss built fine here on 10.5.7, so whether that's the issue (or even part of it) is hard to tell.

comment:14 Changed 16 years ago by dbevans (David B. Evans)

After r50963, build fails in exactly the same way. However, UNIX.mk has been patched as desired:

        DEFINES    += -DDEBUG -UNDEBUG -DDEBUG_$(USERNAME) -I/opt/local/include/nspr -L/opt/local/lib/nspr -I/opt/local/include -L/opt/local/lib

I note that the port is building in an arch directory Darwin8.11.0_gcc-4.0_DBG.OBJ and the failing command line seems to be more consistent with what is defined in Darwin.mk:

DSO_LDOPTS      = -dynamiclib -compatibility_version 1 -current_version 1 -install_name /opt/local/lib/nss/$(notdir $@) -headerpad_max_install_names -L/opt/local/lib/nspr

Is it possible this is the file that needs modification?

comment:15 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: reopenedclosed

r50972 should do it

comment:16 Changed 16 years ago by dbevans (David B. Evans)

Yes, that works. Thanks.

comment:17 Changed 16 years ago by ctempleton3@…

Yep, I was able to build.

Note: See TracTickets for help on using tickets.