problem with install BFL

I have got problem with installation of BFL.
If I build BFL a I get this error:

...
[ 52%] Building CXX object tests/CMakeFiles/test_complete_filter.dir/__/__/examples/compare_filters/nonlinearanalyticconditionalgaussianmobile.o
Linking CXX executable test_complete_filter
/usr/local/lib/libcppunit.so: undefined reference to `dlclose'
/usr/local/lib/libcppunit.so: undefined reference to `dlopen'
/usr/local/lib/libcppunit.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[2]: *** [tests/test_complete_filter] Error 1
make[1]: *** [tests/CMakeFiles/test_complete_filter.dir/all] Error 2
make: *** [all] Error 2

I am using Slackware 10.1, CPPUNIT-1.10.2, BFL-0.6.0 and LTI.
Thank for help Pavel P.

problem with install BFL

On 25 Jun 2007 20:56:02 -0000, pavel. pirkl
<pavel [dot] pirkl [..] ...> wrote:
>
> I have got problem with installation of BFL.
> If I build BFL a I get this error:

> [ 52%] Building CXX object tests/CMakeFiles/test_complete_filter.dir/__/__/examples/compare_filters/nonlinearanalyticconditionalgaussianmobile.o
> Linking CXX executable test_complete_filter
> /usr/local/lib/libcppunit.so: undefined reference to `dlclose'
> /usr/local/lib/libcppunit.so: undefined reference to `dlopen'
> /usr/local/lib/libcppunit.so: undefined reference to `dlsym'
> collect2: ld returned 1 exit status
> make[2]: *** [tests/test_complete_filter] Error 1
> make[1]: *** [tests/CMakeFiles/test_complete_filter.dir/all] Error 2
> make: *** [all] Error 2
>
> I am using Slackware 10.1, CPPUNIT-1.10.2, BFL-0.6.0 and LTI.

These symbols are defined in libdl.[a|.so], which is a part of
libc6-dev. You'll need to install that library (maybe it has a
slighly different name in Slackware).

Klaas
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

problem with install BFL

On Monday 25 June 2007 22:56:02 pavel.pirkl wrote:
> I have got problem with installation of BFL.
> If I build BFL a I get this error:
>
>
> ...
> [ 52%] Building CXX object
> tests/CMakeFiles/test_complete_filter.dir/__/__/examples/compare_filters/no
>nlinearanalyticconditionalgaussianmobile.o Linking CXX executable
> test_complete_filter
> /usr/local/lib/libcppunit.so: undefined reference to `dlclose'
> /usr/local/lib/libcppunit.so: undefined reference to `dlopen'
> /usr/local/lib/libcppunit.so: undefined reference to `dlsym'
> collect2: ld returned 1 exit status
> make[2]: *** [tests/test_complete_filter] Error 1
> make[1]: *** [tests/CMakeFiles/test_complete_filter.dir/all] Error 2
> make: *** [all] Error 2
>
> I am using Slackware 10.1, CPPUNIT-1.10.2, BFL-0.6.0 and LTI.
> Thank for help Pavel P.
>
You have a problem when linking to libccpunit.
Try to locate libcppunit.so on your computer.
In my case this library is located in /usr/lib and not in /usr/local/lib.
When building the library you should change the option CPPUNIT_INSTALL (I
think yours is set to /usr/local in stead of /usr).

Let me know if you make any progress!

The BFL maintainer aka Tinne
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Re: problem with install BFL

Tinne De Laet wrote:
On Monday 25 June 2007 22:56:02 pavel.pirkl wrote: > I have got problem with installation of BFL. > /usr/local/lib/libcppunit.so: undefined reference to `dlclose' > /usr/local/lib/libcppunit.so: undefined reference to `dlopen' > /usr/local/lib/libcppunit.so: undefined reference to `dlsym' > collect2: ld returned 1 exit status > make[2]: *** [tests/test_complete_filter] Error 1 > make[1]: *** [tests/CMakeFiles/test_complete_filter.dir/all] Error 2 > make: *** [all] Error 2 >> I am using Slackware 10.1, CPPUNIT-1.10.2, BFL-0.6.0 and LTI. > Thank for help Pavel P. >

You have a problem when linking to libccpunit. Try to locate libcppunit.so on your computer. In my case this library is located in /usr/lib and not in /usr/local/lib. When building the library you should change the option CPPUNIT_INSTALL (I think yours is set to /usr/local in stead of /usr).

Let me know if you make any progress!

I also got this error while building KDL. My platform is CentOS 5.2, CPPUNIT-1.12.1, KDL-svn. I googled a bit and realize that it requires "-ldl" at linking stage.

I then add "-ldl" to "CMAKE_EXE_LINKER_FLAGS" and solved this error. It's with "cd build; ccmake ..; [t] toggle to advance mode; edit CMAKE_EXE_LINKER_FLAGS as -ldl".

Hopefully, this would help for the other people who also hit this error.

-ysli

problem with install BFL

Thanks for your help. Now I can build all example without any problems.
Pavel.

Re: problem with install BFL

Could you detail on the solution you used to solve the problem, this can help other users in the future too.

Thanks,

Tinne

problem with install BFL

If I installed BFL

after
ccmake ..
I set BUILD_TESTS to OFF. So but I dont know is it correct solve of my problems?

Pavel.

problem with install BFL

On Tuesday 26 June 2007 21:51:02 pavel.pirkl wrote:
> If I installed BFL
>
> after
> ccmake ..
> I set BUILD_TESTS to OFF. So but I dont know is it correct solve of my
> problems?
I didn't really solve the problem, you just worked around it.
As a consequence you will not be able to run the cpp-unit tests, but all your
programs will probably run fine.
If you would ever try to get the CPPunit tests to work, I'm interested in the
solution. (PS: also check the solution proposed by Klaas Gadeyne on the
mailinglist).

Tinne
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

problem with install BFL

Yes I would like to solve this problem too, but I dont know how I can use solution of Klaas Gadeyne.-((
Is it possible to help me? Some initial step?
Pavel.

problem with install BFL

On 27 Jun 2007 19:45:48 -0000, pavel. pirkl
<pavel [dot] pirkl [..] ...> wrote:
> Yes I would like to solve this problem too, but I dont know how I can use solution of Klaas Gadeyne.-((
> Is it possible to help me? Some initial step?

Doesn't slackware offer libc packages?
e.g.

k
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

problem with install BFL

Ok thanks for help. Pavel.