Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  5 Aug 2002 04:18:05 +0200
From:      Salvo Bartolotta <bartequi@neomedia.it>
To:        Kai Haberzettl <kai@khaberz.net>
Cc:        questions@freebsd.org
Subject:   Re: XFree86-4-libraries fails to compile
Message-ID:  <1028513885.3d4de05d6d98f@webmail.neomedia.it>

next in thread | raw e-mail | index | archive | help
Kai Haberzettl wrote:

> While trying portupgrade -ar , the XFree86-4-libraries port fails to
> compile which keeps tons of other ports from being upgraded as they
> depend on this.

> I'm running 4.6-STABLE.

> This is how the compile ends - any ideas?

 LD_LIBRARY_PATH=../../exports/lib cc -o makekeys -O -pipe -ansi -pedantic 
 -Das m=__asm -Wall -Wpointer-arith -I../.. -I../../exports/include 
 -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT
 -D_THREAD_SAFE -DXUSE_MT SAFE_API -DXNO_MTSAFE_PWDAPI 
 -DMALLOC_0_RETURNS_NULL -DHAS_SNPRINTF -DLIBX11 -ansi -pedantic -Dasm=__asm 
-Wall -Wpointer-arith -I../.. -I../../exports /include -DCSRG_BASED 
-DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT - D_THREAD_SAFE 
-DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -DMALLOC_0_RETURNS_NULL -DHAS_SNPRINTF 
-DLIBX11 util/makekeys.c -L/usr/X11R6/lib -pthread -Wl,-rpath ,/usr/X11R6/lib
In file included from ../../exports/include/X11/Xos.h:159,
from util/makekeys.c:34:
/usr/include/stdlib.h:108: warning: ANSI C does not support `long long'
/usr/include/stdlib.h:112: warning: ANSI C does not support `long long'
/usr/lib/libc_r.so: undefined reference to `__sys_close'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


*** Error code 1 (ignored)
./makekeys < ../../exports/include/X11/keysymdef.h > ks_tables_h
./makekeys: not found
*** Error code 127

Stop in /usr/ports/x11/XFree86-4-libraries/work/xc/lib/X11.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4-libraries/work/xc/lib.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4-libraries/work/xc.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4-libraries/work/xc.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4-libraries.

**********************************************************************


<educated guess>
The library /usr/src/lib/libc_r has been partly modified (e.g. you cvsup'ed 
_part_ of the updates) and, as a result, inconsistencies have arisen.
</educated guess>

Solution:

1) (Safe but 'slow' bet) Cvsup again and remake the world; next, portupgrade 
again;

2) (If and only if you know exactly what you are doing) cvsup again and 
examine which files have been modified since your last cvsup operation; if and 
only if you deem it safe, go to /usr/src/lib/libc_r and issue a "make depend 
all install".

Solution 2) is much quicker but it is potentially dangerous.  You have been 
warned. ;-)

Good luck,
Salvo


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1028513885.3d4de05d6d98f>