Hallo,
sorry for spamming this list with stupid compile problems ....
I try to compile dspam with mysql_drv and pgsql_drv on openSolaris now.
But have multiple errors or problems that I doesn't understand.
System:
$ cat
/etc/release
OpenSolaris 2009.06 snv_111b X86
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 May 2009
$ which
cc
/usr/bin/cc
$ ls -l
/usr/bin/cc
/usr/bin/cc -> ../../opt/sunstudio12.1/bin/cc
$which ld
/usr/bin/ld (sun linker)
$ gmake --version
GNU Make 3.81
gcc
--version
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
$ /usr/bin/gcc
--version
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
now the problems:
$./configure CC=gcc --prefix=/usr/local/dspam --enable-daemon
--enable-split-configuration --enable-debug --enable-syslog
--enable-preferences-extension --enable-long-usernames
--enable-domain-scale --enable-virtual-users
--with-storage-driver=mysql_drv,pgsql_drv
--with-mysql-includes=/usr/mysql/include/mysql
--with-mysql-libraries=/usr/mysql/lib/mysql/
--with-pgsql-includes=/usr/postgres/8.3/include/
--with-pgsql-libraries=/usr/postgres/8.3/lib/
can't see any errors
$ gmake
but now I see:
gcc: unrecognized option `-pthread' but make doesn't stop :(
and
$ ls -l /usr/local/dspam/lib/
total 523
drwxr-xr-x 2 root root 12 2009-06-30 20:47 dspam
-rw-r--r-- 1 root root 221082 2009-06-30 20:47 libdspam.a
-rwxr-xr-x 1 root root 824 2009-06-30 20:47 libdspam.la
lrwxrwxrwx 1 root root 17 2009-06-30 20:47 libdspam.so ->
libdspam.so.7.0.0
lrwxrwxrwx 1 root root 17 2009-06-30 20:47 libdspam.so.7 ->
libdspam.so.7.0.0
-rwxr-xr-x 1 root root 175976 2009-06-30 20:47 libdspam.so.7.0.0
drwxr-xr-x 2 root root 3 2009-06-30 20:47 pkgconfig
no driver ...
next try with:
$ ./configure CC=cc --prefix=/usr/local/dspam --enable-daemon
--enable-split-configuration --enable-debug --enable-syslog
--enable-preferences-extension --enable-long-usernames
--enable-domain-scale --enable-virtual-users
--with-storage-driver=mysql_drv,pgsql_drv
--with-mysql-includes=/usr/mysql/include/mysql
--with-mysql-libraries=/usr/mysql/lib/mysql/
--with-pgsql-includes=/usr/postgres/8.3/include/
--with-pgsql-libraries=/usr/postgres/8.3/lib/
can't see any errors
$ gmake
but now it comes:
cc -g -I../../src -o .libs/dspam_pg2int8
dspam_pg2int8-dspam_pg2int8.o dspam_pg2int8-read_config.o
dspam_pg2int8-config_api.o -lpq -L/usr/postgres/8.3/lib/
../.libs/libdspam.so -lsocket -lnsl -lm -lpthread -R/usr/local/dspam/lib
ld: fatal: library -lpq: not found
ld: fatal: file processing errors. No output written to .libs/dspam_pg2int8
okay sun compiler not yours
I try gcc-4.3.2 now
$ ./configure CC=gcc-4.3.2 --prefix=/usr/local/dspam --enable-daemon
--enable-split-configuration --enable-debug --enable-syslog
--enable-preferences-extension --enable-long-usernames
--enable-domain-scale --enable-virtual-users
--with-storage-driver=mysql_drv,pgsql_drv
--with-mysql-includes=/usr/mysql/include/mysql
--with-mysql-libraries=/usr/mysql/lib/mysql/
--with-pgsql-includes=/usr/postgres/8.3/include/
--with-pgsql-libraries=/usr/postgres/8.3/lib/
and see now:
checking where to find PostgreSQL headers... /usr/postgres/8.3/include/
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking where to find PostgreSQL libraries... /usr/postgres/8.3/lib/
checking for library containing inet_ntoa... (cached) -lnsl
checking for library containing socket... (cached) -lsocket
checking for PQconnectdb in libpq... no
configure: error: Required version of libpq not found
but the lib is in the given directory?
$ ls
/usr/postgres/8.3/lib/
64 libecpg.so.6
utf8_and_euc_cn.so
amd64 libecpg.so.6.0
utf8_and_euc_jis_2004.so
ascii_and_mic.so libpgtypes.so
utf8_and_euc_jp.so
cyrillic_and_mic.so libpgtypes.so.3
utf8_and_euc_kr.so
dict_snowball.so libpgtypes.so.3.0
utf8_and_euc_tw.so
euc_cn_and_mic.so libpq.so
utf8_and_gb18030.so
euc_jis_2004_and_shift_jis_2004.so libpq.so.5
utf8_and_gbk.so
euc_jp_and_sjis.so libpq.so.5.1
utf8_and_iso8859_1.so
euc_kr_and_mic.so libpqxx-2.6.9.so
utf8_and_iso8859.so
euc_tw_and_big5.so libpqxx.so
utf8_and_johab.so
latin_and_mic.so pgxs
utf8_and_shift_jis_2004.so
latin2_and_win1250.so pkgconfig
utf8_and_sjis.so
libecpg_compat.so plpgsql.so
utf8_and_uhc.so
libecpg_compat.so.3 utf8_and_ascii.so
utf8_and_win.so
libecpg_compat.so.3.0 utf8_and_big5.so
libecpg.so utf8_and_cyrillic.so
now my question why produced every call different problems?
this are problems where the real problem site before the monitor?
sebastian
------------------------------------------------------------------------------
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel