Problems with libz when try compiling.
-
eltonplima
- New user
- Posts: 3
- Joined: 02 Oct 2011, 23:23
Problems with libz when try compiling.
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!
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!
-
vexed
- Inactive

- Posts: 2538
- Joined: 27 Jul 2010, 02:07
Re: Problems with libz when try compiling.
attach your configure log.
/facepalm ...Grinch stole Warzone

contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Super busy, don't expect a timely reply back.
-
cybersphinx
- Inactive

- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Problems with libz when try compiling.
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.
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.
Can anyone help me?
I have sent config.log.
I have sent config.log.
-
nloewen
- Greenhorn
- Posts: 10
- Joined: 09 Aug 2011, 23:12
Re: Problems with libz when try compiling.
yea, that was here, and there was no solution. I still have that problem.cybersphinx wrote:I remember seeing that, don't remember the solution though. Try google/forum/trac search.
-
vexed
- Inactive

- Posts: 2538
- Joined: 27 Jul 2010, 02:07
Re: Problems with libz when try compiling.
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.
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.
In my case, compiling libz myself did not fix the problem.
-
cybersphinx
- Inactive

- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Problems with libz when try compiling.
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.
fixed, thank you very much