Hi guys,
I want to run the sslsample inside NSS suite. At first, I try to build all NSS but fail :( I want to run the sslsample . So what i did is I separately compile/ make the nsinstall and the sslsample. Now I got this error.. r...@laptop:/home/Desktop/nss-3.12/mozilla/security/nss/cmd/SSLsample# make make -f make.client all make[1]: Entering directory `/home/Desktop/nss-3.12/mozilla/security/ nss/cmd/SSLsample' gcc -o Linux2.6_x86_glibc_PTH_DBG.OBJ/client.o -c -g -fPIC -DLINUX1_2 - Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -Werror-implicit- function-declaration -Wno-switch -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -DDEBUG -UNDEBUG -DDEBUG_root - D_REENTRANT -DUSE_UTIL_DIRECTLY -I../../../../dist/ Linux2.6_x86_glibc_PTH_DBG.OBJ/include -I../../../../dist/public/nss - I../../../../dist/private/nss client.c client.c:49:21: prerror.h: No such file or directory client.c:51:22: pk11func.h: No such file or directory client.c:52:21: secitem.h: No such file or directory client.c:60:18: nspr.h: No such file or directory client.c:61:22: plgetopt.h: No such file or directory client.c:62:18: prio.h: No such file or directory client.c:63:21: prnetdb.h: No such file or directory In file included from client.c:66: sslsample.h:55:17: ssl.h: No such file or directory sslsample.h:56:19: certt.h: No such file or directory sslsample.h:58:20: secder.h: No such file or directory sslsample.h:59:17: key.h: No such file or directory sslsample.h:60:22: sslproto.h: No such file or directory In file included from client.c:66: sslsample.h:87: error: syntax error before '*' token sslsample.h:89: error: syntax error before "myAuthCertificate" sslsample.h:89: error: syntax error before "PRFileDesc" sslsample.h:90: warning: type defaults to `int' in declaration of `myAuthCertificate' sslsample.h:90: warning: data definition has no type or storage class sslsample.h:92: error: syntax error before "myBadCertHandler" sslsample.h:92: error: syntax error before "PRFileDesc" sslsample.h:92: warning: type defaults to `int' in declaration of `myBadCertHandler' sslsample.h:92: warning: data definition has no type or storage class sslsample.h:94: error: syntax error before '*' token sslsample.h:96: error: syntax error before "myGetClientAuthData" sslsample.h:96: error: syntax error before "PRFileDesc" sslsample.h:99: warning: type defaults to `int' in declaration of `myGetClientAuthData' sslsample.h:99: warning: data definition has no type or storage class sslsample.h:112: error: syntax error before '*' token sslsample.h:118: error: syntax error before "startFn" sslsample.h:118: warning: type defaults to `int' in declaration of `startFn' sslsample.h:118: warning: data definition has no type or storage class sslsample.h:123: error: syntax error before "PRFileDesc" sslsample.h:123: warning: no semicolon at end of struct or union sslsample.h:126: error: syntax error before '*' token sslsample.h:126: warning: type defaults to `int' in declaration of `startFunc' sslsample.h:126: warning: data definition has no type or storage class sslsample.h:127: error: syntax error before '*' token sslsample.h:127: warning: type defaults to `int' in declaration of `prThread' sslsample.h:127: warning: data definition has no type or storage class sslsample.h:128: error: syntax error before "inUse" sslsample.h:128: warning: type defaults to `int' in declaration of `inUse' sslsample.h:128: warning: data definition has no type or storage class sslsample.h:130: error: syntax error before '}' token sslsample.h:130: warning: type defaults to `int' in declaration of `perThread' sslsample.h:130: warning: data definition has no type or storage class sslsample.h:133: error: syntax error before "PRLock" sslsample.h:133: warning: no semicolon at end of struct or union sslsample.h:134: warning: type defaults to `int' in declaration of `threadStartQ' sslsample.h:134: warning: data definition has no type or storage class sslsample.h:135: error: syntax error before '*' token sslsample.h:135: warning: type defaults to `int' in declaration of `threadEndQ' sslsample.h:135: warning: data definition has no type or storage class sslsample.h:136: error: syntax error before "threads" sslsample.h:136: warning: type defaults to `int' in declaration of `threads' sslsample.h:136: warning: data definition has no type or storage class sslsample.h:137: error: 'index' redeclared as different kind of symbol /usr/include/string.h:310: error: previous declaration of 'index' was here sslsample.h:137: error: 'index' redeclared as different kind of symbol /usr/include/string.h:310: error: previous declaration of 'index' was here sslsample.h:140: error: syntax error before '}' token sslsample.h:140: warning: type defaults to `int' in declaration of `GlobalThreadMgr' sslsample.h:140: warning: data definition has no type or storage class sslsample.h:144: error: syntax error before "launch_thread" sslsample.h:144: error: syntax error before '*' token sslsample.h:145: warning: type defaults to `int' in declaration of `launch_thread' sslsample.h:145: warning: data definition has no type or storage class sslsample.h:147: error: syntax error before "reap_threads" sslsample.h:147: error: syntax error before '*' token sslsample.h:147: warning: type defaults to `int' in declaration of `reap_threads' sslsample.h:147: warning: data definition has no type or storage class sslsample.h:149: error: syntax error before '*' token sslsample.h:154: error: syntax error before "PRLock" sslsample.h:154: warning: no semicolon at end of struct or union sslsample.h:157: error: syntax error before '*' token sslsample.h:157: warning: type defaults to `int' in declaration of `condVar' sslsample.h:157: warning: data definition has no type or storage class sslsample.h:158: error: syntax error before '}' token client.c:73: error: syntax error before "threadMGR" client.c:73: warning: type defaults to `int' in declaration of `threadMGR' client.c:73: warning: data definition has no type or storage class client.c:89: error: syntax error before '*' token client.c:90: error: syntax error before '*' token client.c:91: warning: return type defaults to `int' client.c: In function `setupSSLSocket': client.c:92: error: `PRFileDesc' undeclared (first use in this function) client.c:92: error: (Each undeclared identifier is reported only once client.c:92: error: for each function it appears in.) client.c:92: error: `tcpSocket' undeclared (first use in this function) client.c:93: error: `sslSocket' undeclared (first use in this function) client.c:94: error: `PRSocketOptionData' undeclared (first use in this function) client.c:94: error: syntax error before "socketOption" client.c:95: error: `PRStatus' undeclared (first use in this function) client.c:96: error: `SECStatus' undeclared (first use in this function) client.c:102: error: implicit declaration of function `PR_NewTCPSocket' client.c:108: error: `socketOption' undeclared (first use in this function) client.c:108: error: `PR_SockOpt_Nonblocking' undeclared (first use in this function) client.c:109: error: `PR_FALSE' undeclared (first use in this function) client.c:111: error: `prStatus' undeclared (first use in this function) client.c:111: error: implicit declaration of function `PR_SetSocketOption' client.c:112: error: `PR_SUCCESS' undeclared (first use in this function) client.c:134: error: implicit declaration of function `SSL_ImportFD' client.c:141: error: `secStatus' undeclared (first use in this function) client.c:141: error: implicit declaration of function `SSL_OptionSet' client.c:141: error: `SSL_SECURITY' undeclared (first use in this function) client.c:141: error: `PR_TRUE' undeclared (first use in this function) client.c:142: error: `SECSuccess' undeclared (first use in this function) client.c:147: error: `SSL_HANDSHAKE_AS_CLIENT' undeclared (first use in this function) client.c:154: error: implicit declaration of function `SSL_GetClientAuthDataHook' client.c:155: error: `SSLGetClientAuthData' undeclared (first use in this function) client.c:155: error: syntax error before "myGetClientAuthData" client.c:162: error: implicit declaration of function `SSL_AuthCertificateHook' client.c:163: error: `SSLAuthCertificate' undeclared (first use in this function) client.c:163: error: syntax error before "myAuthCertificate" client.c:170: error: implicit declaration of function `SSL_BadCertHook' client.c:171: error: `SSLBadCertHandler' undeclared (first use in this function) client.c:171: error: syntax error before "myBadCertHandler" client.c:177: error: implicit declaration of function `SSL_HandshakeCallback' client.c:189: error: implicit declaration of function `PR_Close' client.c: At top level: client.c:197: error: syntax error before "handle_connection" client.c:197: error: syntax error before '*' token client.c:198: warning: return type defaults to `int' client.c: In function `handle_connection': client.c:200: error: `PRInt32' undeclared (first use in this function) client.c:200: error: syntax error before "numBytes" client.c:203: error: implicit declaration of function `PORT_Alloc' client.c:203: warning: assignment makes pointer from integer without a cast client.c:210: error: `numBytes' undeclared (first use in this function) client.c:210: error: implicit declaration of function `PR_Write' client.c:210: error: `sslSocket' undeclared (first use in this function) client.c:213: error: implicit declaration of function `PR_Free' client.c:215: error: `SECFailure' undeclared (first use in this function) client.c:219: error: `PR_TRUE' undeclared (first use in this function) client.c:220: error: implicit declaration of function `PR_Read' client.c:230: error: `connection' undeclared (first use in this function) client.c:246: error: `SECSuccess' undeclared (first use in this function) client.c: At top level: client.c:253: error: syntax error before "do_connects" client.c:254: warning: return type defaults to `int' client.c: In function `do_connects': client.c:255: error: `PRNetAddr' undeclared (first use in this function) client.c:255: error: `addr' undeclared (first use in this function) client.c:255: error: syntax error before ')' token client.c:256: error: `PRFileDesc' undeclared (first use in this function) client.c:256: error: `sslSocket' undeclared (first use in this function) client.c:257: error: `PRHostEnt' undeclared (first use in this function) client.c:257: error: syntax error before "hostEntry" client.c:258: error: `PR_NETDB_BUF_SIZE' undeclared (first use in this function) client.c:259: error: `PRStatus' undeclared (first use in this function) client.c:259: error: syntax error before "prStatus" client.c:260: error: `PRIntn' undeclared (first use in this function) client.c:261: error: `SECStatus' undeclared (first use in this function) client.c:267: error: `SECFailure' undeclared (first use in this function) client.c:270: error: `secStatus' undeclared (first use in this function) client.c:270: error: implicit declaration of function `SSL_SetPKCS11PinArg' client.c:271: error: `SECSuccess' undeclared (first use in this function) client.c:276: error: implicit declaration of function `SSL_SetURL' client.c:283: error: `prStatus' undeclared (first use in this function) client.c:283: error: implicit declaration of function `PR_GetHostByName' client.c:283: error: `hostEntry' undeclared (first use in this function) client.c:284: error: `PR_SUCCESS' undeclared (first use in this function) client.c:289: error: `hostenum' undeclared (first use in this function) client.c:289: error: implicit declaration of function `PR_EnumerateHostEnt' client.c:295: error: implicit declaration of function `PR_Connect' client.c:295: error: `PR_INTERVAL_NO_TIMEOUT' undeclared (first use in this function) client.c:310: error: implicit declaration of function `SSL_ResetHandshake' client.c:310: error: `PR_FALSE' undeclared (first use in this function) client.c:258: warning: unused variable `buffer' client.c: In function `client_main': client.c:336: error: `SECStatus' undeclared (first use in this function) client.c:336: error: syntax error before "secStatus" client.c:337: error: `PRStatus' undeclared (first use in this function) client.c:338: error: `PRInt32' undeclared (first use in this function) client.c:339: error: `PRNetAddr' undeclared (first use in this function) client.c:340: error: `PRHostEnt' undeclared (first use in this function) client.c:344: error: `prStatus' undeclared (first use in this function) client.c:344: error: `hostEntry' undeclared (first use in this function) client.c:345: error: `PR_SUCCESS' undeclared (first use in this function) client.c:349: error: `addr' undeclared (first use in this function) client.c:354: error: `secStatus' undeclared (first use in this function) client.c:355: error: `SECSuccess' undeclared (first use in this function) client.c: In function `main': client.c:382: error: `SECStatus' undeclared (first use in this function) client.c:382: error: syntax error before "secStatus" client.c:383: error: `PLOptState' undeclared (first use in this function) client.c:383: error: `optstate' undeclared (first use in this function) client.c:384: error: `PLOptStatus' undeclared (first use in this function) client.c:384: error: syntax error before "status" client.c:387: error: implicit declaration of function `PR_Init' client.c:387: error: `PR_SYSTEM_THREAD' undeclared (first use in this function) client.c:387: error: `PR_PRIORITY_NORMAL' undeclared (first use in this function) client.c:389: error: implicit declaration of function `PL_strdup' client.c:389: warning: assignment makes pointer from integer without a cast client.c:392: error: implicit declaration of function `PL_CreateOptState' client.c:393: error: `status' undeclared (first use in this function) client.c:393: error: implicit declaration of function `PL_GetNextOpt' client.c:393: error: `PL_OPT_OK' undeclared (first use in this function) client.c:395: warning: assignment makes pointer from integer without a cast client.c:396: error: implicit declaration of function `PORT_Atoi' client.c:397: warning: assignment makes pointer from integer without a cast client.c:398: warning: assignment makes pointer from integer without a cast client.c:400: warning: assignment makes pointer from integer without a cast client.c:401: warning: assignment makes pointer from integer without a cast client.c:410: error: implicit declaration of function `PR_smprintf' client.c:410: warning: assignment makes pointer from integer without a cast client.c:414: error: implicit declaration of function `PK11_SetPasswordFunc' client.c:417: error: `secStatus' undeclared (first use in this function) client.c:417: error: implicit declaration of function `NSS_Init' client.c:418: error: `SECSuccess' undeclared (first use in this function) client.c:423: error: implicit declaration of function `NSS_SetDomesticPolicy' client.c:424: error: implicit declaration of function `SSL_CipherPrefSetDefault' client.c:424: error: `SSL_RSA_WITH_NULL_MD5' undeclared (first use in this function) client.c:424: error: `PR_TRUE' undeclared (first use in this function) client.c:437: error: implicit declaration of function `isalpha' client.c:439: error: implicit declaration of function `islower' client.c:450: error: implicit declaration of function `NSS_Shutdown' client.c:453: error: implicit declaration of function `PR_Cleanup' make[1]: *** [Linux2.6_x86_glibc_PTH_DBG.OBJ/client.o] Error 1 make[1]: Leaving directory `/home/Desktop/nss-3.12/mozilla/security/ nss/cmd/SSLsample' make: *** [all] Error 2 r...@laptop:/home/Desktop/nss-3.12/mozilla/security/nss/cmd/SSLsample# make.client bash: make.client: command not found r...@laptop:/home/Desktop/nss-3.12/mozilla/security/nss/cmd/SSLsample# make make -f make.client all make[1]: Entering directory `/home/Desktop/nss-3.12/mozilla/security/ nss/cmd/SSLsample' gcc -o Linux2.6_x86_glibc_PTH_DBG.OBJ/client.o -c -g -fPIC -DLINUX1_2 - Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -Werror-implicit- function-declaration -Wno-switch -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -DDEBUG -UNDEBUG -DDEBUG_root - D_REENTRANT -DUSE_UTIL_DIRECTLY -I../../../../dist/ Linux2.6_x86_glibc_PTH_DBG.OBJ/include -I../../../../dist/public/nss - I../../../../dist/private/nss client.c client.c:49:21: prerror.h: No such file or directory client.c:51:22: pk11func.h: No such file or directory client.c:52:21: secitem.h: No such file or directory client.c:60:18: nspr.h: No such file or directory client.c:61:22: plgetopt.h: No such file or directory client.c:62:18: prio.h: No such file or directory client.c:63:21: prnetdb.h: No such file or directory In file included from client.c:66: sslsample.h:55:17: ssl.h: No such file or directory sslsample.h:56:19: certt.h: No such file or directory sslsample.h:58:20: secder.h: No such file or directory sslsample.h:59:17: key.h: No such file or directory sslsample.h:60:22: sslproto.h: No such file or directory In file included from client.c:66: sslsample.h:87: error: syntax error before '*' token sslsample.h:89: error: syntax error before "myAuthCertificate" sslsample.h:89: error: syntax error before "PRFileDesc" sslsample.h:90: warning: type defaults to `int' in declaration of `myAuthCertificate' sslsample.h:90: warning: data definition has no type or storage class sslsample.h:92: error: syntax error before "myBadCertHandler" sslsample.h:92: error: syntax error before "PRFileDesc" sslsample.h:92: warning: type defaults to `int' in declaration of `myBadCertHandler' sslsample.h:92: warning: data definition has no type or storage class sslsample.h:94: error: syntax error before '*' token sslsample.h:96: error: syntax error before "myGetClientAuthData" sslsample.h:96: error: syntax error before "PRFileDesc" sslsample.h:99: warning: type defaults to `int' in declaration of `myGetClientAuthData' sslsample.h:99: warning: data definition has no type or storage class sslsample.h:112: error: syntax error before '*' token sslsample.h:118: error: syntax error before "startFn" sslsample.h:118: warning: type defaults to `int' in declaration of `startFn' sslsample.h:118: warning: data definition has no type or storage class sslsample.h:123: error: syntax error before "PRFileDesc" sslsample.h:123: warning: no semicolon at end of struct or union sslsample.h:126: error: syntax error before '*' token sslsample.h:126: warning: type defaults to `int' in declaration of `startFunc' sslsample.h:126: warning: data definition has no type or storage class sslsample.h:127: error: syntax error before '*' token sslsample.h:127: warning: type defaults to `int' in declaration of `prThread' sslsample.h:127: warning: data definition has no type or storage class sslsample.h:128: error: syntax error before "inUse" sslsample.h:128: warning: type defaults to `int' in declaration of `inUse' sslsample.h:128: warning: data definition has no type or storage class sslsample.h:130: error: syntax error before '}' token sslsample.h:130: warning: type defaults to `int' in declaration of `perThread' sslsample.h:130: warning: data definition has no type or storage class sslsample.h:133: error: syntax error before "PRLock" sslsample.h:133: warning: no semicolon at end of struct or union sslsample.h:134: warning: type defaults to `int' in declaration of `threadStartQ' sslsample.h:134: warning: data definition has no type or storage class sslsample.h:135: error: syntax error before '*' token sslsample.h:135: warning: type defaults to `int' in declaration of `threadEndQ' sslsample.h:135: warning: data definition has no type or storage class sslsample.h:136: error: syntax error before "threads" sslsample.h:136: warning: type defaults to `int' in declaration of `threads' sslsample.h:136: warning: data definition has no type or storage class sslsample.h:137: error: 'index' redeclared as different kind of symbol /usr/include/string.h:310: error: previous declaration of 'index' was here sslsample.h:137: error: 'index' redeclared as different kind of symbol /usr/include/string.h:310: error: previous declaration of 'index' was here sslsample.h:140: error: syntax error before '}' token sslsample.h:140: warning: type defaults to `int' in declaration of `GlobalThreadMgr' sslsample.h:140: warning: data definition has no type or storage class sslsample.h:144: error: syntax error before "launch_thread" sslsample.h:144: error: syntax error before '*' token sslsample.h:145: warning: type defaults to `int' in declaration of `launch_thread' sslsample.h:145: warning: data definition has no type or storage class sslsample.h:147: error: syntax error before "reap_threads" sslsample.h:147: error: syntax error before '*' token sslsample.h:147: warning: type defaults to `int' in declaration of `reap_threads' sslsample.h:147: warning: data definition has no type or storage class sslsample.h:149: error: syntax error before '*' token sslsample.h:154: error: syntax error before "PRLock" sslsample.h:154: warning: no semicolon at end of struct or union sslsample.h:157: error: syntax error before '*' token sslsample.h:157: warning: type defaults to `int' in declaration of `condVar' sslsample.h:157: warning: data definition has no type or storage class sslsample.h:158: error: syntax error before '}' token client.c:73: error: syntax error before "threadMGR" client.c:73: warning: type defaults to `int' in declaration of `threadMGR' client.c:73: warning: data definition has no type or storage class client.c:89: error: syntax error before '*' token client.c:90: error: syntax error before '*' token client.c:91: warning: return type defaults to `int' client.c: In function `setupSSLSocket': client.c:92: error: `PRFileDesc' undeclared (first use in this function) client.c:92: error: (Each undeclared identifier is reported only once client.c:92: error: for each function it appears in.) client.c:92: error: `tcpSocket' undeclared (first use in this function) client.c:93: error: `sslSocket' undeclared (first use in this function) client.c:94: error: `PRSocketOptionData' undeclared (first use in this function) client.c:94: error: syntax error before "socketOption" client.c:95: error: `PRStatus' undeclared (first use in this function) client.c:96: error: `SECStatus' undeclared (first use in this function) client.c:102: error: implicit declaration of function `PR_NewTCPSocket' client.c:108: error: `socketOption' undeclared (first use in this function) client.c:108: error: `PR_SockOpt_Nonblocking' undeclared (first use in this function) client.c:109: error: `PR_FALSE' undeclared (first use in this function) client.c:111: error: `prStatus' undeclared (first use in this function) client.c:111: error: implicit declaration of function `PR_SetSocketOption' client.c:112: error: `PR_SUCCESS' undeclared (first use in this function) client.c:134: error: implicit declaration of function `SSL_ImportFD' client.c:141: error: `secStatus' undeclared (first use in this function) client.c:141: error: implicit declaration of function `SSL_OptionSet' client.c:141: error: `SSL_SECURITY' undeclared (first use in this function) client.c:141: error: `PR_TRUE' undeclared (first use in this function) client.c:142: error: `SECSuccess' undeclared (first use in this function) client.c:147: error: `SSL_HANDSHAKE_AS_CLIENT' undeclared (first use in this function) client.c:154: error: implicit declaration of function `SSL_GetClientAuthDataHook' client.c:155: error: `SSLGetClientAuthData' undeclared (first use in this function) client.c:155: error: syntax error before "myGetClientAuthData" client.c:162: error: implicit declaration of function `SSL_AuthCertificateHook' client.c:163: error: `SSLAuthCertificate' undeclared (first use in this function) client.c:163: error: syntax error before "myAuthCertificate" client.c:170: error: implicit declaration of function `SSL_BadCertHook' client.c:171: error: `SSLBadCertHandler' undeclared (first use in this function) client.c:171: error: syntax error before "myBadCertHandler" client.c:177: error: implicit declaration of function `SSL_HandshakeCallback' client.c:189: error: implicit declaration of function `PR_Close' client.c: At top level: client.c:197: error: syntax error before "handle_connection" client.c:197: error: syntax error before '*' token client.c:198: warning: return type defaults to `int' client.c: In function `handle_connection': client.c:200: error: `PRInt32' undeclared (first use in this function) client.c:200: error: syntax error before "numBytes" client.c:203: error: implicit declaration of function `PORT_Alloc' client.c:203: warning: assignment makes pointer from integer without a cast client.c:210: error: `numBytes' undeclared (first use in this function) client.c:210: error: implicit declaration of function `PR_Write' client.c:210: error: `sslSocket' undeclared (first use in this function) client.c:213: error: implicit declaration of function `PR_Free' client.c:215: error: `SECFailure' undeclared (first use in this function) client.c:219: error: `PR_TRUE' undeclared (first use in this function) client.c:220: error: implicit declaration of function `PR_Read' client.c:230: error: `connection' undeclared (first use in this function) client.c:246: error: `SECSuccess' undeclared (first use in this function) client.c: At top level: client.c:253: error: syntax error before "do_connects" client.c:254: warning: return type defaults to `int' client.c: In function `do_connects': client.c:255: error: `PRNetAddr' undeclared (first use in this function) client.c:255: error: `addr' undeclared (first use in this function) client.c:255: error: syntax error before ')' token client.c:256: error: `PRFileDesc' undeclared (first use in this function) client.c:256: error: `sslSocket' undeclared (first use in this function) client.c:257: error: `PRHostEnt' undeclared (first use in this function) client.c:257: error: syntax error before "hostEntry" client.c:258: error: `PR_NETDB_BUF_SIZE' undeclared (first use in this function) client.c:259: error: `PRStatus' undeclared (first use in this function) client.c:259: error: syntax error before "prStatus" client.c:260: error: `PRIntn' undeclared (first use in this function) client.c:261: error: `SECStatus' undeclared (first use in this function) client.c:267: error: `SECFailure' undeclared (first use in this function) client.c:270: error: `secStatus' undeclared (first use in this function) client.c:270: error: implicit declaration of function `SSL_SetPKCS11PinArg' client.c:271: error: `SECSuccess' undeclared (first use in this function) client.c:276: error: implicit declaration of function `SSL_SetURL' client.c:283: error: `prStatus' undeclared (first use in this function) client.c:283: error: implicit declaration of function `PR_GetHostByName' client.c:283: error: `hostEntry' undeclared (first use in this function) client.c:284: error: `PR_SUCCESS' undeclared (first use in this function) client.c:289: error: `hostenum' undeclared (first use in this function) client.c:289: error: implicit declaration of function `PR_EnumerateHostEnt' client.c:295: error: implicit declaration of function `PR_Connect' client.c:295: error: `PR_INTERVAL_NO_TIMEOUT' undeclared (first use in this function) client.c:310: error: implicit declaration of function `SSL_ResetHandshake' client.c:310: error: `PR_FALSE' undeclared (first use in this function) client.c:258: warning: unused variable `buffer' client.c: In function `client_main': client.c:336: error: `SECStatus' undeclared (first use in this function) client.c:336: error: syntax error before "secStatus" client.c:337: error: `PRStatus' undeclared (first use in this function) client.c:338: error: `PRInt32' undeclared (first use in this function) client.c:339: error: `PRNetAddr' undeclared (first use in this function) client.c:340: error: `PRHostEnt' undeclared (first use in this function) client.c:344: error: `prStatus' undeclared (first use in this function) client.c:344: error: `hostEntry' undeclared (first use in this function) client.c:345: error: `PR_SUCCESS' undeclared (first use in this function) client.c:349: error: `addr' undeclared (first use in this function) client.c:354: error: `secStatus' undeclared (first use in this function) client.c:355: error: `SECSuccess' undeclared (first use in this function) client.c: In function `main': client.c:382: error: `SECStatus' undeclared (first use in this function) client.c:382: error: syntax error before "secStatus" client.c:383: error: `PLOptState' undeclared (first use in this function) client.c:383: error: `optstate' undeclared (first use in this function) client.c:384: error: `PLOptStatus' undeclared (first use in this function) client.c:384: error: syntax error before "status" client.c:387: error: implicit declaration of function `PR_Init' client.c:387: error: `PR_SYSTEM_THREAD' undeclared (first use in this function) client.c:387: error: `PR_PRIORITY_NORMAL' undeclared (first use in this function) client.c:389: error: implicit declaration of function `PL_strdup' client.c:389: warning: assignment makes pointer from integer without a cast client.c:392: error: implicit declaration of function `PL_CreateOptState' client.c:393: error: `status' undeclared (first use in this function) client.c:393: error: implicit declaration of function `PL_GetNextOpt' client.c:393: error: `PL_OPT_OK' undeclared (first use in this function) client.c:395: warning: assignment makes pointer from integer without a cast client.c:396: error: implicit declaration of function `PORT_Atoi' client.c:397: warning: assignment makes pointer from integer without a cast client.c:398: warning: assignment makes pointer from integer without a cast client.c:400: warning: assignment makes pointer from integer without a cast client.c:401: warning: assignment makes pointer from integer without a cast client.c:410: error: implicit declaration of function `PR_smprintf' client.c:410: warning: assignment makes pointer from integer without a cast client.c:414: error: implicit declaration of function `PK11_SetPasswordFunc' client.c:417: error: `secStatus' undeclared (first use in this function) client.c:417: error: implicit declaration of function `NSS_Init' client.c:418: error: `SECSuccess' undeclared (first use in this function) client.c:423: error: implicit declaration of function `NSS_SetDomesticPolicy' client.c:424: error: implicit declaration of function `SSL_CipherPrefSetDefault' client.c:424: error: `SSL_RSA_WITH_NULL_MD5' undeclared (first use in this function) client.c:424: error: `PR_TRUE' undeclared (first use in this function) client.c:437: error: implicit declaration of function `isalpha' client.c:439: error: implicit declaration of function `islower' client.c:450: error: implicit declaration of function `NSS_Shutdown' client.c:453: error: implicit declaration of function `PR_Cleanup' make[1]: *** [Linux2.6_x86_glibc_PTH_DBG.OBJ/client.o] Error 1 make[1]: Leaving directory `/home/Desktop/nss-3.12/mozilla/security/ nss/cmd/SSLsample' make: *** [all] Error 2 _______________________________________________ dev-security mailing list [email protected] https://lists.mozilla.org/listinfo/dev-security
