Problems with libz when try compiling.

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
eltonplima
New user
Posts: 3
Joined: 02 Oct 2011, 23:23

Problems with libz when try compiling.

Post by eltonplima »

I downloaded the code with git and build time gives the following error:

usr/bin/ld: ../lib/netplay/libnetplay.a(netsocket.o): undefined reference to symbol 'deflate'
/usr/bin/ld: note: 'deflate' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libz.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libz.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Can anyone help me?

Tanks!
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Problems with libz when try compiling.

Post by vexed »

attach your configure log.
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Problems with libz when try compiling.

Post by cybersphinx »

I remember seeing that, don't remember the solution though. Try google/forum/trac search.
We want information... information... information.
eltonplima
New user
Posts: 3
Joined: 02 Oct 2011, 23:23

Re: Problems with libz when try compiling.

Post by eltonplima »

There is the config.log
You do not have the required permissions to view the files attached to this post.
eltonplima
New user
Posts: 3
Joined: 02 Oct 2011, 23:23

Re: Problems with libz when try compiling.

Post by eltonplima »

Can anyone help me?
I have sent config.log.
nloewen
Greenhorn
Posts: 10
Joined: 09 Aug 2011, 23:12

Re: Problems with libz when try compiling.

Post by nloewen »

cybersphinx wrote:I remember seeing that, don't remember the solution though. Try google/forum/trac search.
yea, that was here, and there was no solution. I still have that problem.
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Problems with libz when try compiling.

Post by vexed »

Try to compile libz yourself is what I would try first.
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
nloewen
Greenhorn
Posts: 10
Joined: 09 Aug 2011, 23:12

Re: Problems with libz when try compiling.

Post by nloewen »

In my case, compiling libz myself did not fix the problem.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Problems with libz when try compiling.

Post by cybersphinx »

Seems like Ubuntu still defaults to the old ld.bfd, which is too stupid to recognize the -lz option where automake puts it. Committed a workaround.
We want information... information... information.
nloewen
Greenhorn
Posts: 10
Joined: 09 Aug 2011, 23:12

Re: Problems with libz when try compiling.

Post by nloewen »

fixed, thank you very much