[Snort-users] Solaris Compile Problems

bctavern at ...244... bctavern at ...244...
Thu Oct 19 10:26:26 EDT 2000

Trying to get snort running on solaris 2.7 (with MySQL support) and no
matter whether I compile
        with or without the MySQL includes I get the following error:

        gcc -g -O2 -Wall -L/usr/local/lib -L/usr/local/etc/mysql/lib/mysql
-o snort snort.o log.o decode.o
        mstring.o rules.o plugbase.o sp_pattern_match.o sp_tcp_flag_check.o
        sp_icmp_code_check.o sp_ttl_check.o sp_ip_id_check.o
sp_tcp_ack_check.o sp_tcp_seq_check.o
        sp_dsize_check.o spp_http_decode.o spp_minfrag.o spp_portscan.o
        sp_rpc_check.o sp_icmp_id_check.o sp_icmp_seq_check.o respond.o
        spo_log_tcpdump.o sp_session.o spp_defrag.o spo_log_database.o
        spo_alert_full.o spo_alert_smb.o spo_alert_unixsock.o -lmysqlclient
-lpcap -lsocket -lnsl 
        Undefined first referenced
        symbol 	in file
        yylex 	/usr/local/lib/libpcap.a(grammar.o)
        lex_init 	/usr/local/lib/libpcap.a(gencode.o)
        ld: fatal: Symbol referencing errors. No output written to snort
        collect2: ld returned 1 exit status
        make: *** [snort] Error 1

Any help would be greatly appreciated.

Jay Smith

More information about the Snort-users mailing list