Re: [Courier-imap] compile error on solalis8

2007-12-13 Thread Koichi Mori
Hello Sam,

Sam Varshavchik [EMAIL PROTECTED] wrote
in article Re: [Courier-imap] compile error on solalis8 
at Thu, 13 Dec 2007 07:00:53 -0500
In the tcpd directory, run 'make -n' to see the full link command.

thanks alot the result is here.

% gmake -n
if test ! -f config.h; then \
  rm -f stamp-h1; \
  gmake stamp-h1; \
else :; fi
gmake  all-am
gmake[1]: Entering directory `/usr/local/src/courier-imap-4.1.1/tcpd'
if test ! -f config.h; then \
  rm -f stamp-h1; \
  gmake stamp-h1; \
else :; fi
rm -f couriertls
echo Linking couriertls; /bin/bash ./libtool --tag=CC --quiet --mode=link gcc  
-I./.. -I.. -Wall -g -O2  -R/usr/local/ssl/lib:/usr/local/lib:/usr/lib 
-L/usr/local/lib -L/usr/local/ssl/lib -o couriertls -static starttls.o 
argparse.o libcouriertls.la libspipe.la ../rfc1035/librfc1035.a 
../md5/libmd5.la ../random128/librandom128.la ../numlib/libnumlib.la 
../liblock/liblock.la ../soxwrap/libsoxwrap.a -Wl,-lssl -Wl,-lcrypto 
-Wl,-lsocket -Wl,-lnsl -Wl,-lsocket -Wl,-lnsl -lsocket
source='tlscachetest.c' object='tlscachetest.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/bash ./../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/ssl/include  -I./.. -I.. -Wall 
-g -O2 -c tlscachetest.c
rm -f tlscachetest
echo Linking tlscachetest; /bin/bash ./libtool --tag=CC --quiet --mode=link gcc 
 -I./.. -I.. -Wall -g -O2  -R/usr/local/ssl/lib:/usr/local/lib:/usr/lib 
-L/usr/local/lib -L/usr/local/ssl/lib -o tlscachetest -static tlscachetest.o 
../numlib/libnumlib.la ../liblock/liblock.la -lsocket
gmake[1]: Leaving directory `/usr/local/src/courier-imap-4.1.1/tcpd'

Is it correct? I don't figure out;(

-- 
Koichi Mori

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] compile error on solalis8

2007-12-13 Thread Sam Varshavchik

Koichi Mori writes:


Hello Sam,

Sam Varshavchik [EMAIL PROTECTED] wrote
in article Re: [Courier-imap] compile error on solalis8 
at Thu, 13 Dec 2007 07:00:53 -0500

In the tcpd directory, run 'make -n' to see the full link command.


thanks alot the result is here.

% gmake -n
if test ! -f config.h; then \
  rm -f stamp-h1; \
  gmake stamp-h1; \
else :; fi
gmake  all-am
gmake[1]: Entering directory `/usr/local/src/courier-imap-4.1.1/tcpd'
if test ! -f config.h; then \
  rm -f stamp-h1; \
  gmake stamp-h1; \
else :; fi
rm -f couriertls
echo Linking couriertls; /bin/bash ./libtool --tag=CC --quiet --mode=link
gcc  -I./.. -I.. -Wall -g -O2 
-R/usr/local/ssl/lib:/usr/local/lib:/usr/lib -L/usr/local/lib

-L/usr/local/ssl/lib -o couriertls -static starttls.o argparse.o
libcouriertls.la libspipe.la ../rfc1035/librfc1035.a ../md5/libmd5.la
../random128/librandom128.la ../numlib/libnumlib.la ../liblock/liblock.la
../soxwrap/libsoxwrap.a -Wl,-lssl -Wl,-lcrypto -Wl,-lsocket -Wl,-lnsl
-Wl,-lsocket -Wl,-lnsl -lsocket


This shows the libtool link commmand, but not the actual link command, 
because of that -quiet option. Obtaining the actual link command would be 
rather difficult here.


The only thing I can suggest is that you verify that OpenSSL is build as a 
shared library, not as a static library. Even though OpenSSL's default 
makefile builds static libraries only, nobody really uses this configuration 
in practice, and there are a number of issues with that. All Linux and BSD 
distributions build and install OpenSSL as a shared library, and you should 
either.


Finally, why are you building 4.1.1? The current version is 4.3.0, try 
building the current version, instead.




pgpp9QE2J4pKx.pgp
Description: PGP signature
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] compile error on solalis8

2007-12-13 Thread Koichi Mori
Hello Sam,

Sam Varshavchik [EMAIL PROTECTED] wrote
in article Re: [Courier-imap] compile error on solalis8 
at Thu, 13 Dec 2007 23:11:09 -0500
The only thing I can suggest is that you verify that OpenSSL is build as a 
shared library, not as a static library. Even though OpenSSL's default 
makefile builds static libraries only, nobody really uses this configuration 
in practice, and there are a number of issues with that. All Linux and BSD 
distributions build and install OpenSSL as a shared library, and you should 
either.

I compiled OpenSSL with shared library.
I did just add shared when I use configure of OpenSSL.
Then compile and installed.
Is it not enough?

% ldd /usr/local/ssl/bin/openssl 
libssl.so.0.9.8 =   /usr/local/ssl/lib/libssl.so.0.9.8
libcrypto.so.0.9.8 =/usr/local/ssl/lib/libcrypto.so.0.9.8
libsocket.so.1 =/usr/lib/libsocket.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libdl.so.1 =/usr/lib/libdl.so.1
libc.so.1 = /usr/lib/libc.so.1
libmp.so.2 =/usr/lib/libmp.so.2
/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1

Finally, why are you building 4.1.1? The current version is 4.3.0, try 
building the current version, instead.

Please read my first e-mail. I tried compiling 4.3.0 and 4.1.1 then
the error was different. I thought 4.1.1 better for me because 
you advised for 4.1.1.

-- 
Koichi Mori

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] compile error on solalis8

2007-12-12 Thread Koichi Mori
Hello all,

I try install imap-4.3.0 on solaris 8(SPARC) but compiler said this
error.

g++ -g -O2 -o testbdb testbdb.o  -L/usr/local/lib -L/usr/local/ssl/lib 
./.libs/l
ibbdbobj.a -ldb   -Wl,-R -Wl,/usr/local/lib:/usr/lib
Undefined   first referenced
 symbol in file
cerrtestbdb.o
endl(ostream ) testbdb.o
__out_of_range(char const *)testbdb.o
__length_error(char const *)testbdb.o
ostream::operator(char const *)   testbdb.o
ld: fatal: Symbol referencing errors. No output written to testbdb
collect2: ld returned 1 exit status

I am already installed authlib-0.60.2,Berkeley DB 4.1.25.
Then I also try compile imap-4.1.1. It passed testbdb but it said
another error.

gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/ssl/include  -I./.. -I.. -Wall 
-g -O2 -c starttls.c
Linking couriertls
Undefined   first referenced
 symbol in file
SSL_load_error_strings  ./.libs/libcouriertls.a(libcouriertls.o)
TLSv1_method./.libs/libcouriertls.a(libcouriertls.o)
SSLv2_method./.libs/libcouriertls.a(libcouriertls.o)
SSL_CTX_use_PrivateKey_file ./.libs/libcouriertls.a(libcouriertls.o)
SSL_CTX_use_RSAPrivateKey_file  ./.libs/libcouriertls.a(libcouriertls.o)
SSL_CTX_use_certificate_chain_file  ./.libs/libcouriertls.a(libcouriertls.o)
d2i_SSL_SESSION ./.libs/libcouriertls.a(libcouriertls.o)
RSA_generate_key./.libs/libcouriertls.a(libcouriertls.o)
i2d_SSL_SESSION ./.libs/libcouriertls.a(libcouriertls.o)
SSLv23_method   ./.libs/libcouriertls.a(libcouriertls.o)
SSL_library_init./.libs/libcouriertls.a(libcouriertls.o)
ld: fatal: Symbol referencing errors. No output written to couriertls
collect2: ld returned 1 exit status

I already installed OpenSSL-0.9.8c.

I typed configure was here for both version.

%env CPPFLAGS='-I/usr/local/ssl/include' \
LDFLAGS='-R/usr/local/lib:/usr/lib -L/usr/local/lib \
-L/usr/local/ssl/lib' \
./configure \
--with-waitfunc=wait3 \
--without-authldap \
--with-unicode \
--enable-workarounds-for-imap-client-bugs \
--with-db=db \
--without-ipv6 \
--with-piddir=/var/run \
--disable-root-check \
--with-authvchkpw

Please give any advise.
And whitch version better for me?

other information:
GNU Make 3.80
gcc version 2.95.3
Berkeley DB  /usr/local/include /usr/local/lib installed

thank you

-- 
Koichi Mori

-
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] compile error on solalis8

2007-12-12 Thread Sam Varshavchik

Koichi Mori writes:


SSL_library_init./.libs/libcouriertls.a(libcouriertls.o)
ld: fatal: Symbol referencing errors. No output written to couriertls
collect2: ld returned 1 exit status


I already installed OpenSSL-0.9.8c.

I typed configure was here for both version.


%env CPPFLAGS='-I/usr/local/ssl/include' \
LDFLAGS='-R/usr/local/lib:/usr/lib -L/usr/local/lib \
-L/usr/local/ssl/lib' \


You probably need to add /usr/local/ss/lib to -R. This presumes this is 
where you installed OpenSSL. Furthermore, you must build OpenSSL as a shared 
library, not as a static library.




pgp6fOsHIq3Uo.pgp
Description: PGP signature
-
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap