My configure string for newpki server: ./configure --with-openssl-lib=/usr/local/ssl/lib --with-openssl-include=/usr/local/ssl/include --with-newpki-include=/root/newpki-lib-2.0.0/src --with-mysql-lib=/usr/local/lib/mysql
I also add -D_GNU_SOURCE in the DEFS section of the Makefile. my machine details: [EMAIL PROTECTED] newpki-server-2.0.0]# uname -a Linux Darthvader 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown The gcc is the one that came with this distro: gcc version 2.96 Getting this now when compiling the pki-server-2.0.0: <cut> c++ -g -O2 -L/usr/local/lib/mysql -Wl,-rpath -Wl,/usr/local/lib/mysql -L/usr/local/ssl/lib -Wl,-rpath -Wl,/usr/local/ssl/lib -o newpki-server newpki_server-Entity.o newpki_server-Entity_PKI.o newpki_server-Entity_PKI_ASN1.o newpki_server-Entity_REPOSITORY.o newpki_server-Entity_REPOSITORY_ASN1.o newpki_server-RepStore.o newpki_server-Entity_BACKUP.o newpki_server-Entity_BACKUP_ASN1.o newpki_server-BackupStore.o newpki_server-Entity_SERVER.o newpki_server-Entity_CA.o newpki_server-Entity_CA_ASN1.o newpki_server-Entity_RA.o newpki_server-Entity_RA_ASN1.o newpki_server-Entity_PUBLICATION.o newpki_server-Entity_PUBLICATION_ASN1.o newpki_server-Entity_KEYSTORE.o newpki_server-Entity_KEYSTORE_ASN1.o newpki_server-AuthModule.o newpki_server-CA_Handler.o newpki_server-Conf.o newpki_server-EntityLog.o newpki_server-MAIN.o newpki_server-PKIX_Central.o newpki_server-SOCK_SERVER.o newpki_server-SockServerADMIN.o newpki_server-SockServerOCSP.o newpki_server-X509_ACL_Validator.o newpki_server-SmtpClient.o newpki_server-MIME.o newpki_server-Entity_ASN1.o newpki_server-UserHandle.o newpki_server-PlugCA.o newpki_server-AsynchJobs.o newpki_server-NewPKIStore.o newpki_server-RaStore.o newpki_server-CaStore.o newpki_server-PublicationMethod.o newpki_server-PubStore.o newpki_server-AutoSynchLDAP.o newpki_server-ClientLDAP.o newpki_server-OcspServers.o newpki_server-MailInfo.o newpki_server-CA_Handler_ASN1.o newpki_server-AsynchJobs_ASN1.o newpki_server-NewPKIStore_ASN1.o newpki_server-RaStore_ASN1.o newpki_server-RepStore_ASN1.o newpki_server-SQL.o newpki_server-SQL_Conn.o- lnewpki -lldap -lmysqlclient -ldl -lpthread -lssl -lcrypto /usr/bin/ld: cannot find -lnewpki collect2: ld returned 1 exit status make[3]: *** [newpki-server] Error 1 make[3]: Leaving directory `/root/newpki-server-2.0.0/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/root/newpki-server-2.0.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/newpki-server-2.0.0' make: *** [all] Error 2 </cut> any ideas? cheers Peter >>> [EMAIL PROTECTED] 09/29/04 05:49PM >>> Peter Param wrote: > ok I got it to work by adding -D_GNU_SOURCE in the DEFS declaration in > Makefile. The compilation goes further but this time exits with yet more > errors: What OS are you running under ? What's your version if gcc ? > > <cut> > > ./mString.cpp: In function `void mString::Encode (const char *, const > char *, const mString &, mString &)': > ./mString.cpp:1227: warning: comparison between signed and unsigned > integer expressions > make[3]: *** [libnewpki_la-mString.lo] Error 1 > make[3]: Leaving directory `/root/newpki-lib-2.0.0/src' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/root/newpki-lib-2.0.0/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/newpki-lib-2.0.0' > make: *** [all] Error 2 > > </cut> That's not an error but a warning. I don't see why it should stop. -- Fr�d�ric Giudicelli http://www.newpki.org _____________________________________________________________________ NewPKI http://www.newpki.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been virus scanned and although no viruses were detected by the system, St Vincent's Hospital accepts no liability for any consequential damage resulting from email containing any computer viruses. ********************************************************************** _____________________________________________________________________ NewPKI http://www.newpki.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
