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&nbsp; 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&#39;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&#39;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&#39;:<br>dbus-sysdeps-unix.c:792: error: `AI_ADDRCONFIG&#39; 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&#39;:<br>
dbus-sysdeps-unix.c:895: error: `AI_ADDRCONFIG&#39; 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..&nbsp; -I/usr/include -DDBUS_LOCALEDIR=\&quot;/opt/devel/toolchains/arm9/arm-linux/share/locale\&quot; -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\&quot;/opt/devel/toolchains/arm9/arm-linux/bin\&quot; -DDBUS_MACHINE_UUID_FILE=\&quot;&quot;/opt/devel/toolchains/arm9/arm-linux/var/lib/dbus/machine-id&quot;\&quot;&nbsp;&nbsp;&nbsp; -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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; von /usr/include/signal.h:333,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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&#39; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; von /usr/include/bits/errno.h:25,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; von /usr/include/errno.h:36,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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&#39; 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&#39;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&nbsp; ../dbus/.libs/libdbus-1.so -lpthread&nbsp; -Wl,--rpath -Wl,/opt/devel/toolchains/arm9/arm-linux/lib<br>
creating dbus-monitor<br>arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I..&nbsp; -I/usr/include -DDBUS_LOCALEDIR=\&quot;/opt/devel/toolchains/arm9/arm-linux/share/locale\&quot; -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\&quot;/opt/devel/toolchains/arm9/arm-linux/bin\&quot; -DDBUS_MACHINE_UUID_FILE=\&quot;&quot;/opt/devel/toolchains/arm9/arm-linux/var/lib/dbus/machine-id&quot;\&quot;&nbsp;&nbsp;&nbsp; -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&#39;<br>dbus-launch.c:473: error: impossible constraint in `asm&#39;<br><br><br>And now I need some help please.<br>
<br>Thanks.<br>--fritz<br><br><br>