bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] undefined reference to dlclose


From: Jay Foad
Subject: [Bug-apl] undefined reference to dlclose
Date: Sat, 28 Dec 2013 13:41:23 +0000

When I try to build on Ubuntu 13.10, I get:

apl-NativeFunction.o: In function `NativeFunction::~NativeFunction()':
/home/jay/svn/gnuapl/trunk/src/NativeFunction.cc:84: undefined
reference to `dlclose'

... followed by a load more undefined references to dlsym, dlopen etc.
This patch fixes it for me:

Index: configure.ac
===================================================================
--- configure.ac (revision 70)
+++ configure.ac (working copy)
@@ -50,6 +50,7 @@
 AC_CHECK_LIB([rt], [shm_open])
 AC_CHECK_LIB([pthread], [sem_init])
 AC_CHECK_LIB([ncurses], [setupterm])
+AC_CHECK_LIB([dl], [dlopen])

 # enable readline support if libreadline is present and the user
 # has not disabled it.

Note that this is in addition to the problems with linking against
libreadline, which Elias reported in another thread.

Thanks,
Jay.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]