Hiya
        Have you tried getting it to statically link the mysql libraries?
instead of just having -lmysqlclient in the command try <fullpath to
lib>/libmysqlclient.a

I don't think you need to put -l at the start (been a while).

I have had probs in Solaris with dynamically linked stuff.. PostGresQL has
given me probs with dynamic linking in the past under solaris.

hope thats of help

Graeme

On Thu, 5 Sep 2002, Shawn Scott wrote:

> I am having great difficulty compiling sqwebmail on Solaris 2.7 Sparc. I have Qmail 
>and Vpopmail with Mysql support installed and working correctly. When I try to 
>compile both sqwebamil 3.3.1 and 3.3.7, I get the same exact error. I have tried 
>altering the LD_LIBRARY_PATH and almost every configure option that made sense. Seems 
>no matter what I try I still get an error. I have all the correct packages and 
>Libraries according to the INSTALL file.  Below are the details
>
> Vpopmail Version - 5.2.1
> Mysql Version - 3.23.23
> Sqwebmail Version 3.3.1 and 3.3.7
>
> Configure Options-
>
> CC=gcc \
> CPPFLAGS="-I /usr/local/include -I/export/home/vpopmail/include" \
> LDFLAGS="-R/usr/local/lib -R/export/home/vpopmail/lib" \
>  ./configure \
> --enable-hardtimeout=21600 \
> --enable-softtimeout=3600 \
> --enable-autopurge=7 \
> --enable-maxpurge=90 \
> --enable-cgibindir=/export/web/webmail/cgi-bin \
> --enable-imagedir=/export/web/webmail/images \
> --enable-imageurl=/images \
> --enable-mimetypes=/usr/local/apache/conf/mime.types \
> --with-cachedir=/var/run/sqwebmail \
> --disable-utf7-folder-encoding \
> --without-authdaemon \
> --without-authpam \
> --without-authuserdb \
> --without-authldap \
> --without-authshadow \
> --without-fcgi \
> --without-ispell \
> --with-authvchkpw
>
> This is the error I get
>
> Making all in authlib
> make[1]: Entering directory `/usr/local/src/sqwebmail-3.3.7.20020823/authlib'
> gcc  -I/export/home/vpopmail/include -g -O2 -Wall -I.. -I./.. -R/usr/local/lib 
>-R/export/home/vpopmail/lib -o authvchkpw  modauthvchkpw.o libauthmod.a libauth.a 
>../numlib/libnumlib.a ../md5/libmd5.a ../sha1/libsha1.a -L/export/home/vpopmail/lib 
>-lvpopmail -L/usr/local/mysql/lib -lmysqlclient -lz -lm -lcrypt
> Undefined                       first referenced
>  symbol                             in file
> socket                              /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> getpeername                         /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> gethostbyname_r                     /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> setsockopt                          /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> getservbyname                       /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> getsockopt                          /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> inet_addr                           /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> inet_ntoa                           /usr/local/mysql/lib/libmysqlclient.a(my_net.o)
> shutdown                            /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> connect                             /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> ld: fatal: Symbol referencing errors. No output written to authvchkpw
> collect2: ld returned 1 exit status
> make[1]: *** [authvchkpw] Error 1
> make[1]: Leaving directory `/usr/local/src/sqwebmail-3.3.7.20020823/authlib'
> make: *** [all-recursive] Error 1
>
> Any help or insight into what might be causing this error would be greatly 
>appreciated.
>
> -Shawn
>
>

-----
Graeme Hinchliffe BSc (Hons)                                           _
Unix Systems Engineer (UK Datacentre)           ASCII ribbon campaign ( )
                                                 - against HTML email  X
VIA NET.WORKS                                                & vCards / \
                                                http://arc.pasp.de/
Tel +44-1925-484065
Fax +44-1925-484055

ICQ : 3842605 (name : Link)

www.vianetworks.co.uk

Reply via email to