libubacktrace.so build issue

Subash T Comerica subashtc at gmail.com
Fri Feb 22 23:06:11 UTC 2019


Hi,
I am facing the dreaded /lib/libubacktrace.so missing when I turn on the
with-pcre option while cross-compiling lighttpd.

I have worked with the lighttpd mailing list and confirmed it is not a
lighttpd or libpcre issue.

My uClibc version is 0.9.33.2
My libpcre version is 8.35
My lighttpd version is 1.4.51

For the with-pcre addition, I just followed:
http://fengh2000.blogspot.com/2009/06/how-to-cross-compile-lighttpd-with-pcre.html
and
http://www.ridgesolutions.ie/index.php/2013/06/05/build-cross-compile-lighttpd-for-arm-linux-with-pcre/

Strangely if I copy the libubacktrace.so to my build machine's /lib (with
root perms) the build goes through fine, which obviously is a no-go!
Is there any Makefile patch to remove this ASNEEDED dependency on
libubacktrace as I dont see any backtrace related symbols either in libpcre
or lighttpd source? Are there newer patches like the one referred here(
http://uclibc.10924.n7.nabble.com/PATCH-buildsys-clean-up-libubacktrace-linker-script-handling-td11535.html)
that I am possibly missing?

Did any of you face this error while cross-compiling lighttpd with-pcre?

Any help/suggestions on this is highly appreciated.

Thanks,
Subash

<partial logs, sorry about the redaction!>

/<redacted>/buildroot/build/ap-arm-qca-wsg/build_arm_release/root/lib
mod_flv_streaming.lo
libtool: link:
/<redacted>/buildroot/tools/3.14.43_gcc-linaro-4.8-2014.04/bin/arm-linux-uclibc-gcc
-std=gnu99 -shared  -fPIC -DPIC  .libs/mod_flv_streaming.o
 -L/<redacted>/buildroot/build/ap-arm-qca-wsg/build_arm_release/root/lib
-L/<redacted>/buildroot/build/ap-arm-qca-wsg/build_arm_release/root
-L/<redacted>/buildroot/build/ap-arm-qca-wsg/build_arm_release/openssl-1.0.2i
  -Wl,-soname -Wl,mod_flv_streaming.so -o .libs/mod_flv_streaming.so
/<redacted>/buildroot/tools/3.14.43_gcc-linaro-4.8-2014.04/bin-ccache/../lib/gcc/arm-linux-uclibcgnueabi/4.8.3/../../../../arm-linux-uclibcgnueabi/bin/ld:
cannot find /lib/libubacktrace.so.0
collect2: error: ld returned 1 exit status
make4 <https://redmine.lighttpd.net/boards/2/topics/8519?r=8529#fn4>:

** [mod_flv_streaming.la <http://mod_flv_streaming.la>] Error 1make4
<https://redmine.lighttpd.net/boards/2/topics/8519?r=8529#fn4>: Leaving
directory
`/<redacted>/buildroot/build/ap-arm-qca-wsg/build_arm_release/lighttpd/src'make3
<https://redmine.lighttpd.net/boards/2/topics/8519?r=8529#fn3>: *

*[all] Error 2make3
<https://redmine.lighttpd.net/boards/2/topics/8519?r=8529#fn3>: Leaving
directory
`/<redacted>/buildroot/build/ap-arm-qca-wsg/build_arm_release/lighttpd/src'make2
<https://redmine.lighttpd.net/boards/2/topics/8519?r=8529#fn2>: *

*[all-recursive] Error 1make2
<https://redmine.lighttpd.net/boards/2/topics/8519?r=8529#fn2>: Leaving
directory
`/<redacted>/buildroot/build/ap-arm-qca-wsg/build_arm_release/lighttpd'make1
<https://redmine.lighttpd.net/boards/2/topics/8519?r=8529#fn1>: *

*[all] Error 2make1
<https://redmine.lighttpd.net/boards/2/topics/8519?r=8529#fn1>: Leaving
directory
`/<redacted>/buildroot/build/ap-arm-qca-wsg/build_arm_release/lighttpd'make:
*** [lighttpd] Error 2


More information about the uClibc mailing list