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

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



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
--
Mario Klebsch mario@klebsch.de
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB 1483 30CE 9FB2 A047 9CE0
Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5 8B98 9464 53FF 9382 F518