Subject: Re: cad/pcb-current build failure on Solaris 9/sparc
To: John D. Baker <>
From: Dan McMahill <>
List: tech-pkg
Date: 04/21/2004 21:54:15
On Wed, Apr 21, 2004 at 04:11:07PM -0500, John D. Baker wrote:
> Building cad/pcb-current on Solaris 9/sparc fails as follows:
> [...]
> gcc -DNDEBUG -O -I/usr/pkg/include  -I/usr/openwin/include  -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib -o pcb-bin  action.o autoplace.o autoroute.o buffer.o change.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 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 rotate.o rubberband.o search.o select.o selector.o set.o sizedialog.o undo.o vector.o  -lXaw -lXpm -lXmu -lXt -lXext -lSM -lICE -lX11 -lxnet -lm   -L/usr/openwin/lib -R/usr/openwin/lib -R/usr/openwin/lib
> Undefined                       first referenced
>  symbol                             in file
> yywrap                              parse_l.o
> ld: fatal: Symbol referencing errors. No output written to pcb-bin
> collect2: ld returned 1 exit status
> gmake[4]: *** [pcb-bin] Error 1
> gmake[4]: Leaving directory `/usr/pkgsrc/cad/pcb-current/work/pcb-20040215/src'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory `/usr/pkgsrc/cad/pcb-current/work/pcb-20040215/src'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory `/usr/pkgsrc/cad/pcb-current/work/pcb-20040215/src'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/pkgsrc/cad/pcb-current/work/pcb-20040215'
> gmake: *** [all] Error 2
> *** Error code 2
> Stop.
> bmake: stopped in /usr/pkgsrc/cad/pcb-current
> [...]
> Not sure what it's looking for.  Maybe missing a library?

Right.  It wants flex instead of lex.  Can you try adding


to cad/pcb-current/Makefile

and see if that fixes it?