After some more investigation I found the problem. If I change to the
authlib directory and enter the gcc string that was failing , and
add -lnsl -lsocket at the end I can get the file to compile. I need to do
this for each one that fails, however. Seems the make file is not adding
these when it compiles the files in the authlib directory. Once I do this
the program appears to compile ok. However when I attempt to bring it up in
a browser I am getting the cgi error "Premature end of script headers:
/export/web/webmail/cgi-bin/sqwebmail" which is pretty worthless in telling
what the real problem is. If I attempt to run it on the command line I get
this error.
./sqwebmail
Cache-Control: no-store
Pragma: no-cache
Content-Type: text/html; charset="us-ascii"

<H1>Internal error (module sqwebmail.c, line 2376) - contact system
administrator</H1>
Segmentation Fault (core dumped)


This is what I get when running sqwebmail from the command line on a working
system.

/export/web/sqwebmail/cgi-bin$ ./sqwebmail
Cache-Control: no-store
Pragma: no-cache
Content-Type: text/html; charset="us-ascii"

<H1>Internal error (module sqwebmail.c, line 2335) - contact system
administrator</H1>

Mine is giving the same message but it is dumping core. I am at a loss as to
what to do next.

-Shawn


> > Vpopmail Version - 5.2.1
> > Mysql Version - 3.23.23
> > Sqwebmail Version 3.3.1 and 3.3.7
> >
> > 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/l
ib -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


Reply via email to