Snort.org home  
Got Source? About Snort About Sourcefire Snort FAQ
Sourcefire Network Security - the creators of Snort

Snort Forums Archive

Archive Home » Snort Newbies » Sparc Solaris 9 snort compilation problems.

Please note that the categories listed below represent an archived version of our forums pages. To view the current version and be able to post and reply to threads, please register and login here to go to the full forums pages.

[ Notice: Full Version of This Topic ]

Sparc Solaris 9 snort compilation problems.


Posted by gkout on April 03, 2005 07:21:21

I m compiling snort on a solaris 9 box (patched with latest patches) and I have configured snort with configure --with-mysql=/usr/local/mysql cause I want to implement it along with acid. Though the configure runs smooth with no probs I get the following error when I run make:
... (truncated)
"make[3]: Entering directory `/downloads/snort-2.3.2/src'
gcc -g -O2 -Wall -L/usr/local/lib -R/usr/local/lib -lpcre -L/usr/local/mysql/lib/mysql -o snort codes.o debug.o decode.o log.o mstring.o parser.o plugbase.o snort.o snprintf.o strlcatu.o strlcpyu.o tag.o ubi_BinTree.o ubi_SplayTree.o util.o detect.o signature.o mempool.o sf_sdlist.o fpcreate.o fpdetect.o pcrm.o byte_extract.o sfthreshold.o packet_time.o event_wrapper.o event_queue.o inline.o output-plugins/libspo.a detection-plugins/libspd.a preprocessors/libspp.a preprocessors/flow/portscan/libportscan.a preprocessors/flow/libflow.a parser/libparser.a preprocessors/HttpInspect/libhttp_inspect.a sfutil/libsfutil.a -lmysqlclient -lz -lpcre -lpcap -lm -lsocket -lnsl -lresolv
Undefined first referenced
symbol in file
SSL_load_error_strings /usr/local/mysql/lib/mysql/libmysqlclient.a(viosslfactories.o)"

I found a post that says to add the following line after the INCLUDES in the preprocessor section in configure file.
LIBS="$LIBS -lresolve"
but no good. I still get the same error.
I have installed all the libs for gcc (libtools, glib) and gmake autoconf etc.
Tried both gcc 2.95.3. and gcc 3.2.3 but didn't work out.
Any suggestions would be appreciated.
Thank you all.
G.K.

Posted by SenthilPrabuS on April 03, 2005 20:21:24

Hi,
The error occurs because, MySQL was build with SSL support on your machine. Also, compiler looks for /usr/local/mysql/lib/mysql/libmysqlclient.a. So if You dont have libmysqlclient.sl library, then you fill face such problems. So place a copy of libmysqlclient.sl there to solve it or.

Another solution is to edit the configure file as below. Rerun the configure script again and try gmake.

Before: LIBS="${LIBS} -lmysqlclient"
After: LIBS="${LIBS} -lmysqlclient -lssl -lcrypto"

Hope, this helps......

--
Senthil Prabu.S

Posted by gkout on April 04, 2005 23:32:12

Thanks Senthil. This worked just fine and the snort is up and running with acid.
Do you know of any documentation about configuring/compiling ( e.g. the -lsssl and -lcrypto ) and gcc? Thanxs for your help, really appreciate it.