Subject: Compilation problems
To: None <current-users@netbsd.org>
From: =?ISO-8859-1?Q?Florian_St=F6hr?= <netbsd@wolfnode.de>
List: netbsd-users
Date: 02/09/2004 13:00:32
Hi,

I posted already on sgimips but didn't get a reply for days. So I post
again on current (perhaps this problem occurs also on other platforms than
sgimips?)

Any compilation of ANY package related to X11 fails on 1.6.2_RC4 on this
platform. Still 2.95.3 on sgimips. Seems to have threadlib problems (afaik
no native threads on this platform). Linking with pth-2.0.0 doesn't solve
the problem.

Here is a simple test from me:

#include <X11/Xlib.h>

int main(void)
{
        XOpenDisplay(NULL);
        return 0;
}

Compiled it and got:

root@sgi [/tmp/tt] # gcc -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 tt.c
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_cond_wait'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_cond_destroy'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_mutex_init'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_cond_init'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_thr_self'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_mutex_lock'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_cond_broadcast'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_mutex_unlock'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_mutex_destroy'
/usr/X11R6/lib/libX11.so: undefined reference to `__libc_cond_signal'
root@sgi [/tmp/tt] #

Any hints would be very helpful.

Florian