Re: [Help-gnucap] gnucap development snapshot 2013-04-23

al davis <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel,gmane.comp.gnu.gnucap.general
Message-ID <[email protected]>
On Thursday 25 April 2013, Felix Salfelder wrote:
> On Thu, Apr 25, 2013 at 08:03:20PM -0400, al davis wrote:
> > > didn't work for me.
> >
> > 
> >
> > What didn't work?
> 
>g++ -DUNIX -O2 -DNDEBUG -I. -I../include -I../../include -W mg_main.o mg_error.o mg_in.o mg_out_h.o mg_out_dump.o mg_out_common.o mg_out_dev.o mg_out_lib.o mg_out_model.o 
mg_out_root.o -o gnucap-modelgen -lgnucap  -rdynamic -L../../lib/O
>../../lib/O/libgnucap.so: undefined reference to `dlerror'
>../../lib/O/libgnucap.so: undefined reference to `dlopen'
>../../lib/O/libgnucap.so: undefined reference to `dlclose'
>collect2: error: ld returned 1 exit status
>make[2]: *** [gnucap-modelgen] Error 1
>make[2]: Leaving directory `/tmp/gnucap-2013-04-23/modelgen/O'
>make[1]: *** [default] Error 2
>make[1]: Leaving directory `/tmp/gnucap-2013-04-23/modelgen'
>make: *** [gnucap] Error 2

Try this ..

Bug in lib/configure.
Change this line.

diff -r26.138 configure
28c28
< echo "LIBS =  \\" >Make.libs
---
> echo "LIBS = -ldl \\" >Make.libs

Left out the library.

It got removed in a "Muntzing".

Although the error appeared when compiling "modelgen",
the actual error is in "lib".

The problem doesn't show on my system, apparently 
because of how the system libraries are organized.
Test it and let me know how it works.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.