Subject: Re: meta-pkgs/xorg on Sparc Solaris
To: None <pkgsrc-users@NetBSD.org>
From: Raymond Meyer <raymond.meyer@rambler.ru>
List: pkgsrc-users
Date: 07/15/2006 02:37:09
On Thu, 13 Jul 2006 00:09:19 +0200
Joerg Sonnenberger <joerg@britannica.bec.de> wrote:

> On Wed, Jul 12, 2006 at 11:03:25PM +0100, Raymond Meyer wrote:
> > Hi, I'm building xorg-server and I encouter the following errors:
> 
> [I'm subscriped, no need to CC me :-) ]
> 
> > rm -f libXfont.so.1.5~
> > (cd .; LD_RUN_PATH=/opt/pkg/xorg/lib cc -o ./libXfont.so.1.5~ -G  -z text
> > -L/opt/pkg/lib -L/opt/pkg/xorg/lib -Wl,-R/opt/pkg/lib
> > -Wl,-R/opt/pkg/xorg/lib  -h libXfont.so.1.5 bitmap/?*.o fontfile/?*.o fc/?
> > *.o fontcache/?*.o   Type1/?*.o  FreeType/?*.o   util/?*.o
> > -L/opt/pkg.obj/x11/xorg-server/work.e450/xc/exports/lib
> > -L/opt/pkg.obj/x11/xorg-server/work.e450/.buildlink/lib
> > -Wl,-R /opt/pkg.obj/x11/xorg-server/work.e450/.buildlink/lib -lfreetype -lz
> > -lsocket -lm -lc) ld: elf error:
> > file /opt/pkg.obj/x11/xorg-server/work.e450/.buildlink/lib: elf_begin: I/O
> > error: region read: Is a directory ld: fatal: File processing errors. No
> > output written to ./libXfont.so.1.5~ *** Error code 1
> > 
> > The problem here is the following argument passed to cc:
> > 
> > -Wl,-R /opt/pkg.obj/x11/xorg-server/work.e450/.buildlink/lib
> > 
> > there is a space following -R which breaks things
> 
> Does the attached patch make a difference? You need to regenerate the
> Makefile afterwards.
> 
> Joerg
> 

Somethign is not right with that patch:

cc -o libfreetype.so -G  -z text -L/opt/pkg/lib -L/opt/pkg/xorg/lib -Wl,-R/opt/p
kg/lib -Wl,-R/opt/pkg/xorg/lib  -xnolib   xttcap.o ftfuncs.o ftenc.o fttools.o  
ftmodule.o -L/opt/pkg.obj/x11/xorg-server/work.ultra10/.buildlink/lib PkgRpathFl
ags/opt/pkg.obj/x11/xorg-server/work.ultra10/.buildlink/lib -lfreetype 
ld: fatal: file PkgRpathFlags/opt/pkg.obj/x11/xorg-server/work.ultra10/.buildlin
k/lib: open failed: No such file or directory
ld: fatal: File processing errors. No output written to libfreetype.so
*** Error code 1