Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 4.2.0-pre-3; HP-UX



Peter wrote:
> > Warning 942: "module.c", line 429 # Types 'void *' and 'int' are not
> >     assignment-compatible.
> >             ret = dlopen(unmeta(buf), RTLD_LAZY | RTLD_GLOBAL);
> >             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Looks like a missing header.

This led me to the problem. It was including dl.h (which contains all
the shl_* functions) instead of dlfcn.h.

With the following patch, the modules now all load and seem to work.

It still isn't 100% though judging by make check.
./A01grammar.ztst: starting.
sh[2]: 14893 Bus error(coredump)
and A04 hangs.

but I'm off home now so that (and the signals stuff) will have to wait.

Oliver

Index: module.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/module.c,v
retrieving revision 1.12
diff -u -r1.12 module.c
--- module.c    29 Oct 2003 19:17:30 -0000      1.12
+++ module.c    10 Mar 2004 17:55:12 -0000
@@ -349,7 +349,7 @@
 #else

 #ifdef HAVE_DLFCN_H
-# if defined(HAVE_DL_H) && defined(__hpux)
+# if defined(HAVE_DL_H) && defined(HPUXDYNAMIC)
 #  include <dl.h>
 # else
 #  include <dlfcn.h>



Messages sorted by: Reverse Date, Date, Thread, Author