[Snort-users] Subject: Compile problems with MySQL 4.0.13

John Creegan jcreegan at ...9729...
Fri Jul 25 09:58:05 EDT 2003


Ask and you shall receive!

I'm thinking maybe I should compile MySQL from source...

Error listing follows:

gcc  -g -O2 -Wall  -L/usr/local/mysql/lib -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 threshold.o fpcreate.o 
fpdetect.o mwm.o mpse.o acsmx.o  pcrm.o sfksearch.o byte_extract.o
output-plugins/libspo.a  detection-plugins/libspd.a            
preprocessors/libspp.a                 parser/libparser.a -lz -lpcap -lm
-lsocket -lnsl  -lmysqlclient
  ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(libmysql.o):
wrong ELF class: ELFCLASS64
  Undefined                       first referenced
   symbol                             in file
   mysql_close                        
output-plugins/libspo.a(spo_database.o)
   mysql_free_result                  
output-plugins/libspo.a(spo_database.o)
   mysql_fetch_row                    
output-plugins/libspo.a(spo_database.o)
   mysql_real_connect                 
output-plugins/libspo.a(spo_database.o)
   mysql_use_result                   
output-plugins/libspo.a(spo_database.o)
   mysql_errno                        
output-plugins/libspo.a(spo_database.o)
   mysql_error                        
output-plugins/libspo.a(spo_database.o)
   mysql_query                        
output-plugins/libspo.a(spo_database.o)
   mysql_init                         
output-plugins/libspo.a(spo_database.o)
   ld: fatal: Symbol referencing errors. No output written to snort
   collect2: ld returned 1 exit status
   *** Error code 1
   make: Fatal error: Command failed for target `snort'
   Current working directory /opt/local/snort-2.0.1/src
   *** Error code 1
   make: Fatal error: Command failed for target `all-recursive'
   Current working directory /opt/local/snort-2.0.1/src
   *** Error code 1
   make: Fatal error: Command failed for target `all-recursive'
   Current working directory /opt/local/snort-2.0.1
   *** Error code 1
   make: Fatal error: Command failed for target `all'



This message (including any attachments) contains confidential 
information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient,
you should delete this message and are hereby notified that any 
disclosure,copying, or distribution of this message, or the taking 
of any action based on it, is strictly prohibited.





More information about the Snort-users mailing list