So I am trying to build a pkgsrc(port) and am testing in
Solaris. /usr/pkg/include/ltdl.h is in the right place but I get the libltdl support is temporarily reuquired error. On further inspection I notice in config.log it actually did include the -I/usr/pkg/include CFLAG.In fact when it tried to compile to test for the existence of <ltdl.h> it include the -I/usr/pkg/include into the command line and failed anyways. I extracted the testprogram configure created and I fed it the exact same command line and it seems to have worked for me. My config.log & the test program I extracted is available @ http://dolemite.wuli.nu/bugreports/gift/config.log. I tried to compile the test program with gcc -O -I/usr/pkg/include -Wall foo2.c. What should I do?
Logged In: YES
user_id=183910
I also just tried it on a completely different machine running freebsd and had the exact same problem(replace pkg with local).
Logged In: YES
user_id=183910
Actually I suppose it is a little different I set the CFLAGS to /CPPFLAGS/LDFLAGS =-I/usr/local/include -L/usr/local/lib and this time i have a -lltdl not found error. I have uploaded this config.log also it is config.log2.
Logged In: YES
user_id=2525
I really don't have the time to look now, although I would
suggest that you explore the possibility that our
configure.ac tests may be incomplete or broken. If you
can't find the problem yourself and patch, I will try to
look closer in a few days.
Logged In: YES
user_id=657026
LDFLAGS is not passed to the linker. If you look at
config.log2 you notice the -L/usr/local/lib doesn't get
passed in. You probably need to set LIBS="$LIBS
-L/usr/local/lib". A proper fix would be to add a
"--with-ltdl=/foo/dir" to configure.
Logged In: YES
user_id=183910
./configure --with-ltdl didn't work. Here the config.log is availiable at http://dolemite.wuli.nu/bugreports/gift/config.log3
Logged In: YES
user_id=657026
I didn't explain well. There is no --with-ltdl option
accepted by configure (yet). Overriding CFLAGS/CPPFLAGS was
a good start, but you probably also need to override LIBS.
So, CPPFLAGS=-I/usr/local/include
CFLAGS=-I/usr/local/include LIBS=-L/usr/local/lib
./configure will hopefully make -lltdl work. Alternatively,
you could hardcode those values in configure.ac, if the
variables don't get passed down to the check for ltdl for
some reason.
The --with-ltdl is a hypothetical option that would work
better then overriding those environment variables. I was
hoping you wouldn't mind contributing such an option, if it
made your compiling experience less painful. It's kind of
weird that your compiler doesn't check /usr/local though; is
that normal for your system?
Logged In: YES
user_id=183910
I can write a --with-ltdl option, but it still wont fix
the problem I was originally having. It will only fix the FreeBSD problem.
Logged In: YES
user_id=657026
It's the same problem, in the original config.log you posted
the problem is the preprocessor doesn't find ltdl.h. So, you
only need --with-ltdl to work so passing
--with-ltdl=/usr/pkg adds -I/usr/pkg/include to CFLAGS and
CPPFLAGS, and adds -L/usr/pkg/lib to LIBS. Then you can add
--with-ltdl=/usr/pkg as one of the arguments to configure in
port system, I'm guessing?
Logged In: YES
user_id=103124
I too have a the same problem on FreeBSD 4.9-STABLE. I have been
unable to resolve it, however I am attempting to build the same port
on a different FreeBSD 4.9-STABLE box and compair the results.
Logged In: YES
user_id=657026
Please look at how some of the other tests in configure.ac
or the m4 files (in m4/) work when looking for libraries in
non-standard paths. You will need to do something similar
with CPPFLAGS and possibly LIBS env vars w.r.t. ltdl, and
you need to re-run autoconf or possibly other autotools in
order to build afterwards. Please also consider submiting a
patch so others can benefit.
Logged In: YES
user_id=903985
ok what the hell is "ltdl" because i cannot find it when i
google it sourceforge it or linux.org.
can someone tell me please where to find this lib because
its driving me mad..
is it possable profile the all the files needed?!