Bug #4501

Missing libs when building ONE 5.0 on Ubuntu

Added by Guillaume Oberlé about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:05/29/2016
Priority:HighDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:Core & System
Target version:Release 5.0
Resolution:fixed Pull request:
Affected Versions:Development

Description

Building ONE 5.0 fails on Ubuntu 14.04 and 16.04 with this error message :

/usr/bin/ld: src/common/libnebula_common.a(NebulaUtil.o): undefined reference to symbol 'deflate'
//lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

I fixed it adding "main_env.Append(LIBS=['z'])" in the root SConstruct file.

Associated revisions

Revision 05ec287c
Added by Ruben S. Montero about 5 years ago

bug #4501: Add explicit zlib dependency for platforms not including it
automatically for current dependencies.

History

#1 Updated by Ruben S. Montero about 5 years ago

Hi thanks

we are getting this from xmlrpc, It seems that is not the case in Ubuntu?

$ xmlrpc-c-config --libs
-L/usr/lib   -lxmlrpc  -lxml2 -lz -llzma -lm -ldl -lxmlrpc_util -lpthread

What is the output in your system?

#2 Updated by Guillaume Oberlé about 5 years ago

On Ubuntu 14.04/16.04 :

root@one:~# xmlrpc-c-config --libs
-L/usr/lib/x86_64-linux-gnu -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util

"-lz" is missing :)

#3 Updated by Ruben S. Montero about 5 years ago

  • Assignee set to Ruben S. Montero

#4 Updated by Ruben S. Montero about 5 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

Added now in master.

THANKS!

Also available in: Atom PDF