o) Fix error when using funktion from shared libraries (dlopen, dlerror)

(see http://lists.freebsd.org/pipermail/freebsd-questions/2005-October/102547.html)

PR:		-
Submitted by:	"Rob" <spamrefuse@yahoo.com>
This commit is contained in:
Lars Koeller 2005-10-29 21:09:02 +00:00
parent 88a14b6db0
commit 4541402f83
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=146702
2 changed files with 13 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= grace
PORTVERSION= 5.1.18
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= math print
#
MASTER_SITES= ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/ \

12
math/grace/files/patch-ag Normal file
View File

@ -0,0 +1,12 @@
--- src/dlmodule.c.orig 3 Jul 2004 20:47:45 -0000
+++ src/dlmodule.c 27 Oct 2005 11:08:30 -0000
@@ -89,6 +89,9 @@
return RETURN_FAILURE;
}
+ /* clear error indicator */
+ dlerror();
+
newkey.data = dlsym(handle, dl_function);
if ((error = (char *) dlerror()) != NULL) {
errmsg(error);