Subject: Re: usr/src/xsrc/make build fails
To: Jakob Strebel <mail@teamstrebel.ch>
From: Frederick Bruckman <fredb@immanent.net>
List: current-users
Date: 11/13/2003 10:02:10
On Thu, 13 Nov 2003, Jakob Strebel wrote:

> my apology to post this again, I thought being more precise on the subject
> could help.
>
> I try to build a new X in usr/src/xsrc/make
> the 1.6.1 ZE (GENERIC) i386

What does that mean, exactly? "uname -sr" on current of Nov. 8 reports
"NetBSD 1.6ZE". There is no such thing as "1.6.1 ZE".

> Initially I did it on "current" form 8 Nov. It failed like below. In the
> meantime I deleted all under /usr/xsrc and did a cvs checkout and a cvs
> update (today)
> The build stops again.

Based on your apparent confusion, I bet you have a NetBSD 1.6.1
userland with 1.6ZE kernel. "xsrc" triggers the build of "xsystrace"
based on the result of "uname", which is based on the kernel version,
but the compiler and headers are still 1.6.1, and "xsystrace" won't
build on 1.6.1.

The root problem is something of a known problem. It's been suggested,
at times, to let "uname"'s result be compiled in, or come from "libc".

If my guess is correct, you seem to have two ways to go... 1) Take
your kernel back to 1.6.1_RC1; or 2) take your kernel and userland up
to current (which is already 1.6ZF).

> cd /usr/xsrc
> make build
>
> <cut>
>
> gcc -o xsystrace -O2 -ansi
> -Dasm=__asm     -L../../../xfree/xc/exports/lib   callbacks.o interface.o
> main.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11
> -L/usr/X11R6/lib     -Wl,-rpath,/usr/X11R6/lib
> -Wl,-rpath-link,../../../xfree/xc/exports/lib
> ../../../xfree/xc/exports/lib/libXext.a(extutil.o): In function
> `XextAddDisplay':
> extutil.o(.text+0x234): undefined reference to `_XLockMutex_fn'
> extutil.o(.text+0x241): undefined reference to `_Xglobal_lock'
> extutil.o(.text+0x25a): undefined reference to `_XUnlockMutex_fn'
> extutil.o(.text+0x267): undefined reference to `_Xglobal_lock'
> ../../../xfree/xc/exports/lib/libXext.a(extutil.o): In function
> `XextRemoveDisplay':
> extutil.o(.text+0x288): undefined reference to `_XLockMutex_fn'
> extutil.o(.text+0x295): undefined reference to `_Xglobal_lock'
> extutil.o(.text+0x2b6): undefined reference to `_XUnlockMutex_fn'
> extutil.o(.text+0x2c3): undefined reference to `_Xglobal_lock'
> extutil.o(.text+0x2f0): undefined reference to `_XUnlockMutex_fn'
> extutil.o(.text+0x2fd): undefined reference to `_Xglobal_lock'
> ../../../xfree/xc/exports/lib/libXext.a(extutil.o): In function
> `XextFindDisplay':
> extutil.o(.text+0x33d): undefined reference to `_XLockMutex_fn'
> extutil.o(.text+0x34a): undefined reference to `_Xglobal_lock'
> extutil.o(.text+0x365): undefined reference to `_XUnlockMutex_fn'
> extutil.o(.text+0x372): undefined reference to `_Xglobal_lock'
> extutil.o(.text+0x383): undefined reference to `_XUnlockMutex_fn'
> extutil.o(.text+0x390): undefined reference to `_Xglobal_lock'
> *** Error code 1
>
> Stop.
> make: stopped in /usr/xsrc/local/programs/xsystrace
> *** Error code 1
>
> Stop.
> make: stopped in /usr/xsrc/local/programs
> *** Error code 1
>
> Stop.
> make: stopped in /usr/xsrc/local
> *** Error code 1
>
> Stop.
> make: stopped in /usr/xsrc
> *** Error code 1
>
> Stop.
> make: stopped in /usr/xsrc
>
>


Frederick