Cross configuration and compilation
Rajesh Tripathi <[email protected]> 2 Apr 2004 00:40:54 -0000
| Newsgroups | gmane.comp.security.libnet |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm trying to build libnet for a mips target running
linux. The linux host already has a cross compiler.
The target kernel sources are in
/home/rajesh/sibyte/systemsw/linux/src/kernel
Here is the screen dump.
./configure --host mips-linux --prefix
/home/rajesh/sibyte/systemsw/linux/src/kernel
configure: WARNING: If you wanted to set the --build
type, don't use --host.
If a cross compiler is detected then cross
compile mode will be used.
beginning autoconfiguration process for
libnet-1.1.1...
checking build system type... i686-pc-linux-gnu
checking host system type... mips-mips-linux-gnu
checking target system type... mips-mips-linux-gnu
checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for mips-linux-gcc... mips-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler...
yes
checking whether mips-linux-gcc accepts -g... yes
checking for mips-linux-gcc option to accept ANSI
C... none needed
checking for a BSD-compatible install...
/usr/bin/install -c
checking for mips-linux-ranlib... mips-linux-ranlib
checking how to run the C preprocessor...
mips-linux-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking machine endianess... ./configure:
./conftest: cannot execute binary file
./configure: test: =: unary operator expected
./configure: test: =: unary operator expected
unknown
checking if unaligned accesses fail... yes
checking whether mips-linux-gcc needs -traditional...
no
checking for strerror... yes
checking link-layer packet interface type... found
linux primitives
checking for packet socket (PF_SOCKET)...
./configure: ./pf_packet-test: cannot
execute binary file
./configure: test: =: unary operator expected
./configure: test: =: unary operator expected
./configure: test: =: unary operator expected
./configure: test: =: unary operator expected
./configure: test: too many arguments
scanning available packet construction modules:
802.1q 802.1x 802.2 802.3 arp bgp cdp data dhcp dns
ethernet fddi gre icmp igmp ip ipsec isl link mpls
ntp ospf
rip rpc snmp stp tcp token_ring udp vrrp
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating include/libnet/Makefile
config.status: creating sample/Makefile
config.status: creating version.h
config.status: creating include/libnet.h
config.status: creating libnet-config
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing default-1 commands
config.status: executing default commands
[rajesh@localhost libnet]$
[rajesh@localhost libnet]$ make
Making all in include
make[1]: Entering directory
`/home/rajesh/mips/libnet/include'
make all-recursive
make[2]: Entering directory
`/home/rajesh/mips/libnet/include'
Making all in libnet
make[3]: Entering directory
`/home/rajesh/mips/libnet/include/libnet'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/rajesh/mips/libnet/include/libnet'
make[3]: Entering directory
`/home/rajesh/mips/libnet/include'
make[3]: Leaving directory
`/home/rajesh/mips/libnet/include'
make[2]: Leaving directory
`/home/rajesh/mips/libnet/include'
make[1]: Leaving directory
`/home/rajesh/mips/libnet/include'
Making all in src
make[1]: Entering directory
`/home/rajesh/mips/libnet/src'
mips-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../include
-g -O2 -Wall -c libnet_asn1.c
In file included from libnet_asn1.c:60:
../include/libnet.h:94:10: macro names must be
identifiers
make[1]: *** [libnet_asn1.o] Error 1
make[1]: Leaving directory
`/home/rajesh/mips/libnet/src'
make: *** [all-recursive] Error 1
Thanks,
Rajesh
[rajesh@localhost libnet]$