[Lazarus] Can't compile fpc 2.5 with ubuntu lucid lynx

Vincent Snijders vsnijders at vodafonevast.nl
Sun May 9 07:57:37 CEST 2010


Fedorax schreef:
> Hello,
> 
> When i want compile fpc 2.5.x or 2.4.x sources with the last version of 
> ubuntu i got this errors:
> ------------------------
> /usr/lib/libgdb.a(dwarf2read.o): In function `dwarf2_read_section':
> (.text+0x2305): undefined reference to `inflateInit_'
> /usr/lib/libgdb.a(dwarf2read.o): In function `dwarf2_read_section':
> (.text+0x2347): undefined reference to `inflate'
> /usr/lib/libgdb.a(dwarf2read.o): In function `dwarf2_read_section':
> (.text+0x2358): undefined reference to `inflateReset'
> /usr/lib/libgdb.a(dwarf2read.o): In function `dwarf2_read_section':
> (.text+0x236d): undefined reference to `inflateEnd'
> /usr/lib/libbfd.a(compress.o): In function 
> `bfd_uncompress_section_contents':
> /build/buildd/binutils-2.20.1/builddir-single/bfd/../../bfd/compress.c:96: 
> undefined reference to `inflateInit_'
> /build/buildd/binutils-2.20.1/builddir-single/bfd/../../bfd/compress.c:106: 
> undefined reference to `inflateReset'
> /build/buildd/binutils-2.20.1/builddir-single/bfd/../../bfd/compress.c:103: 
> undefined reference to `inflate'
> /build/buildd/binutils-2.20.1/builddir-single/bfd/../../bfd/compress.c:108: 
> undefined reference to `inflateEnd'
> fp.pas(575,1) Error: Error while linking
> ---------------------------
> binutils ans zlib with dev packages seem's correctly instaled. Did 
> somebody have solution ?

I think you have incorrect version of libbfd:
http://wiki.lazarus.freepascal.org/Release_engineering#Linux

Vincent




More information about the Lazarus mailing list