[reSIProcate] Ubuntu Xenial - Build broken

Yannick Guay yannick.guay at gmail.com
Sat May 23 12:45:29 CDT 2020


Hello resiprocate-devel,

The current resiprocate "--with-repro" build from github HEAD appears
broken so I thought I would post here a workaround that worked for me.

My build environment is Ubuntu 16.04.6 LTS Xenial, and built it the usual
way:

~/build_folder$ autoreconf --install
~/build_folder$ ./configure --prefix=/usr --with-ssl --with-repro
CXXFLAGS="-I`pwd`/contrib/cajun/include"
~/build_folder$ make

It failed as follows:

make[3]: Entering directory '/home/ubuntu/dev/resiprocate/repro'
/bin/bash ../libtool  --tag=CXX   --mode=link g++ -I ..
-I/home/ubuntu/dev/resiprocate/contrib/cajun/include -Wall -Wno-deprecated
-I/home/ubuntu/dev/resiprocate/rutil/dns/ares
 -L/home/ubuntu/dev/resiprocate/rutil/dns/ares -o repro repro.o librepro.la
../resip/dum/libdum.la ../resip/stack/libresip.la ../rutil/librutil.la
-lssl -lcrypto -lpthread  -ldl
libtool: link: g++ -I ..
-I/home/ubuntu/dev/resiprocate/contrib/cajun/include -Wall -Wno-deprecated
-I/home/ubuntu/dev/resiprocate/rutil/dns/ares -o .libs/repro repro.o
 -L/home/ubuntu/dev/resiprocate/rutil/dns/ares ./.libs/librepro.so
../resip/dum/.libs/libdum.so ../resip/stack/.libs/libresip.so
../rutil/.libs/librutil.so -lssl -lcrypto -lpthread -ldl
../resip/stack/.libs/libresip.so: undefined reference to
`resip::ParameterHash::in_word_set(char const*, unsigned int)'
../resip/stack/.libs/libresip.so: undefined reference to
`resip::MonthHash::in_word_set(char const*, unsigned int)'
../resip/stack/.libs/libresip.so: undefined reference to
`resip::HeaderHash::in_word_set(char const*, unsigned int)'
../resip/stack/.libs/libresip.so: undefined reference to
`resip::DayOfWeekHash::in_word_set(char const*, unsigned int)'
../resip/stack/.libs/libresip.so: undefined reference to
`resip::MethodHash::in_word_set(char const*, unsigned int)'
collect2: error: ld returned 1 exit status

Turns out the provided ParameterHash.cxx files weren't suited for this
build (for whatever reason??) so the following workaround was helpful:

~/build_folder$ touch resip/stack/DayOfWeekHash.gperf
~/build_folder$ touch resip/stack/ParameterHash.gperf
~/build_folder$ touch resip/stack/MonthHash.gperf
~/build_folder$ touch resip/stack/HeaderHash.gperf
~/build_folder$ touch resip/stack/MethodHash.gperf
~/build_folder$ make

Hope that helps people don't get stuck like a I was :).

Kindest Regards,
Yannick Guay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20200523/82a8ca3b/attachment.htm>


More information about the resiprocate-devel mailing list