On Tue, 30 Jun 2009 21:25:31 +0200
Sebastian Toepfer <[email protected]> wrote:

> Hallo,
> 
> sorry for spamming this list with stupid compile problems ....

No problem, we need to make it work as out of the box as possible on
Solaris too.

> 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.

Your mail would be much easier to read if you'd actually copy/paste the
output from your console, without wrapping the lines of compiler, etc.
output and without this extra blank lines.
 
> 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)

OK.
 
> 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

OK. Please give us the configure log.

>    $ gmake
> but now I see:
>    gcc: unrecognized option `-pthread' but make doesn't stop :(

What's the name of the threading lib on Solaris?

> 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 ...

Both of them are thread-safe so they need the threading lib.
Build should fail or at lest install. I'll track the problem in the
next days.

> 
> 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/

OK. Please give us the configure log.
 
> 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

Wwll, I guess Sun did some changes to stock gcc. FYI dspam compiles
just fine with same gcc version on FreeBSD.

But what's missing here it's the postgresql lib. Can you please post the output 
of:
 > ls -l /usr/postgres/8.3/lib/
(redirect it to a file and attach the file, it will be easier to read this way).

> 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?

I will investigate, but I'd like to see those configure logs for each
case.

Thanks,

-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> [email protected], PGP Key ID 057E9F8B493A297B

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to