arm cross-compile problem with sockios.h
"Fritz Code" <[email protected]>
| Newsgroups | gmane.linux.bluez.user |
|---|---|
| Message-ID | <[email protected]> |
Hi! I try to cross compile blueu-utils 3-31 with my linux-arm-gcc crosscompiler. the build-process fails at the following position: bin/sh ../libtool --tag=CC --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../hcid -I../sdpd -I/opt/devel/toolchains/arm9/arm-linux/include/dbus-1.0 -I/opt/devel/toolchains/arm9/arm-linux/lib/dbus-1.0/include -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT bridge.lo -MD -MP -MF .deps/bridge.Tpo -c -o bridge.lo bridge.c arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../hcid -I../sdpd -I/opt/devel/toolchains/arm9/arm-linux/include/dbus-1.0 -I/opt/devel/toolchains/arm9/arm-linux/lib/dbus-1.0/include -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT bridge.lo -MD -MP -MF .deps/bridge.Tpo -c bridge.c -fPIC -DPIC -o .libs/bridge.o bridge.c: In function `bridge_create': bridge.c:82: error: `SIOCBRADDBR' undeclared (first use in this function) bridge.c:82: error: (Each undeclared identifier is reported only once bridge.c:82: error: for each function it appears in.) bridge.c: In function `bridge_remove': bridge.c:98: error: `SIOCBRDELBR' undeclared (first use in this function) bridge.c: In function `bridge_add_interface': bridge.c:121: error: `SIOCBRADDIF' undeclared (first use in this function) make[2]: *** [bridge.lo] Fehler 1 Taking a look at my arm toolchain folder in the header include/linux/sockios.h the defines are missing. Taking a look at my local build system (i386) in /usr/include/linux/sockios.h the defines are there. But both headers are the same version @(#)sockios.h 1.0.2 03/09/93. If i add the necessary defines to the header of my cross-compiler the described error doesn't occur anymore, but I run into the following: bin/sh ../libtool --tag=CC --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../hcid -I/opt/devel/toolchains/arm9/arm-linux/include/dbus-1.0 -I/opt/devel/toolchains/arm9/arm-linux/lib/dbus-1.0/include -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT device.lo -MD -MP -MF .deps/device.Tpo -c -o device.lo device.c arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../hcid -I/opt/devel/toolchains/arm9/arm-linux/include/dbus-1.0 -I/opt/devel/toolchains/arm9/arm-linux/lib/dbus-1.0/include -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT device.lo -MD -MP -MF .deps/device.Tpo -c device.c -fPIC -DPIC -o .libs/device.o device.c: In function `hidp_connadd': device.c:531: error: `ENOKEY' undeclared (first use in this function) device.c:531: error: (Each undeclared identifier is reported only once device.c:531: error: for each function it appears in.) make[2]: *** [device.lo] Fehler 1 It seems there are missing some #defines... Thanks, fritz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users