[Lazarus] Problem to cross compile with lazarus

Fedorax fedorax at free.fr
Sun May 9 12:56:37 CEST 2010


Le 09/05/2010 07:57, Vincent Snijders a écrit :
> 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
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Yes, i remove the libgdb-dev and i can compile but without debugger. 
Your link seems obsolete, the most recent version of fpc in tags is 
2.0.4 and for libgdb nothing for linux. Year 2010 have only two versions 
for windows the last version for i386-linux is from 05/11/2004.




More information about the Lazarus mailing list