Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-05

Can't compile fpc 2.5 with ubuntu lucid lynx

9 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Fedorax

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 ?

Reply by email

Flávio Etrusco
to Fedorax
Fedorax wrote 27 lines
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 ?

Did you 'make clean' before compiling? I don't have any problem compiling latest 2.5.1 with the fpc provided in Lucid.

Best regards,
Fl?vio

Reply by email

Fedorax
to Flávio Etrusco

Le 08/05/2010 22:25, Fl?vio Etrusco a ?crit :

Show quoted text 42 lines
On Sat, May 8, 2010 at 4:22 PM, Fedorax wrote: > 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 ? > Did you 'make clean' before compiling? I don't have any problem compiling latest 2.5.1 with the fpc provided in Lucid. Best regards, Fl?vio -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Yes, i do a make clean, a make distclean and make all give me teh same error.
Did you have make a new ubuntu installation or upgrade from karmic ? May be my upgrade from karmic have something wrong ?

Reply by email

Fedorax
to Fedorax

Le 08/05/2010 22:36, Fedorax a ?crit :

Show quoted text 56 lines
Le 08/05/2010 22:25, Fl?vio Etrusco a ?crit : > On Sat, May 8, 2010 at 4:22 PM, Fedorax wrote: >> 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 ? > Did you 'make clean' before compiling? I don't have any problem > compiling latest 2.5.1 with the fpc provided in Lucid. > > Best regards, > Fl?vio > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Yes, i do a make clean, a make distclean and make all give me teh same error. Did you have make a new ubuntu installation or upgrade from karmic ? May be my upgrade from karmic have something wrong ? -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

I just load the today svn and same thing. Compile with -d option say no more about the error. Something is wrong in my ubuntu but i can't see what.

Reply by email

Fedorax
to Fedorax

Le 08/05/2010 23:35, Fedorax a ?crit :

Show quoted text 67 lines
Le 08/05/2010 22:36, Fedorax a ?crit : > Le 08/05/2010 22:25, Fl?vio Etrusco a ?crit : >> On Sat, May 8, 2010 at 4:22 PM, Fedorax wrote: >>> 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 ? >> Did you 'make clean' before compiling? I don't have any problem >> compiling latest 2.5.1 with the fpc provided in Lucid. >> >> Best regards, >> Fl?vio >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > Yes, i do a make clean, a make distclean and make all give me teh > same error. > Did you have make a new ubuntu installation or upgrade from karmic ? > May be my upgrade from karmic have something wrong ? > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus I just load the today svn and same thing. Compile with -d option say no more about the error. Something is wrong in my ubuntu but i can't see what. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Ok. That's was a long way but i find the error. If i remove libgdb-dev fpc compile fine but i've no debugger suport.
I don't know if it's ubuntu or fpc bug ?

Reply by email

Flávio Etrusco
to Fedorax
Fedorax wrote 67 lines
Le 08/05/2010 23:35, Fedorax a ?crit : > > Le 08/05/2010 22:36, Fedorax a ?crit : >> >> Le 08/05/2010 22:25, Fl?vio Etrusco a ?crit : >>> >>> On Sat, May 8, 2010 at 4:22 PM, Fedorax ?wrote: >>>> >>>> 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 ? >>> >>> Did you 'make clean' before compiling? I don't have any problem >>> compiling latest 2.5.1 with the fpc provided in Lucid. >>> >>> Best regards, >>> Fl?vio >>> >>> -- >> >> Yes, i do a make clean, a make distclean and make all give me teh same >> error. >> Did you have make a new ubuntu installation or upgrade from karmic ? May >> be my upgrade from karmic have something wrong ? >> >> >> -- > > I just load the today svn and same thing. Compile with -d option say no > more about the error. Something is wrong in my ubuntu but i can't see what. > > -- Ok. That's was a long way but i find the error. If i remove libgdb-dev fpc compile fine but i've no debugger suport. ?I don't know if it's ubuntu or fpc bug ? --

I didn't notice you posted to lazarus ML, you may have better luck posting to the fpc-devel list.
This must be related FP IDE...

Best regards,
Fl?vio

Reply by email

Vincent Snijders
to Fedorax: When i want compile fpc 2.5.x or 2.4.x sources with the last version of ubuntu i got this…
Fedorax wrote 27 lines
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

Reply by email

Fedorax
to Vincent Snijders

Le 09/05/2010 07:57, Vincent Snijders a ?crit :

Show quoted text 39 lines
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 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.

Reply by email

Vincent Snijders
to Fedorax
Fedorax wrote
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.

Please, ask your questions about compiling the fp ide with debug info on the fpc mailing lists.

Vincent

Reply by email