errors compiling dbus-1.2.24 on minix3

Lencsés Lóránt r0ller at freemail.hu
Tue Sep 28 07:57:23 PDT 2010


@Thiago:

I set the mail format to plain text, hopefully it preserves the format I put the text in.

Unfortunately, putting time.h at the top of the source didn't help which is rather strange since it contains the struct needed indeed. However, copying the structure declaration into the code helped -sorry for the hack:(

Now there're quite a many other problems and I don't expect that any of you solve it just for me. I'll see how much time I have and may put some effort in it. Nevertheless, I post it if you're interested. Probably, it's better for me to wait till minix3.2.0 which is planned to support shared libraries.

Thanks for your help anyway!

r0ller

dbus-sysdeps-unix.c:1: warning: -ffunction-sections not supported for this target
dbus-sysdeps-unix.c:1: warning: -fdata-sections not supported for this target
dbus-sysdeps-unix.c: In function '_dbus_connect_tcp_socket':
dbus-sysdeps-unix.c:762: error: storage size of 'hints' isn't known
dbus-sysdeps-unix.c:794: warning: implicit declaration of function 'getaddrinfo'
dbus-sysdeps-unix.c:794: warning: nested extern declaration of 'getaddrinfo'
dbus-sysdeps-unix.c:799: warning: implicit declaration of function 'gai_strerror'
dbus-sysdeps-unix.c:799: warning: nested extern declaration of 'gai_strerror'
dbus-sysdeps-unix.c:807: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c:809: warning: implicit declaration of function 'freeaddrinfo'
dbus-sysdeps-unix.c:809: warning: nested extern declaration of 'freeaddrinfo'
dbus-sysdeps-unix.c:815: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c:815: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c:819: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c: In function '_dbus_listen_tcp_socket':
dbus-sysdeps-unix.c:871: error: storage size of 'hints' isn't known
dbus-sysdeps-unix.c:895: error: 'AI_PASSIVE' undeclared (first use in this function)
dbus-sysdeps-unix.c:895: error: (Each undeclared identifier is reported only once
dbus-sysdeps-unix.c:895: error: for each function it appears in.)
dbus-sysdeps-unix.c:911: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c:918: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c:918: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c:926: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c:972: warning: implicit declaration of function 'getnameinfo'
dbus-sysdeps-unix.c:972: warning: nested extern declaration of 'getnameinfo'
dbus-sysdeps-unix.c:974: error: 'NI_NUMERICHOST' undeclared (first use in this function)
dbus-sysdeps-unix.c:1002: error: dereferencing pointer to incomplete type
dbus-sysdeps-unix.c: In function '_dbus_read_credentials_socket':
dbus-sysdeps-unix.c:1230: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
/usr/pkg/gcc44/lib/gcc/i686-pc-minix/4.4.3/include-fixed/sys/socket.h:133: note: expected 'socklen_t *' but argument is of type 'int *'
dbus-sysdeps-unix.c: In function '_dbus_sleep_milliseconds':
dbus-sysdeps-unix.c:2519: error: storage size of 'req' isn't known
dbus-sysdeps-unix.c:2520: error: storage size of 'rem' isn't known
dbus-sysdeps-unix.c:2527: warning: implicit declaration of function 'nanosleep'
dbus-sysdeps-unix.c:2527: warning: nested extern declaration of 'nanosleep'
dbus-sysdeps-unix.c: In function '_dbus_printf_string_upper_bound':
dbus-sysdeps-unix.c:2839: warning: implicit declaration of function 'vsnprintf'
dbus-sysdeps-unix.c: In function '_read_subprocess_line_argv':
dbus-sysdeps-unix.c:2924: warning: implicit declaration of function 'sigemptyset'
dbus-sysdeps-unix.c:2924: warning: nested extern declaration of 'sigemptyset'
dbus-sysdeps-unix.c:2925: warning: implicit declaration of function 'sigaddset'
dbus-sysdeps-unix.c:2925: warning: nested extern declaration of 'sigaddset'
dbus-sysdeps-unix.c:2926: warning: implicit declaration of function 'sigprocmask'
dbus-sysdeps-unix.c:2926: warning: nested extern declaration of 'sigprocmask'
dbus-sysdeps-unix.c:2926: error: 'SIG_BLOCK' undeclared (first use in this function)
dbus-sysdeps-unix.c:2999: error: 'SIG_SETMASK' undeclared (first use in this function)
gmake[3]: *** [dbus-sysdeps-unix.lo] Error 1
gmake[2]: *** [all] Error 2
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2

Thiago Macieira <thiago at kde.org> írta:
>Em Segunda-feira 27 Setembro 2010, `as 17:30:17, Lencsés Lóránt escreveu:
>> @Thiago: Thanks again! I got your point now -what you really mean by
>> &#39;broken&#39;. Minix3 does not support shared libraries currently and
>> neither does its gcc port. So I fiddled a bit with the configure script to
>> get rid of passing -fPIC to the compiler and now I get after issuing
>> gmake: ...dbus-sysdeps-pthread.c: In function
>> &#39;_dbus_pthread_condvar_wait_timeout&#39;:dbus-sysdeps-pthread.c:262:
>> error: storage size of &#39;end_time&#39; isn&#39;t knowngmake[3]: ***
>> [dbus-sysdeps-pthread.lo] Error 1... I didn&#39;t really want to dig in
>> the C code itself. Can you think of any remedy to this? Regards,r0ller
>
>Please get a decent mail program. I&#39;m not going to reply anymore to garbled 
>messages like the above. I&#39;m talking about the text part of your email, 
>completely ignoring the HTML part.
>
>The cleaned-up error was:
>dbus-sysdeps-pthread.c:262: error: storage size of "end_time" isn&#39;t known
>
>That&#39;s:
>  struct timespec end_time;
>
>Which indicates that "timespec" was only forward-declared. It should come from 
>time.h, but that file only includes sys/time.h. Can you add #include <time.h> 
>to the top of the file and check if this works?
>
>-- 
>Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
>Qt Developer Days 2010  -  Munich Oct 11-13  -  San Francisco Nov 1-3
>For more information and to register: http://qt.nokia.com/qtdevdays2010
>Em Segunda-feira 27 Setembro 2010, `as 17:30:17, Lencsés Lóránt escreveu:
>> @Thiago: Thanks again! I got your point now -what you really mean by
>> &#39;broken&#39;. Minix3 does not support shared libraries currently and
>> neither does its gcc port. So I fiddled a bit with the configure script to
>> get rid of passing -fPIC to the compiler and now I get after issuing
>> gmake: ...dbus-sysdeps-pthread.c: In function
>> &#39;_dbus_pthread_condvar_wait_timeout&#39;:dbus-sysdeps-pthread.c:262:
>> error: storage size of &#39;end_time&#39; isn&#39;t knowngmake[3]: ***
>> [dbus-sysdeps-pthread.lo] Error 1... I didn&#39;t really want to dig in
>> the C code itself. Can you think of any remedy to this? Regards,r0ller
>
>Please get a decent mail program. I&#39;m not going to reply anymore to garbled 
>messages like the above. I&#39;m talking about the text part of your email, 
>completely ignoring the HTML part.
>
>The cleaned-up error was:
>dbus-sysdeps-pthread.c:262: error: storage size of "end_time" isn&#39;t known
>
>That&#39;s:
>  struct timespec end_time;
>
>Which indicates that "timespec" was only forward-declared. It should come from 
>time.h, but that file only includes sys/time.h. Can you add #include <time.h> 
>to the top of the file and check if this works?
>
>-- 
>Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
>Qt Developer Days 2010  -  Munich Oct 11-13  -  San Francisco Nov 1-3
>For more information and to register: http://qt.nokia.com/qtdevdays2010
>_______________________________________________
>dbus mailing list
>dbus at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/dbus
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100928/e4214e70/attachment-0001.htm>


More information about the dbus mailing list