Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Problems compiling app using libnet 1.1.2.1 |
|---|---|
| Date: | Thu, 30 Sep 2004 14:17:41 +0100 |
Hi, Before I start I will just want to state that I am new to libnet and I am not much of a C programmer (Java man) . I wrote a tiny libnet (hello world type) app for libnet version 1.0.?.? (Whatever version that came with my SuSE box) which compiled and worked fine. Now I would like to use libnet 1.1.2.1 which I got from http://www.packetfactory.net/libnet/dist/libnet.tar.gz. I did a "find -name libnet*" at filesystem root and I deleted all old libnet files from the drive. I downloaded the libnet tar ball and then I ran ./configure make and make install. This is the tine piece of code I'm trying to compile; $ cat lnd.c #include <libnet.h> #include <stdio.h> int main(int argc, char **argv){ int c; char errbuf[LIBNET_ERRBUF_SIZE]; libnet_t *l = NULL; l = libnet_init(LIBNET_LINK,NULL,errbuf); c = libnet_write(l); return 0; } I tried to compile my new app with "gcc `libnet-config --defines` `libnet-config --libs` `libnet-config --cflags` -o test lnd.c" Which gave me the following error message: /tmp/ccna0Gqu.o(.text+0x2c): In function `main': : undefined reference to `libnet_init' /tmp/ccna0Gqu.o(.text+0x43): In function `main': : undefined reference to `libnet_write' collect2: ld returned 1 exit status I guess that this is because of some version mismatch but I can't resolve it... ...so please help me resolve this. So I ran "strings /usr/lib/libnet.a |grep version" and this is the result; libnet_version.o/ libnet version 1.1.2.1 (c) 1998 - 2004 Mike D. Schiffman <mike infonexus com> libnet_version.c ...which for me looks like I am coding for the right version. Regards Johan ********************************************************************** Please note: The e-mail accompanying this disclaimer is confidential and may also be privileged. Please notify us immediately if you are not the intended recipient. You should not copy it, forward it, or use it for any purpose or disclose the contents to any person. This email has been swept for viruses using tools from our preferred suppliers. Telamon Systems actively supply both mail-scanning and anti-virus products in addition to supplying a range of security, infrastructure and business solutions to our customers. For further details please see our web site at www.telamon.co.uk, email information@telamon.co.uk or call our sales team on +44 (0)870 607 4747 **********************************************************************
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: IP cheksum and libnet_pblock_coalesce, Wu Yongwei |
|---|---|
| Previous by Thread: | NG & Sparc, Frédéric Raynal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |