I tried separately compiling the .cpp containing my server class and
the .cpp containing main() with g++. Then I tried building the object
files with g++ along with the "trace" option - this enables one to see
the order in which the files are accessed.

The output is as given below:-
********************************************************************************
[EMAIL PROTECTED] SSL]# g++ -t ssl_server_test.o ssl.o -I/root/SSL/SSL\
files/include/nss -I/root/SSL/SSL\ files/include/nspr -L/root/SSL/SSL\
files/lib -lnss3 -lnspr4 -lssl3 -lplds4 -lplc4 -lsmime3 -lsectool
ssl.o(.text+0xe88): In function `ssl::server_config_cert_dir()':
: undefined reference to `SECU_DefaultSSLDir()'
ssl.o(.text+0xea4): In function `ssl::server_config_cert_dir()':
: undefined reference to `SECU_ConfigDirectory(char const*)'
ssl.o(.text+0x144c): In function `ssl::client_init_config()':
: undefined reference to `SECU_DefaultSSLDir()'
ssl.o(.text+0x1466): In function `ssl::client_init_config()':
: undefined reference to `SECU_ConfigDirectory(char const*)'
/usr/bin/ld: link errors found, deleting executable `a.out'
/usr/bin/ld: mode elf_i386
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crti.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/crtbegin.o
ssl_server_test.o
ssl.o
-lnss3 (/root/SSL/SSL files/lib/libnss3.so)
-lnspr4 (/root/SSL/SSL files/lib/libnspr4.so)
-lssl3 (/root/SSL/SSL files/lib/libssl3.so)
-lplds4 (/root/SSL/SSL files/lib/libplds4.so)
-lplc4 (/root/SSL/SSL files/lib/libplc4.so)
-lsmime3 (/root/SSL/SSL files/lib/libsmime3.so)
-lstdc++ (/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libstdc++.so)
-lm (/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libm.so)
-lgcc_s (/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc_s.so)
/lib/libc.so.6
(/usr/lib/libc_nonshared.a)elf-init.oS
-lgcc_s (/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc_s.so)
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/crtend.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crtn.o
collect2: ld returned 1 exit status
********************************************************************************

The linker is able to access files up to libsmime3.so but not
libsectool.a - Hence the undefined reference.
Can anyone help me with this??

Help really needed!!
D3|\||\|!$
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to