Subject: RE: Problem by Compiling X
To: 'Sascha Valckenier Kips' <merlin.germany@gmx.net>
From: Collin Baillie <Collin.Baillie@world.net>
List: port-alpha
Date: 06/28/2002 08:13:09
Sascha,

When you compile stuff with gcc, you can tell it to use specific libraries.
To do this you supply a command line argument such as "-lm" (this says, use
the maths library). -lX11 is telling gcc to use the X11 library. But it
seems your gcc cannot find it.

I know it's not much help, but it's an explanation as to what is going
wrong. Stick around and someone else here may be able to give you a better
answer such as where the libraries should be, or what to look for in the
source distribution for X11 that may be making this fail.

Cheers,

Collin

-----Original Message-----
From: Sascha Valckenier Kips [mailto:merlin.germany@gmx.net]
Sent: Friday, 28 June 2002 6:30 AM
To: port-alpha@netbsd.org
Subject: Problem by Compiling X
Importance: High




I have build new kernel and userland.
Uname: NetBSD alpha.svk.de 1.6B NetBSD 1.6B (MYALPHA-$Revision: 1.0 $)
#0: Thu Jun 27 21:17:32 CEST 2002
Now i have try to build XFree 4.x on this machine.

After any time compiling, i have this become:

---------------------
Full build of Release 6.6 of the X Window System complete.

making all in /usr/xsrc/local/programs...
making all in /usr/xsrc/local/programs/x11-ssh-askpass...
gcc -O2 -ansi -Dasm=__asm     -I../../../xfree/xc
-I../../../xfree/xc/exports/include   -DCSRG_BASED  -DFUNCPROTO=15
-DNARROWPROTO      -c x11-ssh-askpass.c
rm -f ssh-askpass
gcc -o ssh-askpass -O2 -ansi -Dasm=__asm
-L../../../xfree/xc/exports/lib drawing.o  dynlist.o  resources.o
x11-ssh-askpass.o -lXt -lX11 -lSM -lICE -L/usr/X11R6/lib
-Wl,-rpath,/usr/X11R6/lib -Wl,-rpath-link,../../../xfree/xc/exports/lib
ld: cannot find -lX11
*** Error code 1

Stop.
make: stopped in /usr/xsrc/local/programs/x11-ssh-askpass
making all in /usr/xsrc/local/programs/xftlsfonts...
rm -f xftlsfonts
gcc -o xftlsfonts -O2 -ansi -Dasm=__asm
-L../../../xfree/xc/exports/lib xftlsfonts.o -lXft -lXext -lX11
-L/usr/X11R6/lib     -Wl,-rpath,/usr/X11R6/lib
-Wl,-rpath-link,../../../xfree/xc/exports/lib
ld: cannot find -lX11
*** Error code 1

Stop.
make: stopped in /usr/xsrc/local/programs/xftlsfonts
*** 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
---------------------

The ld cannot find -lX11, i think "-l" is a option an X11 is a file,
directory or type of linking.

Can anybody help me to correct this problem ?

I will use the Xfree 4 for a standart SVGA Card. I have not a tga card.

Thanks

Sascha