[LAU] linuxsampler refuses to build a debian package
Robin Gareus
robin at gareus.org
Fri Jul 15 14:26:35 UTC 2011
On 07/15/2011 04:04 PM, fred wrote:
>
>
> Le 15/07/2011 12:38, Robin Gareus a écrit :
>> On 07/15/2011 11:25 AM, fred wrote:
>>
>>> Hi list,
>>>
>>> when dpkg-buildpackage -rfakeroot -b on the 2205 svn revision, system
>>> says :
>>>
>>>
>>> libtool: link: ranlib .libs/liblinuxsampler.a
>>> libtool: link: rm -fr .libs/liblinuxsampler.lax
>>> .libs/liblinuxsampler.lax
>>> libtool: link: ( cd ".libs"&& rm -f "liblinuxsampler.la"&& ln -s
>>> "../liblinuxsampler.la" "liblinuxsampler.la" )
>>> i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -Wreturn-type
>>> -ffast-math -march=i486 -g -O2 -pthread -MT linuxsampler.o -MD -MP -MF
>>> .deps/linuxsampler.Tpo -c -o linuxsampler.o linuxsampler.cpp
>>> mv -f .deps/linuxsampler.Tpo .deps/linuxsampler.Po
>>> /bin/bash ../libtool --tag=CXX --mode=link i486-linux-gnu-g++
>>> -Wreturn-type -ffast-math -march=i486 -g -O2 -pthread -o linuxsampler
>>> linuxsampler.o liblinuxsampler.la -luuid
>>> libtool: link: i486-linux-gnu-g++ -Wreturn-type -ffast-math -march=i486
>>> -g -O2 -pthread -o .libs/linuxsampler linuxsampler.o
>>> ./.libs/liblinuxsampler.so -luuid -pthread -Wl,-rpath
>>> -Wl,/usr/lib/linuxsampler
>>> ./.libs/liblinuxsampler.so: undefined reference to
>>> `LinuxSampler::restart(LinuxSampler::yyparse_param_t*, int&)'
>>> ./.libs/liblinuxsampler.so: undefined reference to `yyparse(void*)'
>>> collect2: ld returned 1 exit status
>>> make[4]: *** [linuxsampler] Erreur 1
>>> make[4]: quittant le répertoire «
>>> /home/f/Downloads/svn_linuxsampler/linuxsampler/src »
>>> make[3]: *** [all-recursive] Erreur 1
>>> make[3]: quittant le répertoire «
>>> /home/f/Downloads/svn_linuxsampler/linuxsampler/src »
>>> make[2]: *** [all-recursive] Erreur 1
>>> make[2]: quittant le répertoire «
>>> /home/f/Downloads/svn_linuxsampler/linuxsampler »
>>> make[1]: *** [all] Erreur 2
>>> make[1]: quittant le répertoire «
>>> /home/f/Downloads/svn_linuxsampler/linuxsampler »
>>> make: *** [build-stamp] Erreur 2
>>> dpkg-buildpackage: erreur: debian/rules build a produit une erreur de
>>> sortie de type 2
>>>
>>> Any help appreciated,
>>> Fred
>>>
>>
>> yyparse is a yacc or bison function - some "compiler-compiler/parser
>> generator" thingy usually invoked at compile time to create code.
>>
>> Either you don't have yacc or bison installed (and the .deb packages
>> misses a dependency on it)
> yacc is installed, did bison need to be too ?
bison and yacc are different implementations of the same
parser-generator. Either should work.
>> OR you don't have a clean code checkout (and
>> the parser-code is not [re-] generated correctly).
>>
> Aïe...
>> Try `sudo apt-get install bison` and re-compile;
>> Also try again with a clean checkout
>> or clean up your source-folder
>> with sth. along the lines of 'rm `svn status | grep ?` ').
>>
> Sorry, don't know this. May you explain that command please ?
It will delete all files that are not tracked by SVN.
svn status | grep ?
Take all lines from 'svn status' that contain a question-mark.
rm `svn status | grep ?`
quick/dirty hack to remove said files.
Subversion does - alas - not have a feature like 'git clean' that would
give you a pristine source-tree. That's why others have suggested a new
checkout.
ciao,
robin
More information about the Linux-audio-user
mailing list