Coder Social home page Coder Social logo

Compiling Error on Fedora 17 x64 about grive HOT 17 CLOSED

grive avatar grive commented on July 21, 2024
Compiling Error on Fedora 17 x64

from grive.

Comments (17)

nestal avatar nestal commented on July 21, 2024

Did you compile libgrive?

from grive.

anielka avatar anielka commented on July 21, 2024

same problem in openSUSE 12.1

anielka@dev:~/src/grive/grive> gmake 
[  2%] Building CXX object libgrive/CMakeFiles/grive.dir/src/drive/ResourceTree.cc.o
[...]
[ 74%] Building CXX object libgrive/CMakeFiles/grive.dir/src/bfd/Debug.cc.o
Linking CXX static library libgrive.a
[ 74%] Built target grive
[ 76%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/UnitTest.cc.o
[...]
[ 93%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/util/SignalHandlerTest.cc.o
[ 95%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/xml/NodeTest.cc.o
Linking CXX executable unittest
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: /usr/lib/gcc/i586-suse-linux/4.6/../../../libbfd.a(compress.o): undefined reference to symbol 'compressBound@@ZLIB_1.2.0'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'compressBound@@ZLIB_1.2.0' is defined in DSO /lib/libz.so.1 so try adding it to the linker command line
/lib/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
gmake[2]: *** [libgrive/unittest] Błąd 1
gmake[1]: *** [libgrive/CMakeFiles/unittest.dir/all] Błąd 2
gmake: *** [all] Błąd 2

from grive.

nestal avatar nestal commented on July 21, 2024

Libbfd requires zlib? That's strange.
Maybe you can add it yourself?

from grive.

anielka avatar anielka commented on July 21, 2024

i did it, cloned GIT to another path and...

Linking CXX executable unittest
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: /usr/lib/gcc/i586-suse-linux/4.6/../../../libbfd.a(compress.o): undefined reference to symbol 'compressBound@@ZLIB_1.2.0'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'compressBound@@ZLIB_1.2.0' is defined in DSO /lib/libz.so.1 so try adding it to the linker command line
/lib/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [libgrive/unittest] Błąd 1
make[1]: *** [libgrive/CMakeFiles/unittest.dir/all] Błąd 2
make: *** [all] Błąd 2

from grive.

nestal avatar nestal commented on July 21, 2024

I have no clue on what's going on. My development machine is a Fedora 16 x64 box. I don't have a SUSE box on hand right now. It's hard for me to remotely fix this compile error here.

Could you please try figuring out a patch that fixes it and send it to me?

from grive.

anielka avatar anielka commented on July 21, 2024

if i find some free time (large project) i will -> I really wish to run this soft anyway :)

from grive.

nestal avatar nestal commented on July 21, 2024

Thanks

from grive.

chris-daw avatar chris-daw commented on July 21, 2024

Really simple fix:
grieve/libgrieve/CMakeLists.txt
line 83 add in new line in the target_link_libraries section that says /lib/libz.so.1

Links perfectly and runs nicely then. If I can get my noodle around GIt and pull requests I'll try and submit it. No promises...!
Chris.

from grive.

anielka avatar anielka commented on July 21, 2024

thanks chris-daw - it works !

from grive.

nestal avatar nestal commented on July 21, 2024

Can you please try compiling in SUSE and fedora 17?

from grive.

anielka avatar anielka commented on July 21, 2024

from git? sure- give me a few secs

from grive.

nestal avatar nestal commented on July 21, 2024

yes, in the v0.2.0 branch

from grive.

anielka avatar anielka commented on July 21, 2024

on openSUSE 12.1

cmake && make

did the job - it works propper

./grive -v
grive version 0.2.0-pre Jun 21 2012 14:20:57

fedora is on my better half's laptop, so i need to wait for her to back from work :)

from grive.

nestal avatar nestal commented on July 21, 2024

Mmm... the version string should be "v0.2.0" instead of "v0.2.0-pre". Are you sure you have the latest commit in git?

from grive.

anielka avatar anielka commented on July 21, 2024

yes, i'vd cloned whole git

git status
# On branch v0.2.0
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   CMakeCache.txt
#   CMakeFiles/
#   Makefile
#   cmake_install.cmake
#   grive/CMakeFiles/
#   grive/Makefile
#   grive/cmake_install.cmake
#   grive/grive
#   libgrive/CMakeFiles/
#   libgrive/Makefile
#   libgrive/cmake_install.cmake
#   libgrive/libgrive.a
#   libgrive/unittest
nothing added to commit but untracked files present (use "git add" to track)

also

git log -n 1

gives me


commit 68507856676eef947cb87f62fac6848eb3ff66e0
Author: Nestal Wan <[email protected]>
Date:   Thu Jun 21 23:39:53 2012 +0800

    added zlib for SUSE (#63)
lines 1-5/5 (END)

from grive.

nestal avatar nestal commented on July 21, 2024

Great. Thanks!

from grive.

anielka avatar anielka commented on July 21, 2024

on fedora 17 it works perfectly too

from grive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.