Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2003 12:44:11 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        Aaron Dalton <aaron@finch.st>, freebsd-questions@freebsd.org
Subject:   Re: /usr/libexec/elf/ld: cannot find -lXfont
Message-ID:  <200308311244.11670.kstewart@owt.com>
In-Reply-To: <200308310816.29305.aaron@finch.st>
References:  <200308310816.29305.aaron@finch.st>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 31 August 2003 07:16 am, Aaron Dalton wrote:
> Please excuse my ignorance.  I cvsup'd my ports tree and used
> portupgrade to upgrade everything but I can't get
> XFree86-FontServer-4.3.0 or Clients to install due to the following
> error after making:
>
> making all in programs/bdftopcf...
> rm -f bdftopcf
> cc -o bdftopcf -O -pipe -ansi -Dasm=__asm -Wall -Wpointer-arith
> -Wundef -L/usr/ports/x11/XFree86-4-clients/work/xc/exports/lib  
> bdftopcf.o -lXfont -lfntstubs  -L/usr/X11R6/lib  -lz -lm
> -Wl,-rpath,/usr/X11R6/lib
> /usr/libexec/elf/ld: cannot find -lXfont
> *** Error code 1
>
> and for the FontServer:
>
> ar clq libdifs.a main.o dispatch.o extensions.o globals.o events.o
> tables.o 	fontinfo.o charinfo.o swapreq.o swaprep.o resource.o
> 	fonts.o difsutils.o cache.o initfonts.o atom.o
> ranlib libdifs.a
> LD_LIBRARY_PATH=/usr/ports/x11-servers/XFree86-4-FontServer/work/xc/e
>xports/lib cc -o xfs -O -pipe -ansi -Dasm=__asm -Wall -Wpointer-arith
> -Wundef
> -L/usr/ports/x11-servers/XFree86-4-FontServer/work/xc/exports/lib
> -L/usr/X11R6/lib  difs/libdifs.a difs/libdifs.a os/libos.a
> -L/usr/X11R6/lib
> -L/usr/ports/x11-servers/XFree86-4-FontServer/work/xc/exports/lib
> -L/usr/X11R6/lib -lXfont -lfntstubs   -lm -lz
> -Wl,-rpath,/usr/X11R6/lib
> /usr/libexec/elf/ld: cannot find -lXfont
> *** Error code 1
>
> Where is this library "Xfont" supposed to be?  Thank you so much for
> your time.

It was installed by -libraries and deleted when you updated -server. It 
is no longer a part of -server and you have to reinstall -libraries 
again. You shouldn't have any problem like this in the future.

Kent

>
> Cheers!

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



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