unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Cppunit undefined reference
@ 2015-05-02 21:00 Andreas Enge
  2015-05-03  7:38 ` Andreas Enge
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Enge @ 2015-05-02 21:00 UTC (permalink / raw)
  To: guix-devel

Hello,

trying to create a package for librevenge (input of libreoffice), during
"make check" the following happens:

  CXXLD    test
/gnu/store/6zd4cq3qsxlvcla5wpysf8sadmnq5l5w-cppunit-1.12.1/lib/libcppunit.so: undefined reference to `dlsym'
/gnu/store/6zd4cq3qsxlvcla5wpysf8sadmnq5l5w-cppunit-1.12.1/lib/libcppunit.so: undefined reference to `dlopen'
/gnu/store/6zd4cq3qsxlvcla5wpysf8sadmnq5l5w-cppunit-1.12.1/lib/libcppunit.so: undefined reference to `dlclose'
collect2: error: ld returned 1 exit status

John passed "LDFLAGS=-ldl", and the tests pass. Is this the good approach,
or do we have a problem with cppunit?

$ ldd /gnu/store/6zd4cq3qsxlvcla5wpysf8sadmnq5l5w-cppunit-1.12.1/lib/libcppunit.so
        linux-vdso.so.1 (0x00007fffbe81b000)
        libstdc++.so.6 => /gnu/store/rsw0dkmv1x2krv9pl1ciai1h235r9nb7-gcc-4.8.4-lib/lib/libstdc++.so.6 (0x00007f098eb8c000)
        libm.so.6 => /gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/libm.so.6 (0x00007f098e889000)
        libc.so.6 => /gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/libc.so.6 (0x00007f098e4e9000)
        libgcc_s.so.1 => /gnu/store/rsw0dkmv1x2krv9pl1ciai1h235r9nb7-gcc-4.8.4-lib/lib/libgcc_s.so.1 (0x00007f098e2d3000)
        /gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/ld-linux-x86-64.so.2 (0x00007f098f0ce000)

Running "strings" on libcppunit.so indeed returns instances of "dlopen".

And adding LDFLAGS=-ldl to cppunit instead of librevenge works as well;
I suppose that this is the good approach finally?

Andreas

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cppunit undefined reference
  2015-05-02 21:00 Cppunit undefined reference Andreas Enge
@ 2015-05-03  7:38 ` Andreas Enge
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Enge @ 2015-05-03  7:38 UTC (permalink / raw)
  To: guix-devel

On Sat, May 02, 2015 at 11:00:26PM +0200, Andreas Enge wrote:
> And adding LDFLAGS=-ldl to cppunit instead of librevenge works as well;

This appears to be a known problem:
   http://sourceforge.net/p/cppunit/patches/69/
So I am going to add "LDFLAGS=-ldl" to the #:make-flags of cppunit unless
someone opposes this.

Andreas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-03  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-02 21:00 Cppunit undefined reference Andreas Enge
2015-05-03  7:38 ` Andreas Enge

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).