gcc -std=gnu99 -DNDEBUG -g -O2 -Wall -Wdeclaration-after-statement -rdynamic -o pcb action.o autoplace.o autoroute.o buffer.o change.o clip.o command.o compat.o copy.o create.o crosshair.o data.o djopt.o draw.o drill.o edif.o error.o file.o find.o flags.o fontmode.o free_atexit.o heap.o insert.o intersect.o line.o lrealpath.o main.o mirror.o misc.o move.o mtspace.o mymem.o netlist.o parse_l.o parse_y.o pcb-printf.o polygon.o polygon1.o puller.o print.o rats.o remove.o report.o res_parse.o res_lex.o rotate.o rtree.o rubberband.o search.o select.o set.o strflags.o thermal.o undo.o vector.o vendor.o hid/common/actions.o hid/common/flags.o hid/common/hidinit.o hid/common/hidnogui.o hid/common/extents.o hid/common/draw_helpers.o hid/common/hid_resource.o toporouter.o dbus-pcbmain.o dbus.o hid/common/hidgl.o hid/common/trackball.o libgtk.a liblpr.a libbom.a libgcode.a libgerber.a libnelma.a libpng.a libps.a ../gts/libgts.a -ldl -lm -ldbus-1 -lXinerama -lXrender -lglib-2.0 -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype -lgd -ljpeg -lz -lm -lpng12 -lfreetype -lfontconfig -lfreetype -lfontconfig -lXpm -lX11 -L/usr/local/lib -ltiff -lgd -Wl,--export-dynamic -pthread -L/usr/local/lib -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype -lGLU -lGL
/usr/local/lib/libgtkglext-x11-1.0.so: undefined reference to `GTK_WIDGET_REALIZED'
/usr/local/lib/libgtkglext-x11-1.0.so: undefined reference to `GTK_WIDGET_TOPLEVEL'
/usr/local/lib/libgtkglext-x11-1.0.so: undefined reference to `GTK_WIDGET_NO_WINDOW'
collect2: error: ld returned 1 exit status
make[4]: *** [pcb] Error 1
make[4]: Leaving directory `/home/liz/pcb/pcb-20140316/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/liz/pcb/pcb-20140316/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/liz/pcb/pcb-20140316/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/liz/pcb/pcb-20140316'
make: *** [all] Error 2
Thanks for reporting, @James. Could you give us the configure options you build with? Else we can only guess until we get the same gcc command. For myself I build with this:
./autogen.sh && ./configure --disable-nls --disable-doc && make