Hello, I believe Tomas is right saying that there are some symbols missing. These funcions appear to be part of gcc's initialization/finalization equivalent for shared objects (a quick search told me this). I once had a similar issue with a symbol called `__dso_handle`, the fix for it was to declare the symbol (as there was apparantly noone using it, but a linker expecting it).
If I were you, I would try to declare these to functions; but I can give you no garanties that it will help you in any way: Procedure _init; cdecl; public name '_init'; Begin End; Procedure _fini; cdecl; public name '_fini'; Begin End; Hope it helps. BTW: Is this behaviour the same with gcc < version 4.6 insalled? On 10/26/2012 12:29 PM, Mark Morgan Lloyd wrote: > Over the last few days I've brought my first Debian "Wheezy" > (currently AKA "testing") system up and find I can no longer compile > gdbint. This prevents build completing on both 2.6.0 and trunk, even > with NOGDB=1, fiddling with ./Makefile.fpc and ./packages/Makefile.fpc > to remove ide and gdbint allows the build to complete. > > If gdbint is only used by the ide, shouldn't it be excluded if NOGDB > is defined or if ide is removed at the top level? > > I'm reluctant to bug-report the build failure since at present I'm > testing on SPARC/Linux, and the build failure (as distinct from the > dependency) could be platform-specific. For the record the failure > point is as below with 2.6.0: > > .. > make -C gdbint smart > make[3]: Entering directory > `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint' > make all LINKSMART=1 CREATESMART=1 > make[4]: Entering directory > `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint' > /bin/mkdir -p units/sparc-linux > /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/compiler/ppcsparc -XX -CX -Ur > -Xs -O2 -n > -Fu/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux > -Fl/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/libgdb/linux/sparc > -Fo/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/libgdb/linux/sparc > -Fi/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/libgdb/linux/sparc -Fisrc > -FE. -FUunits/sparc-linux -Fl/usr/lib/gcc/sparc-linux-gnu/4.6 > -Flinclude -Fl/etc/ld.so.conf.d/*.conf -O- -gl -vt -dsparc -dRELEASE > src/gdbver.pp > Using assembler: /usr/bin/as > /usr/bin/ld: warning: ./link.res contains output sections; did you > forget -T? > /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux/cprt0.o: In > function `_start': > (.text+0x58): undefined reference to `_init' > /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux/cprt0.o: In > function `_start': > (.text+0x5c): undefined reference to `_fini' > /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux/cprt0.o: In > function `_start': > (.text+0x64): undefined reference to `_init' > /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux/cprt0.o: In > function `_start': > (.text+0x68): undefined reference to `_fini' > gdbver.pp(95,33) Error: Error while linking > gdbver.pp(95,33) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > make[4]: *** [gdbver] Error 1 > make[4]: Leaving directory > `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint' > make[3]: *** [fpc_smart] Error 2 > make[2]: *** [gdbint_smart] Error 2 > make[3]: Leaving directory > `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint' > > There is no error on older Debian systems. I believe that I've got all > prerequisites installed, noting that a build without ide and gdbint is > OK. > -- Ewald Events don't necessarily happen in chronological order; yet somehow they do persist to happen. Sometime. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel