[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: For the debian experts - trying to compile PCB



On Tue, 1 Jun 2004 21:36:13 +0200
Mario Klebsch <mario@klebsch.de> wrote:

> Hi!
> 
> Am 01.06.2004 um 18:01 schrieb Xtian Xultz:
> 
> > Hello folks!
> >
> > I am new to debian, I am using a distro called Kurumin based on Knoppix
> > that is based on Debian :D
> > I am trying to compile PCB 20040530 but it gives me a loooot of errors
> > like
> > gcc -DNDEBUG -g -O2  -I/usr/X11R6/include   -o pcb-bin  action.o 
> > actionlist.o autoplace.o autoroute.o buffer.o change.o clip.o 
> > command.o compat.o control.o copy.o create.o crosshair.o data.o 
> > dev_ps.o dev_rs274x.o dialog.o djopt.o draw.o drill.o error.o file.o 
> > fileselect.o find.o gui.o heap.o insert.o intersect.o rtree.o 
> > lgdialog.o library.o line.o log.o main.o menu.o mirror.o misc.o move.o 
> > mtspace.o mymem.o netlist.o output.o parse_l.o parse_y.o pinout.o 
> > polygon.o print.o printdialog.o printpanner.o rats.o remove.o report.o 
> > res_parse.o res_lex.o resmenu.o rotate.o rubberband.o search.o 
> > select.o selector.o set.o sizedialog.o undo.o vector.o  -lXext -lX11 
> > -lfl -lm   -L/usr/X11R6/lib -R/usr/X11R6/lib
> > gcc: unrecognized option `-R/usr/X11R6/lib'
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> -R is an option usually used on solaris. Its Linux equivalent is 
> -Wl,-rpath
> 
> Since the Linux linker is happy with -R, you also may, as an 
> alterlative, change your gcc specs file to allow -R beinig passed to 
> your linker. I have the following line in my specs file:
> 
> *link:
> %{R*} -m elf_i386 %{shared:-shared}   %{!shared:     %{!ibcs:       
> %{!static: %{rdynamic:-export-dynamic}     
> %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}}  
> %{static:-static}}}
> 
> The %{R*} does the trick. I tore it of a spec file on a solarix box. :-)
> 
> > action.o(.text+0x9a1): In function `NotifyMode':
> > /home/knoppix/pcb/pcb-20040530/src/action.c:845: undefined reference 
> > to `XtAppAddTimeOut'
> > action.o(.text+0x1d85): In function `CallActionProc':
> > /home/knoppix/pcb/pcb-20040530/src/action.c:1493: undefined reference 
> > to `XtCallActionProc'
> >
> > What can I do to avoid this error?
> 
> Add -lXt to the linkers command line. But t probably will not 
> besufficient. Pcb uses Athena widgest, so you will have to add -lXaw 
> and -lXmu, too.
> 
> Btw, It looks liek you are using a foreign configuration. Did you run 
> configure?
> 
> 73, Mario


You are completely right, and I am a completely bone head.
I did a ./configure, and it got me an error about gcc. I instaled gcc, and
was so excited that I forgot to run configure again and did a make...
Now I did a ./configure and it compiles fine.

Thanx for your patience!