LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2014, 02:57 AM   #1
pople
LQ Newbie
 
Registered: Nov 2013
Distribution: Gentoo
Posts: 26

Rep: Reputation: Disabled
BALLView 1.4.2 Compile Error


I have been trying to compile ballview 1.4.2. My system is Ubuntu 12.04 gcc 4.8.1 g++ 4.8.1 and I have been using the dependencies provided in the contrib tarball. Everything configures fine when I do make BALLView I get the following compile error.

Code:
Linking CXX shared library ../../../lib/VIEW.so
[ 98%] Built target VIEWmodule
[ 98%] Built target compile_translations
Linking CXX executable ../../../bin/BALLView
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::gzip_header::process(char)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::gzip_header::reset()'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::gzip_footer::process(char)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib_error::check(int)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::default_compression'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::stream_end'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::zlib_base()'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::~zlib_base()'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::default_strategy'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::okay'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::reset(bool, bool)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::sync_flush'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::detail::zlib_base::xinflate(int)'
../../../lib/libVIEW.so.1.4: undefined reference to `boost::iostreams::zlib::deflated'
collect2: ld returned 1 exit status
make[2]: *** [bin/BALLView] Error 1
make[1]: *** [source/APPLICATIONS/BALLVIEW/CMakeFiles/BALLView.dir/all] Error 2
make: *** [all] Error 2
I think this is a problem with boost but I'm not sure how to solve it. Any thoughts?
 
Old 04-05-2014, 01:20 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647

Rep: Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655
seeing as ballview 1.4.2 is over a year old
and was released BEFORE the very very very NEW gcc 4.8 came out

install gcc4.3 or gcc 4.1
then use that version and see if it builds

the error is do to zlib not being defined for the linker

security changes in gcc 4 are responsible
this software needs to be fixed to build on gcc 4.8

you could try adding " -lz " to the make file for the linker

from
http://www.ballview.org/Downloads
did you already build and install these?
-- the required "Contrib" code
http://www.ballview.org/Downloads/in...b-1.4.2.tar.gz

Last edited by John VV; 04-05-2014 at 01:24 PM.
 
Old 04-05-2014, 01:32 PM   #3
pople
LQ Newbie
 
Registered: Nov 2013
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: Disabled
I tohught so to however I looked at the build.log file the contrib_build script created and the boost iostreams library was not being compiled. Turns out I was missing the libbz2-dev package that provided a header file boost needed. Long story short I reconfigured and was able to compile.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS - Compile mutt error: configure: error: no curses library found SEI Linux - Newbie 2 01-28-2014 10:23 AM
can not install/compile PHP on 64bit RHEL 6.3 : Error configure: error: utf8_mime2tex sanjivus Red Hat 1 12-26-2012 05:24 PM
The error compile C/C++ in linux (but it does compile on Win) hikaru1505 Programming 2 12-30-2010 10:11 AM
Unable to compile C++ programs.make:g++ command not found error.Error 127 PrathuD Programming 3 03-16-2009 01:44 PM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration