[aspectc-user] Building from source
Eric Schaefer
eric at gixgax.de
Fri Mar 10 00:49:36 CET 2006
Hello List!
I am trying to build ac-1.0pre2. First strange thing: I had to install
the binary ac++ and ag++ to be able to compile at all, since ag++ is
needed to compile Puma and Puma is needed to compile ac++ and ag++.
Well, with ac++ and ag++ installed I was able to compile Puma, but when
trying to build ac++ I get:
> Linking bin/linux-release/ac++.
> /usr/lib/libxml2.a(nanohttp.o): In function `xmlNanoHTTPConnectHost':
> : warning: Using 'getaddrinfo' in statically linked applications
> requires at runtime the shared libraries from the glibc version used
> for linking
> /usr/lib/libxml2.a(nanohttp.o): In function `xmlNanoHTTPConnectHost':
> : warning: Using 'gethostbyname' in statically linked applications
> requires at runtime the shared libraries from the glibc version used
> for linking
> /usr/lib/libxml2.a(threads.o): In function `xmlRMutexLock':
> : undefined reference to `pthread_cond_wait'
> collect2: ld returned 1 exit status
> make: *** [bin/linux-release/ac++] Error 1
Seems like ld doesn't know where pthread_cond_wait() comes from, so I
tried "LDFLAGS=-lpthread make", but ld doesn't like it either.
The machine is running Ubuntu Linux 5.10.
$ uname -a
Linux zeus 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686 GNU/Linux
$ ls -lF /usr/lib/libxml2*
-rw-r--r-- 1 root root 1379886 Sep 6 2005 /usr/lib/libxml2.a
-rw-r--r-- 1 root root 799 Sep 6 2005 /usr/lib/libxml2.la
lrwxrwxrwx 1 root root 17 Mar 9 19:32 /usr/lib/libxml2.so ->
libxml2.so.2.6.21
lrwxrwxrwx 1 root root 17 Dec 29 19:49 /usr/lib/libxml2.so.2 ->
libxml2.so.2.6.21
-rw-r--r-- 1 root root 1093792 Sep 6 2005 /usr/lib/libxml2.so.2.6.21
What am I doing wrong?
Regards,
Eric
More information about the aspectc-user
mailing list