I try to build graphviz from git http://github.com/ellson/graphviz/
It stop building with this message
make[2]: Leaving directory `/home/peter/work/sdk/graphviz/graphviz-src/graphviz/cmd/gvedit'
CXX gvedit-moc_csettings.o
CXX gvedit-moc_imageviewer.o
CXX gvedit-moc_mainwindow.o
CXX gvedit-moc_mdichild.o
CXX gvedit-qrc_mdi.o
CXXLD gvedit
/usr/bin/ld: gvedit-mainwindow.o: undefined reference to symbol 'agseterrf'
/home/peter/work/sdk/graphviz/graphviz-src/graphviz/lib/cgraph/.libs/libcgraph.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [gvedit] Error 1
make[1]: Leaving directory `/home/peter/work/sdk/graphviz/graphviz-src/graphviz/cmd/gvedit'
make: *** [all-recursive] Error 1
Can you point me to the problem?
I found this issue on the github repo: https://github.com/ellson/graphviz/issues/1
It appears there is some issue with the perl plugin, for me building with
./configure --enable-perl=no
was enough to fix the issue (and I didn't lose any functionality I need).
Related
I've getting the following linking error while compiling mlpack:
[ 37%] Linking CXX shared library ../../lib/libmlpack.so
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libiberty.a(cplus-dem.o): warning: relocation against `libiberty_demanglers' in read-only section `.text'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libiberty.a(cp-demangle.o): relocation R_X86_64_PC32 against symbol `cplus_demangle_builtin_types' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/mlpack/CMakeFiles/mlpack.dir/build.make:1040: lib/libmlpack.so.3.4] Error 1
make[1]: *** [CMakeFiles/Makefile2:2106: src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
It seems I need to recompile libiberty.a library with -fPIC flag. How do I do that?
I found this bug report on the issue. In my case I was able to fix things by downgrading a few packages (as described in the report):
binutils 2.36.1-3
gcc 11.1.0-3
gcc-libs 11.1.0-3
gcc fortran-11.1.0-3
Ultimately this should be resolved when binutils gets updated.
am trying to compile erlang code using command 'make' on erlang.mk and getting the below error. i dont know where to go from here. am new to erlang.mk and erlang. am on ubuntu
Getting Xabber Web client .... done.
Copying Xabber Web files to 'priv' directory ........ done.
make[1]: Entering directory '/home/isachi2004/xabber-websocket
/deps/fast_xml'
cc -o priv/lib/fxml.so c_src/fxml.o -lexpat -L -lei -shared
/usr/bin/ld: cannot find -lexpat
collect2: error: ld returned 1 exit status
c_src/Makefile.erlang.mk:24: recipe for target 'priv/lib/fxml.so'
failed
make[2]: *** [priv/lib/fxml.so] Error 1
Makefile:25: recipe for target 'pre-app' failed
make[1]: *** [pre-app] Error 2
make[1]: Leaving directory '/home/isachi2004/xabber-websocket
/deps/fast_xml'
erlang.mk:4512: recipe for target 'deps' failed
make: *** [deps] Error 2
This error means that it cannot find the development files for the Expat library (an XML parser):
/usr/bin/ld: cannot find -lexpat
On Ubuntu, you could try installing it with:
sudo apt install libexpat1-dev
I'm trying to install FLINT/C lib on Arch for learning Modern Cryptography in C. All my dependencies are fulfilled per se and the only thing left to do is run make && make install and ld is generating errors :
make[1]: Entering directory '/home/venine/Downloads/flint-2.4.5'
make[2]: Entering directory '/home/venine/Downloads/flint-2.4.5/ulong_extras'
CC ../build/ulong_extras/../ulong_extras.lo
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [../Makefile.subdirs:55:
../build/ulong_extras/../ulong_extras.lo] Error 1
make[2]: Leaving directory '/home/venine/Downloads/flint- 2.4.5/ulong_extras'
make[1]: *** [Makefile:135: libflint.so] Error 2
make[1]: Leaving directory '/home/venine/Downloads/flint-2.4.5'
make: *** [Makefile:161: library] Error 2`
Can someone tell me what's going wrong and how do I create a proper make file
This appears to be FLINT 2 Issue#400. The bug also describes a change in the makefile.
I have a next error when do make on zaz game on a linux mint 17.1 (Rebecca) with a drivers NVIDIA G98 GeForce 8400
make all-recursive
make[1]: Entering directory `/home/miguel/tmp/zaz-1.0.0'
Making all in po
make[2]: Entering directory `/home/miguel/tmp/zaz-1.0.0/po'
make[2]: Leaving directory `/home/miguel/tmp/zaz-1.0.0/po'
Making all in src
make[2]: Entering directory `/home/miguel/tmp/zaz-1.0.0/src'
g++ -g -O2 -o zaz main.o audiobuffer.o mixer.o oggsample.o scene.o settings.o wavesample.o streamingoggsample.o frame_events.o ogvexport.o bezier.o textureloader.o player.o level.o ballpath.o game.o editor.o mainmenu.o menu.o gameloop.o hiscores.o lineeditor.o tests.o profile.o directorylister.o levelset.o splash.o -lSDL -lvorbisfile -ltheoraenc -ltheoradec -logg -lftgl -lGL -lvorbisenc -lSDL_image
/usr/bin/ld: ogvexport.o: undefined reference to symbol 'vorbis_bitrate_addblock'
//usr/lib/i386-linux-gnu/libvorbis.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [zaz] Error 1
make[2]: Leaving directory `/home/miguel/tmp/zaz-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/miguel/tmp/zaz-1.0.0'
make: *** [all] Error 2
I Have installed lib vorbis
libvorbis-dbg:i386 install
libvorbis-dev:i386 install
libvorbis-ocaml install
libvorbis-ocaml-dev install
libvorbis0a:i386 install
libvorbisenc2:i386 install
libvorbisfile3:i386 install
libvorbisidec1 install
With other computer like same features not have a same problem, but the other computer don't have a nvidia card.
Thank for your help.
Tanks, I have resolv the problem change Makefile.ini after read this page:
https://www.mail-archive.com/debian-bugs-dist#lists.debian.org/msg1278320.html
I'm trying to cross compile a package applicaiton with gcc-eabi. I have modified the configuration file to point to all the target directories. But the linker still gives an error when linking some shared libraries. The exact error is below:
Linking CXX shared library /home/aeodrs/JAUS++-2.110519-src/libraries/jaus++/2.0/lib /libcxutils.so
/home/aeodrs/JAUS++-2.110519-src/libraries/jaus++/2.0/lib/libcxjpeg-6b.a: could not read symbols: File format not recognized collect2: ld returned 1 exit status
make[2]: *** [/home/aeodrs/JAUS++-2.110519-src/libraries/jaus++/2.0/lib/libcxutils.so] Error 1
make[1]: *** [libcxutils/CxUtils/libcxutils/CMakeFiles/cxutils.dir/all] Error 2
make: *** [all] Error 2
aeodrs#ubuntu:~/JAUS++-2.110519-src/libraries/jaus++/2.0/build/cmake$
I'm not sure why the linker can't read or is corrupting the library file.