Skip to contentSkip to conversation

uml failes to build with pcap enabled

uml-devel Alexander Newald 2 participants 3 messages Sep 30, 2003 – Nov 10, 2003 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Hello,

I've tried to use uml with pcap but I fail to build the linux binary.

I used a clean sorce of kernel 2.4.22 from kernel.org and the corresponding patch from the uml site.

I did:

make menuconfig ARCH=um
make linux ARCH=um

and ended up here...

make[1]: Leaving directory `/home/uml/UML/linux-2.4.22/arch/um/fs' make
CFLAGS="-D__KERNEL__ -I/home/uml/UML/linux-2.4.22/include -Wall -Wstrict-pro totypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -U__i386__ -Ui3 86 -DUM_FASTCALL -g -D__arch_um__ -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE - I/home/uml/UML/linux-2.4.22/arch/um/include -Derrno=kernel_errno -I/home/uml /UML/linux-2.4.22/arch/um/kernel/tt/include -I/home/uml/UML/linux-2.4.22/arc h/um/kernel/skas/include " -C arch/um/drivers
make[1]: Entering directory `/home/uml/UML/linux-2.4.22/arch/um/drivers' make all_targets
make[2]: Entering directory /home/uml/UML/linux-2.4.22/arch/um/drivers' make[2]: *** No rule to make target -L/usr/lib', needed by pcap.o'. Stop. make[2]: Leaving directory /home/uml/UML/linux-2.4.22/arch/um/drivers' make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/home/uml/UML/linux-2.4.22/arch/um/drivers'
make: *** [_dir_arch/um/drivers] Error 2

libpcap is installed as

~/UML/linux-2.4.22> rpm -q -l libpcap
/usr/include/net/bpf.h
/usr/include/pcap-namedb.h
/usr/include/pcap.h
/usr/lib/libpcap.a
/usr/lib/libpcap.so
/usr/lib/libpcap.so.0
/usr/lib/libpcap.so.0.6.2
/usr/share/doc/packages/libpcap
/usr/share/doc/packages/libpcap/CHANGES
/usr/share/doc/packages/libpcap/CREDITS
/usr/share/doc/packages/libpcap/INSTALL.txt
/usr/share/doc/packages/libpcap/LICENSE
/usr/share/doc/packages/libpcap/README
/usr/share/doc/packages/libpcap/README.aix
/usr/share/doc/packages/libpcap/README.linux
/usr/share/doc/packages/libpcap/README.tru64
/usr/share/doc/packages/libpcap/TODO
/usr/share/man/man3/pcap.3.gz

What I'm doing wrong?

Thanks

Alexander Newald

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 3 lines · [email protected] said:

I've tried to use uml with pcap but I fail to build the linux binary. I used a clean sorce of kernel 2.4.22 from kernel.org and the corresponding patch from the uml site.

pcap is one of the lesser-used transports, and requires some build strangeness.

I don't know what's going on here, but I added it to mylist.

Jeff

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#2 lore raw
In reply to Alexander Newald
Quoted 1 line · [email protected] said:

I've tried to use uml with pcap but I fail to build the linux binary.

Can you try with -6 when it comes out? I haven't seen that problem here, but I cleaned up that build a little to make it go away.

Jeff

-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel