Mailing List Archive

Compilation Error w/ 90, 91 and 44, not 42
Hi, Im running Mac OS X 10.2.8 on a 500mhz G4. I am trying to compile
gaim as per instructions at
http://alphamonkey.org/view.php?type=notes&id=309. When i get to the
"make" step, with libgcrypt-1.1.91, i get this error:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/sw/include -g -O2 -Wall -MT
ath-pthread-compat.lo -MD -MP -MF .deps/ath-pthread-compat.Tpo -c
ath-pthread-compat.c -fno-common -DPIC -o .libs/ath-pthread-compat.lo
In file included from ath-pthread-compat.c:25:
ath.h:74: error: parse error before "socklen_t"
ath.h:75: error: parse error before "socklen_t"
ath.h:94: error: parse error before "socklen_t"
ath.h:95: error: parse error before "socklen_t"
ath-pthread-compat.c:29: warning: ignoring #pragma weak pthread_create
ath-pthread-compat.c:30: warning: ignoring #pragma weak
pthread_mutex_init
ath-pthread-compat.c:31: warning: ignoring #pragma weak
pthread_mutex_destroy
ath-pthread-compat.c:32: warning: ignoring #pragma weak
pthread_mutex_lock
ath-pthread-compat.c:33: warning: ignoring #pragma weak
pthread_mutex_unlock
make[2]: *** [ath-pthread-compat.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I get the same error when trying to compile version 1.1.90 and 1.1.44
as well. However it works with 1.1.42. Is there a new dependency im
missing, other than libgpg-error? Any help would be much obliged.
Thank you,
Dan
Re: Compilation Error w/ 90, 91 and 44, not 42 [ In reply to ]
On Wed, Jan 21, 2004 at 05:59:50PM -0500, Danny Schaffer wrote:

> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/sw/include -g -O2 -Wall -MT
> ath-pthread-compat.lo -MD -MP -MF .deps/ath-pthread-compat.Tpo -c
> ath-pthread-compat.c -fno-common -DPIC -o .libs/ath-pthread-compat.lo
> In file included from ath-pthread-compat.c:25:
> ath.h:74: error: parse error before "socklen_t"

This is strange. There was such a build failure before, which was
fixed by including `<sys/sockets.h>'. I don't have access to a Mac OS
X system, could you please try to find out what header file declares
`socklen_t' on your system?

Anyway, the code should work properly without a system-defined
`socklen_t' - after including config.h (where socklen_t should be
defined to an `int' in case the type could not be found in the
system's include files) in ath.h it should work now.

Thanks.

--
((gpg-key-id . "6F984199")
(email . "moritz@duesseldorf.ccc.de")
(webpage . "http://duesseldorf.ccc.de/~moritz/"))