libvorbis.so error adding symbols: DSO missing from command line - gcc

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

Related

Unable to install Openfst using 'make install'

I'm Trying to install openfst for a speech recognition project and after ./configure when
I try 'sudo make install' I get the following traceback
P -MF .deps/util.Tpo -c util.cc -fPIC -DPIC -o .libs/util.o
util.cc:23:10: fatal error: charconv: No such file or directory
#include <charconv>
^~~~~~~~~~
compilation terminated.
make[2]: *** [util.lo] Error 1
make[2]: Leaving directory `/home/ec2-user/openfst-1.8.2/src/lib'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/ec2-user/openfst-1.8.2/src'
make: *** [install-recursive] Error 1
I'm trying this in an ec2 instance or is there any other means to install openfst. As I require it to use montreal-forced-aligner

Trying to compile erlang program using erlang.mk

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

FLINT/C installation on Arch

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.

Cannot make gunplot on osx yosemite. Undefined symbols

I try to make gunplot 5.0.0 under osx yosemite(10.10.4), and it comes with errors:
$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in config
make[2]: Nothing to be done for `all'.
Making all in m4
make[2]: Nothing to be done for `all'.
Making all in term
make[2]: Nothing to be done for `all'.
Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in wxterminal
make[4]: Nothing to be done for `all'.
Making all in qtterminal
make[4]: Nothing to be done for `all'.
c++ -g -O2 -o gnuplot alloc.o axis.o breaders.o boundary.o color.o command.o contour.o datablock.o datafile.o dynarray.o eval.o external.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o libcerf.o matrix.o misc.o mouse.o multiplot.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stats.o stdfn.o tables.o tabulate.o term.o time.o unset.o util.o util3d.o variable.o version.o -lreadline -lncurses -lz -llua -liconv
Undefined symbols for architecture x86_64:
"_luaL_checkint", referenced from:
_LUA_GP_int_error in term.o
_LUA_GP_int_warn in term.o
(maybe you meant: _luaL_checkinteger)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [gnuplot] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Seems like something related to lua. This is my lua env:
$ lua -v
Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio
I don't understand the make's output, please help!
It appears that the module/application you are compiling is not Lua 5.3-compatible. It uses luaL_checkint, but Lua 5.3 is using luaL_checkinteger. You need to update the module or use the compatibility switch LUA_COMPAT_APIINTCASTS (LUA_COMPAT_5_2 should work as well as it includes LUA_COMPAT_APIINTCASTS).
I had the same issue when using macports and trying to compile gnuplot (as a dependency for latex2rtf). In the end the fix was relatively straightforward...
In the version of gnuplot I needed (gnuplot-5.0.1), there are two references to luaL_checkint in the lua.trm file found in the term folder:
./term/lua.trm: t_num = luaL_checkint(L, 1);
./term/lua.trm: t_num = luaL_checkint(L, 1);
./term/lua.trm: token_cnt = luaL_checkinteger(L, 1);
Changing luaL_checkint to luaL_checkinteger did the trick. See Paul Kulchenko answer for the reason behind this compatibility issue.

trouble while making install monetdb5

I've the following error when running make while installing monetdb5
make[9]: Entering directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql/parser'
/bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. - I../../../.. -I. -I../ -I./../ -I../../../mal -I./../../../mal -I../../../optimizer -I./../../../optimizer -I../../../../common/options -I./../../../../common/options -I../../../../common/stream -I./../../../../common/stream -I../../../../gdk -I./../../../../gdk -DLIBJAQLP -g -O2 -c -o libjaqlp_la-jaql.tab.lo `test -f 'jaql.tab.c' || echo './'`jaql.tab.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I. -I../ -I./../ -I../../../mal -I./../../../mal -I../../../optimizer -I./../../../optimizer -I../../../../common/options -I./../../../../common/options -I../../../../common/stream -I./../../../../common/stream -I../../../../gdk -I./../../../../gdk -DLIBJAQLP -g -O2 -c jaql.tab.c -fPIC -DPIC -o .libs/libjaqlp_la-jaql.tab.o
y.tab.c: In function 'jaqlparse':
y.tab.c:1684:32: error: 'scanner' undeclared (first use in this function)
y.tab.c:1684:32: note: each undeclared identifier is reported only once for each function it appears in
make[9]: *** [libjaqlp_la-jaql.tab.lo] Error 1
make[9]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql/parser'
make[8]: *** [all] Error 2
make[8]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql/parser'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lfopa/opt/monetdb'
make: *** [all] Error 2
The configuration was good according to the readme file here are last line of the configuration
* Enabled/disabled build options:
strict is disabled (by default)
assert is disabled (by default)
debug is disabled (by default)
optimize is disabled (by default)
developer is disabled (by default)
instrument is disabled (by default)
profile is disabled (by default)
* Enabled/disabled components:
gdk is enabled
monetdb5 is enabled
sql is enabled
jaql is enabled
geom is disabled (geos library required for geom module)
gsl is enabled
fits is disabled (cfitsio library not found)
rdf is disabled (by default)
datacell is disabled (by default)
odbc is enabled
jdbc is enabled
control is enabled
testing is enabled
According to the error message. The trouble occurs when compiling jaqlparse which is a function needed to install the extension jaql. Since I'm not interesting by this extension, I solved the problem by disablingjaql` extension when configuring monetdb
./configure --diseable-jaql
sudo make
sudo make install

Resources