Current-Users archive

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

Re: Build error in librump



On Fri, Jan 02, 2009 at 12:28:05PM +0100, Andreas Gustafsson wrote:
> Antti Kantee wrote:
> > > /build/netbsd-local/dest/amd64/usr/lib/librump.so: undefined reference to 
> > > `kobj_sym_lookup'
> > > collect2: ld returned 1 exit status
> > 
> > Had to scratch my head for a while with that one.  But then I realized you
> > probably were doing update builds instead of clean builds.  cvs up,
> > cross fingers and try again.
> 
> I'm seeing the same error in a clean release build.  Sources from
> "cvs checkout -D 2009.01.01.22.17.55", arch i386.
> -- 
> Andreas Gustafsson, gson%gson.org@localhost
>
Hm, with source from Jan 2 12:57 MET _AND_ cleaning out
.../amd64/obj/lib/librump/* this problem is gone.
But there's an other problem now compiling librump/kobj_machdep.o
in src/compat/lib/librump:

    compile  librump/kobj_machdep.o
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c: In 
function 'kobj_reloc':
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:97: 
error: 'R_X86_64_PC32' undeclared (first use in this function)
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:97: 
error: (Each undeclared identifier is reported only once
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:97: 
error: for each function it appears in.)
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:98: 
error: 'R_X86_64_32' undeclared (first use in this function)
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:99: 
error: 'R_X86_64_32S' undeclared (first use in this function)
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:109:
 error: 'R_X86_64_NONE' undeclared (first use in this function)
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:112:
 error: 'R_X86_64_64' undeclared (first use in this function)
cc1: warnings being treated as errors
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:125:
 warning: cast from pointer to integer of different size
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:139:
 error: 'R_X86_64_GLOB_DAT' undeclared (first use in this function)
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:140:
 error: 'R_X86_64_JUMP_SLOT' undeclared (first use in this function)
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c:147:
 error: 'R_X86_64_RELATIVE' undeclared (first use in this function)

*** Failed target:  kobj_machdep.o
*** Failed command: /u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -O2 -pipe 
-Werror -m32 -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -m32 
-D_RUMPKERNEL -D_KERNEL -DMULTIPROCESSOR -D_MODULE -DMODULAR -DMAXUSERS=32 
-DDIAGNOSTIC -I/u/NetBSD/src/lib/librump -I. 
-I/u/NetBSD/src/lib/librump/../../sys/rump/../../common/include 
-I/u/NetBSD/src/lib/librump/../../sys/rump/../arch 
-I/u/NetBSD/src/lib/librump/../../sys/rump/include 
-I/u/NetBSD/src/lib/librump/../../sys/rump/librump/rumpkern/opt -nostdinc 
-I/u/NetBSD/src/lib/librump/../../sys/rump/.. 
-I/u/NetBSD/src/lib/librump/../../sys/rump/librump/rumpkern 
-I/u/NetBSD/src/lib/librump/../../sys/rump/librump/rumpnet 
-I/u/NetBSD/src/lib/librump/../../sys/rump/librump/rumpvfs -c 
/u/NetBSD/src/lib/librump/../../sys/rump/../arch/amd64/amd64/kobj_machdep.c -o 
kobj_machdep.o
*** Error code 1

Stop.
nbmake: stopped in /u/NetBSD/src/compat/lib/librump

Kurt


Home | Main Index | Thread Index | Old Index