[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Relocation Truncated to fit



I'm trying to build snort 1.8.1 on my Debian box (2.4.8 kernel from BenH source, PowerPC machine), and I get the errors below. I wonder if someone could either point me to the source of the errors, or maybe explain how to debug them myself. I'd think that it was a missing include file or something except that mysql_query, which is defined in the same header file as mysql_error and mysql_errno, doesn't give an error.

Thanks,

Ian

<make session follows>
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap -I/root/mysql-3.23.41/include -DENABLE_MYSQL -g -O2 -Wall -c spo_database.c gcc -g -O2 -Wall -L/root/mysql-3.23.41/lib -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_type_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_portscan.o sp_ipoption_check.o sp_rpc_check.o sp_icmp_id_check.o sp_icmp_seq_check.o sp_respond.o spo_alert_syslog.o spo_log_tcpdump.o spo_database.o sp_session.o spp_defrag.o parser.o spo_alert_fast.o spo_alert_full.o spo_alert_smb.o spo_alert_unixsock.o sp_react.o spo_xml.o sp_ip_tos_check.o snprintf.o checksum.o spp_tcp_stream2.o sp_reference.o sp_ip_fragbits.o spp_anomsensor.o tag.o spp_unidecode.o codes.o strlcpyu.o strlcatu.o debug.o sp_tcp_win_check.o spp_rpc_decode.o spp_bo.o spp_telnet_negotiation.o spo_csv.o sp_ip_same_check.o sp_priority.o sp_ip_proto.o ubi_BinTree.o ubi_SplayTree.o spo_unified.o spp_stream4.o spp_frag2.o spp_arpspoof.o spo_idmef.o spo_SnmpTrap.o -lz -lpcap -lm -lnsl -lmysqlclient
spo_database.o: In function `Insert':
/root/snort-1.8.1-RELEASE/spo_database.c:1237: undefined reference to `mysql_errno' /root/snort-1.8.1-RELEASE/spo_database.c:1237: relocation truncated to fit: R_PPC_REL24 mysql_errno /root/snort-1.8.1-RELEASE/spo_database.c:1239: undefined reference to `mysql_error' /root/snort-1.8.1-RELEASE/spo_database.c:1239: relocation truncated to fit: R_PPC_REL24 mysql_error
spo_database.o: In function `Select':
/root/snort-1.8.1-RELEASE/spo_database.c:1371: undefined reference to `mysql_errno' /root/snort-1.8.1-RELEASE/spo_database.c:1371: relocation truncated to fit: R_PPC_REL24 mysql_errno /root/snort-1.8.1-RELEASE/spo_database.c:1373: undefined reference to `mysql_error' /root/snort-1.8.1-RELEASE/spo_database.c:1373: relocation truncated to fit: R_PPC_REL24 mysql_error
spo_database.o: In function `Connect':
/root/snort-1.8.1-RELEASE/spo_database.c:1492: undefined reference to `mysql_errno' /root/snort-1.8.1-RELEASE/spo_database.c:1492: relocation truncated to fit: R_PPC_REL24 mysql_errno /root/snort-1.8.1-RELEASE/spo_database.c:1494: undefined reference to `mysql_error' /root/snort-1.8.1-RELEASE/spo_database.c:1494: relocation truncated to fit: R_PPC_REL24 mysql_error
collect2: ld returned 1 exit status
make: *** [snort] Error 1

</make session>


--

ian@onepost.net
773 667 9763 (home)
773 844 0105 (cell)

Eventually all things merge into one, and a river runs through it. The river was cut by the world's great flood and runs over rocks from the basement of time. On some of the rocks are timeless raindrops. Under the rocks are the words, and some of the words are theirs.

I am haunted by waters.



Reply to: