Hi,<br><br>I try to cross compile dbus-1.2.1 for an embedded linux arm device.<br><br>At the first I had to disable some tests with an entry in config.cache:<br>ac_cv_have_abstract_sockets=no<br><br>After that there was no problem in running configure.<br>
<br>The Variable $CC is exported and set to arm-linux-gcc<br>I'm starting configure with the following arguments:<br>./configure --config-cache --build=i686-linux --target=arm-linux --prefix=/opt/devel/toolchains/arm9/arm-linux --host=arm-linux<br>
<br>I've attached my config.log if it helps<br><br>When I try to make the following error occurs:<br>-------------------------<br><br>dbus-sysdeps-unix.c: In function `_dbus_connect_tcp_socket':<br>dbus-sysdeps-unix.c:792: error: `AI_ADDRCONFIG' undeclared (first use in this function)<br>
dbus-sysdeps-unix.c:792: error: (Each undeclared identifier is reported only once<br>dbus-sysdeps-unix.c:792: error: for each function it appears in.)<br>dbus-sysdeps-unix.c: In function `_dbus_listen_tcp_socket':<br>
dbus-sysdeps-unix.c:895: error: `AI_ADDRCONFIG' undeclared (first use in this function)<br><br>Doing some research I figured out that this Constant is not exported anymore, but should be set to 4.<br>So I did the definition manually by adding #define AI_ADDRCONFIG 4 to dbus/dbus-sysdeps-unix.c<br>
<br><br>After that I ran into following error:<br>-------------------------<br><br>arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -DDBUS_LOCALEDIR=\"/opt/devel/toolchains/arm9/arm-linux/share/locale\" -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\"/opt/devel/toolchains/arm9/arm-linux/bin\" -DDBUS_MACHINE_UUID_FILE=\""/opt/devel/toolchains/arm9/arm-linux/var/lib/dbus/machine-id"\" -ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -fno-common -MT dbus-launch.o -MD -MP -MF .deps/dbus-launch.Tpo -c -o dbus-launch.o dbus-launch.c<br>
In Datei, eingefügt von /usr/include/bits/sigcontext.h:28,<br> von /usr/include/signal.h:333,<br> von dbus-launch.c:29:<br>/usr/include/asm/sigcontext.h:9:4: Warnung: #warning This machine appears to be neither x86_64 nor i386.<br>
In file included from dbus-launch.c:29:<br>/usr/include/signal.h:336: Warnung: `struct sigcontext' declared inside parameter list<br>/usr/include/signal.h:336: Warnung: its scope is only this definition or declaration, which is probably not what you want<br>
In file included from /usr/include/linux/errno.h:4,<br> von /usr/include/bits/errno.h:25,<br> von /usr/include/errno.h:36,<br> von dbus-launch.c:31:<br>/usr/include/asm/errno.h:9:4: Warnung: #warning This machine appears to be neither x86_64 nor i386.<br>
dbus-launch.c: In Funktion »read_line«:<br>dbus-launch.c:210: error: `EINTR' undeclared (first use in this function)<br>dbus-launch.c:210: error: (Each undeclared identifier is reported only once<br><br><br>At this point I took a look at /usr/include/asm/errno.h and /usr/include/asm/sigcontext.h (the origin of the errors)<br>
and commented just quick and dirty the x86_64 version, so that it's forced to use i386.<br><br><br><br>After that I ran into the following error:<br>-------------------------<br><br>arm-linux-gcc -ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -fno-common -o .libs/dbus-monitor dbus-monitor.o dbus-print-message.o ../dbus/.libs/libdbus-1.so -lpthread -Wl,--rpath -Wl,/opt/devel/toolchains/arm9/arm-linux/lib<br>
creating dbus-monitor<br>arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -DDBUS_LOCALEDIR=\"/opt/devel/toolchains/arm9/arm-linux/share/locale\" -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\"/opt/devel/toolchains/arm9/arm-linux/bin\" -DDBUS_MACHINE_UUID_FILE=\""/opt/devel/toolchains/arm9/arm-linux/var/lib/dbus/machine-id"\" -ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -fno-common -MT dbus-launch.o -MD -MP -MF .deps/dbus-launch.Tpo -c -o dbus-launch.o dbus-launch.c<br>
dbus-launch.c: In Funktion »kill_bus_when_session_ends«:<br>dbus-launch.c:472: error: impossible constraint in `asm'<br>dbus-launch.c:473: error: impossible constraint in `asm'<br><br><br>And now I need some help please.<br>
<br>Thanks.<br>--fritz<br><br><br>