l4-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems compiling from CVS


From: Apurva Mehta
Subject: Problems compiling from CVS
Date: Sun, 19 Oct 2003 20:44:00 +0530
User-agent: Mutt/1.4.1i

Hi,
I got the latest l4-hurd sources from CVS but I am not able to build
them.

First up, when I do autoreconf -f -i -s, I get the following error :
"configure.ac:29: `automake requires `AM_CONFIG_HEADER', not
`AC_CONFIG_HEADER'"

Then autoreconf then exits with status 1 after some time.

After modifying the file as required, autoreconf and then ./configure
work fine. 

Second, when I do a make, I get the following error :

----
make[2]: Entering directory `/home/apurva/projects/hurd/hurd-l4/libhurd-cap'
source='cap.c' object='cap.o' libtool=no \
depfile='.deps/cap.Po' tmpdepfile='.deps/cap.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -g -O2 -c `test -f 'cap.c' || e
cho './'`cap.c
cap.c: In function `hurd_cap_init':
cap.c:79: warning: passing arg 3 of `hurd_slab_create' from incompatible pointer
 type
cap.c:79: warning: passing arg 4 of `hurd_slab_create' from incompatible pointer
 type
cap.c:79: too few arguments to function `hurd_slab_create'
make[2]: *** [cap.o] Error 1
make[2]: Leaving directory `/home/apurva/projects/hurd/hurd-l4/libhurd-cap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/apurva/projects/hurd/hurd-l4'
make: *** [all] Error 2
----

After modifying the file to get it to compile, the compilation
proceeds until:

----
malloc-wrap.o(.text+0x2dd): In function `sYSMALLOc':
/home/apurva/projects/hurd/hurd-l4/physmem/malloc.c:3283: undefined reference to
 `__errno_location'
malloc-wrap.o(.text+0x496): In function `malloc':
/home/apurva/projects/hurd/hurd-l4/physmem/malloc.c:3397: undefined reference to
 `__errno_location'
malloc-wrap.o(.text+0xb19): In function `realloc':
/home/apurva/projects/hurd/hurd-l4/physmem/malloc.c:4026: undefined reference to
 `__errno_location'
malloc-wrap.o(.text+0xd96): In function `memalign':
/home/apurva/projects/hurd/hurd-l4/physmem/malloc.c:4243: undefined reference to
 `__errno_location'
collect2: ld returned 1 exit status
make[2]: *** [physmem] Error 1
make[2]: Leaving directory `/home/apurva/projects/hurd/hurd-l4/physmem'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/apurva/projects/hurd/hurd-l4'
make: *** [all] Error 2
----

I feel I am doing something wrong with the l4 libraries though. I have
compiled and installed the l4::Pistachio kernel. I do have an l4
subdirectory in /usr/local/include. I think that these have been put by
the pistachio installation.

When I do a `make install` in the libl4 subdirectory of the l4-hurd,
it installs the files into /l4. How do I make the build process use
these headers?

Regards,

        - Apurva




reply via email to

[Prev in Thread] Current Thread [Next in Thread]