I am getting one step further, but still facing an issue
when compiling OCSPD:

$ gcc -v                 
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)


$ export CPPFLAGS="-I/opt/sfw/include"                          
$ export LDFLAGS="-L/opt/sfw/lib"
$ ./configure --with-openldap-prefix=/opt/sfw --with-ocspd-user=ocspd
--with-ocspd-group=ocspd
[...]

$ make
[...]
/bin/bash ../libtool --mode=link --tag=CC gcc  -g -O2  -L/opt/sfw/lib -o
ocspd  ocspd.o ocsp_response.o server.o configuration.o support.o
hash-db.o  -I/usr/sfw/include   -R/usr/sfw/lib -L/usr/sfw/lib -lssl
-lcrypto -lsocket -lnsl -ldl   -I/opt/sfw/include -L/opt/sfw/lib
-L/opt/sfw -llber -lldap -ll -ldl -lnsl -lsocket -lposix4 -lresolv
-lsocket -lnsl 
libtool: link: cannot find the library
`/export/builds/s10-release/s10_ccd_03/usr/src/cmd/openldap/openldap-2.2.17/libraries/liblber/liblber.la'
make[2]: *** [ocspd] Error 1
make[2]: Leaving directory




If I try to use gcc-2 instead, I am getting
$ export PATH=/opt/sfw/gcc-2/bin:$PATH
$ gcc -v
Reading specs from
/opt/sfw/gcc-2/lib/gcc-lib/sparc-sun-solaris2.10/2.95.3/specs
gcc version 2.95.3 20010315 (release)

$ ./configure --with-openldap-prefix=/opt/sfw --with-ocspd-user=ocspd
--with-ocspd-group=ocspd
[...]

$ make
[...]

source='configuration.c' object='configuration.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/bash ../build/depcomp \
gcc -DPACKAGE_VERSION=\"1.0.5\\x0\" -D_USE_SEMAPHORES=1
-DOCSPD_ARCH_SOLARIS=1 -I. -I. -I. -I../include -I/usr/sfw/include
-I/opt/sfw/include  -g -O2 -c configuration.c
configuration.c: In function `ocspd_load_ca_section':
configuration.c:125: parse error before `char'
configuration.c:142: `sol_buf' undeclared (first use in this function)
configuration.c:142: (Each undeclared identifier is reported only once
configuration.c:142: for each function it appears in.)
make[2]: *** [configuration.o] Error 1



Either way, I am stuck... :-(
Anybody having the same problem?

gt

Mon 19 Sep 2005 à 11:59:43AM -0500, Guillaume Tamboise a écrit :
> Hello
> 
> I am not able to get OCSPD to compile under Solaris 10.
> It seems to be always picking up the Solaris ldap headers, 
> instead of the OpenLDAP ldap headers :-(
> 
> $ ./configure --with-openldap-prefix=/opt/sfw --with-ocspd-user=ocspd 
> --with-ocspd-group=ocspd
> [...]
> 
> $ make
> [...]
> if gcc -DPACKAGE_VERSION=\"1.0.5\\x0\" -D_USE_SEMAPHORES=1
> -DOCSPD_ARCH_SOLARIS=1 -I. -I. -I. -I../include -I/usr/sfw/include
> -g -O2 -MT hash-db.o -MD -MP -MF ".deps/hash-db.Tpo" -c -o hash-db.o
> hash-db.c; \
> then mv -f ".deps/hash-db.Tpo" ".deps/hash-db.Po"; else rm -f
> ".deps/hash-db.Tpo"; exit 1; fi
> hash-db.c: In function `ocspd_ldap_connect':
> hash-db.c:122: error: `LDAP_OPT_SUCCESS' undeclared (first use in this
> function)
> hash-db.c:122: error: (Each undeclared identifier is reported only once
> hash-db.c:122: error: for each function it appears in.)
> make[2]: *** [hash-db.o] Error 1
> 
> 
> gcc does not seem to care about my "--with-openldap-prefix",
> even though
> $ ls /opt/sfw/lib/libldap.so
> /opt/sfw/lib/libldap.so
> $ ls /opt/sfw/include/ldap.h
> /opt/sfw/include/ldap.h
> 
> 
> Any idea? (besides removing the Solaris ldap stuff)
> 
> 
> Thanks
> 
> -- 
> Guillaume Tamboise
> 
> "First they ignore you, then they laugh at you, then they fight you,
> then you win." -- Gandhi
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Openca-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openca-users

-- 
Guillaume Tamboise

"First they ignore you, then they laugh at you, then they fight you,
then you win." -- Gandhi


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to