Closed PTRx2 closed 10 years ago
Could you please attach the config.log file here?
On Mon, Apr 7, 2014 at 10:40 PM, PTRx2 notifications@github.com wrote:
I had this wonderful library of yours working on an older machine of mine, but currently I'm having issues on this new rig. libbmd seems to compile and install with no issues, however the bmd fork of libav always fails with the error: ERROR: libbmd not found. Running "ldconfig -p | grep libbmd" shows the libbmd.so installed in /usr/local/lib/ as per defaults.
Do I need a specific version of autotools? The elder machine is running linux mint 15 and the newer machine is linux mint 16 (both xfce). Let me know if you have any thoughts. Thank you for your time.
Reply to this email directly or view it on GitHubhttps://github.com/lu-zero/libbmd/issues/7 .
I know you asked "Could you please attach the config.log file here?" but what I read was "check your logs, and post them if you can't figure it out". My installation thought process was to install libbmd, and then install the libav-bmd fork. Checking the libbmd config.log showed that libbmd was missing dependencies from libav so I installed the libav-bmd fork without the --enable-libbmd option. I then ran into the libbmd compile error that dinhka had in issue https://github.com/lu-zero/libbmd/issues/3. So I got the current libav master and installed that. libbmd was then configured and compiled with no issues. Trying to configure the libav-bmd fork with --enable-libbmd resulted in the same ERROR: libbmd not found as before. Looking through the libav config.log I saw:
gcc -Wl,--as-needed -I/usr/local/include -L/usr/local/lib -o /tmp/ffconf.XZ7zuehx /tmp/ffconf.Unzuqvsq.o -lbmd -ldl -lm -pthread -lz
/usr/local/lib/libbmd.so: undefined reference to `dlopen'
/usr/local/lib/libbmd.so: undefined reference to `dlerror'
/usr/local/lib/libbmd.so: undefined reference to `dlsym'
collect2: error: ld returned 1 exit status
ERROR: libbmd not found
Some Google-fu turned up several people with this same issue, all resulting from the gcc --as-needed option. I edited line 3473 of the libav-bmd configure script from
check_ldflags -Wl,--as-needed
to
check_ldflags -Wl,--no-as-needed
and everything compiled successfully. I was worried I may have screwed up some linking of libraries (I'm no gcc master) but I've run several tests and haven't had anything fail yet. So for people with this issue in the future:
1) Compile and install libav (I used the current master as of 8 APR 2014) 2) Compile and install libbmd 3) Download the libav-bmd fork and edit the configure script so gcc uses the --no-as-needed option (line 3473) 4) Compile and install libav-bmd
Thanks again for your time and your code.
I'll update now the build system to fix that bit. thanks for pointing it out!
On Tue, Apr 8, 2014 at 6:54 PM, PTRx2 notifications@github.com wrote:
I know you asked "Could you please attach the config.log file here?" but what I read was "check your logs, and post them if you can't figure it out". My installation thought process was to install libbmd, and then install the libav-bmd fork. Checking the libbmd config.log showed that libbmd was missing dependencies from libav so I installed the libav-bmd fork without the --enable-libbmd option. I then ran into the libbmd compile error that dinhka had in issue #3https://github.com/lu-zero/libbmd/issues/3. So I got the current libav master and installed that. libbmd was then configured and compiled with no issues. Trying to configure the libav-bmd fork with --enable-libbmd resulted in the same ERROR: libbmd not found as before. Looking through the libav config.log I saw:
gcc -Wl,--as-needed -I/usr/local/include -L/usr/local/lib -o /tmp/ffconf.XZ7zuehx /tmp/ffconf.Unzuqvsq.o -lbmd -ldl -lm -pthread -lz /usr/local/lib/libbmd.so: undefined reference to
dlopen' /usr/local/lib/libbmd.so: undefined reference to
dlerror' /usr/local/lib/libbmd.so: undefined reference to `dlsym' collect2: error: ld returned 1 exit status ERROR: libbmd not foundSome Google-fu turned up several people with this same issue, all resulting from the gcc --as-needed option. I edited line 3473 of the libav-bmd configure script from
check_ldflags -Wl,--as-needed
to
check_ldflags -Wl,--no-as-needed
and everything compiled successfully. I was worried I may have screwed up some linking of libraries (I'm no gcc master) but I've run several tests and haven't had anything fail yet. So for people with this issue in the future:
1) Compile and install libav (I used the current master as of 8 APR 2014) 2) Compile and install libbmd 3) Download the libav-bmd fork and edit the configure script so gcc uses the --no-as-needed option (line 3473) 4) Compile and install libav-bmd
Thanks again for your time and your code.
Reply to this email directly or view it on GitHubhttps://github.com/lu-zero/libbmd/issues/7#issuecomment-39873176 .
I had this wonderful library of yours working on an older machine of mine, but currently I'm having issues on this new rig. libbmd seems to compile and install with no issues, however the bmd fork of libav always fails with the error: ERROR: libbmd not found. Running "ldconfig -p | grep libbmd" shows the libbmd.so installed in /usr/local/lib/ as per defaults.
Do I need a specific version of autotools? The elder machine is running linux mint 15 and the newer machine is linux mint 16 (both xfce). Let me know if you have any thoughts. Thank you for your time.