[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: solution to dlopen() problems
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-10-30 19:05:11
[Download RAW message or body]

On Mardi 30 Octobre 2001 19:49, Kai Heitkamp wrote:
> On Dienstag, 30. Oktober 2001 18:22, Kai Heitkamp wrote:
> > I don't have the dlfcn.h on my system, where can I get the package
> 
> Sorry, I have the dlfcn.h in /usr/include, but configure don't find them !
> ( Checking for dlfcn.h... no )

Well you're a KDE developer (says your address), so you should be able
to debug it ;)
(I'm joking - autoconf/m4 is quite difficult! :)

Look at config.log, you should see what happens when it's looking for
dlfcn.h (including the error message). If that doesn't give enough info,
add debug output in the configure script (yay ;).
Configure tries to pre-process (not compile, not link nor run), a program
that only contains 
#include "confdefs.h"   (that's internal to configure, in a way)
#include <dlfcn.h>

Try compiling that (2nd line only) with cpp to see what it says....

Hmmmmmmmmm it seems to me that the configure script checks for the value of CPP
_after_ doing the above check !?

Maybe the fix is something like
AC_REQUIRE([AC_PROG_CPP])dnl
added before
AC_REQUIRE([AC_PROG_CC])dnl
in libltdl/ltdl.m4 ?
Just a wild guess, needs testing (in particular, check where CPP is
assigned and used in the resulting configure script. Looks it's used before
being assigned, here).

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE 3.0: Konquering the Desktops
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic