Version: (using KDE Devel) Installed from: Compiled sources Compiler: GCC 3.3.1 OS: Linux I've just tried to build latest KDE beta with konstruct by following these steps: 1) download http://developer.kde.org/build/konstruct/unstable/konstruct-unstable.tar.bz2 and untar 2) cd to meta/kde/ 3) make install After a couple of hours of compilation I get this error: Making install in libltdl make[4]: Entering directory `/home/olo/misc/soft/KDE/konstruct/kde/kdelibs/work/kdelibs-3.1.93/libltdl' /bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -DQT_THREAD_SUPPORT -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -D_REENTRANT -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -L/home/olo/kde3.2-beta1/lib -L/usr/X11R6/lib -O2 -pipe -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -L/home/olo/kde3.2-beta1/lib -L/usr/X11R6/lib -O2 -pipe -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -L/home/olo/kde3.2-beta1/lib -L/usr/X11R6/lib -O2 -pipe -Wformat-security -Wmissing-format-attribute -c -o ltdl.lo `test -f 'ltdl.c' || echo './'`ltdl.c ltdl.c:183: error: `LTDL_OBJDIR' undeclared here (not in a function) ltdl.c:269: error: `malloc' undeclared here (not in a function) ltdl.c:271: error: `free' undeclared here (not in a function) ltdl.c: In function `rpl_strdup': ltdl.c:368: warning: implicit declaration of function `strlen' ltdl.c:371: warning: implicit declaration of function `strcpy' ltdl.c: In function `rpl_realloc': ltdl.c:516: warning: implicit declaration of function `realloc' ltdl.c: In function `presym_init': ltdl.c:1108: warning: unused parameter `loader_data' ltdl.c: In function `presym_exit': ltdl.c:1149: warning: unused parameter `loader_data' ltdl.c: In function `presym_open': ltdl.c:1195: warning: unused parameter `loader_data' ltdl.c: In function `presym_close': ltdl.c:1241: warning: unused parameter `loader_data' ltdl.c: In function `presym_sym': ltdl.c:1251: warning: unused parameter `loader_data' ltdl.c: In function `lt_dlpreload': ltdl.c:1352: warning: unused variable `errormsg' ltdl.c: In function `lt_dlexit': ltdl.c:1382: warning: unused variable `errormsg' ltdl.c: In function `find_module': ltdl.c:1569: warning: implicit declaration of function `sprintf' ltdl.c:1599: warning: implicit declaration of function `strcat' ltdl.c: In function `find_file': ltdl.c:1698: warning: assignment discards qualifiers from pointer target type ltdl.c:1732: warning: implicit declaration of function `strncpy' ltdl.c:1748: error: `FILE' undeclared (first use in this function) ltdl.c:1748: error: (Each undeclared identifier is reported only once ltdl.c:1748: error: for each function it appears in.) ltdl.c:1748: error: `file' undeclared (first use in this function) ltdl.c:1748: warning: implicit declaration of function `fopen' ltdl.c: In function `load_deplibs': ltdl.c:1783: warning: unused parameter `deplibs'
I received the same error - Mandrake 9.1 using konstruct-20031104.tar.bz2 in the meta/kde directory
that sounds a lot like the configure was regenerated. Can you check the md5sum of configure? it should be cb350ebb40c066880dd9a7285bb3dc4c configure
Konstruct applies a small patch to configure so the checksum will not match (configure+patch md5sum: 182c78c0e34f1482ae45b072c694eeb0). But it doesn't regenerate the configure, so the change/error must be in the kdelibs tarball.
sorry Stephan, but it's only reported by konstruct users and the error is obvious: the libtool checks didn't run. So whatever you do with the tar ball either screws the timestamps or simply fucks it up.
Remove the "PATCHFILES" line from kde/kdelibs and try again after running "make garchive clean" within kde/kdelibs. I bet the error is the same with cb350ebb40c066880dd9a7285bb3dc4c configure.
Ok, I'll try. BTW, sorry, I forgot my system specs. It's Mandrake 9.2, glibc-2.3.2, libstdc++5-3.3.1.
After removing the "PATCHFILES = do-not-fail-fast-malloc.diff" from kde/kdelibs/Makefile, running "make garchive clean" in kde/kdelibs and going to meta/kde to "make install" I still get the same error: Making install in libltdl make[4]: Entering directory `/home/olo/misc/soft/KDE/konstruct/kde/kdelibs/work/kdelibs-3.1.93/libltdl' /bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -DQT_THREAD_SUPPORT -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -D_REENTRANT -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -L/home/olo/kde3.2-beta1/lib -L/usr/X11R6/lib -O2 -pipe -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -L/home/olo/kde3.2-beta1/lib -L/usr/X11R6/lib -O2 -pipe -I/home/olo/kde3.2-beta1/include -I/usr/X11R6/include -L/home/olo/kde3.2-beta1/lib -L/usr/X11R6/lib -O2 -pipe -Wformat-security -Wmissing-format-attribute -c -o ltdl.lo `test -f 'ltdl.c' || echo './'`ltdl.c ltdl.c:183: error: `LTDL_OBJDIR' undeclared here (not in a function) ltdl.c:269: error: `malloc' undeclared here (not in a function) ltdl.c:271: error: `free' undeclared here (not in a function) ltdl.c: In function `rpl_strdup': ltdl.c:368: warning: implicit declaration of function `strlen' ltdl.c:371: warning: implicit declaration of function `strcpy' ltdl.c: In function `rpl_realloc': ltdl.c:516: warning: implicit declaration of function `realloc' ltdl.c: In function `presym_init': ltdl.c:1108: warning: unused parameter `loader_data' ltdl.c: In function `presym_exit': ltdl.c:1149: warning: unused parameter `loader_data' ltdl.c: In function `presym_open': ltdl.c:1195: warning: unused parameter `loader_data' ltdl.c: In function `presym_close': ltdl.c:1241: warning: unused parameter `loader_data' ltdl.c: In function `presym_sym': ltdl.c:1251: warning: unused parameter `loader_data' ltdl.c: In function `lt_dlpreload': ltdl.c:1352: warning: unused variable `errormsg' ltdl.c: In function `lt_dlexit': ltdl.c:1382: warning: unused variable `errormsg' ltdl.c: In function `find_module': ltdl.c:1569: warning: implicit declaration of function `sprintf'
The MD5SUM of configure is now the same as discussed: cb350ebb40c066880dd9a7285bb3dc4c konstruct/kde/kdelibs/work/kdelibs-3.1.93/configure
please go into that kdelibs-3.1.93 directory and call ./configure without any arguments and then run make
My checksum was the 182c78c0e34f1482ae45b072c694eeb0 listed above. I commented out the PATCHFILES line and reran make. The checksum is cb350ebb40c066880dd9a7285bb3dc4c. The error just occured again. I am wondering if I am just missing a development library somewhere.
sorry Stephan, but it's only reported by Mandrake users and the error is obviously not caused by Konstruct and likely new after the Alphas.
ok, it seems noone cares. If someone can tell me the answer to #9, let me know.
Yes, we are still there but we don't have that much spare time. Please forgive us. configure in kde/kdelibs/work/kdelibs-3.1.93 requires QT 3.2: checking for Qt... configure: error: Qt (>= Qt 3.2) (library qt-mt) not found. Please check your installation! For more details about this problem, look at the end of config.log. Make sure that you have compiled Qt with thread support! While I have 3.1: libqt3-3.1.2-14.1.92mdk libqt3-devel-3.1.2-14.1.92mdk Is there a way to cimpile it with QT 3.1?
> Is there a way to cimpile it with QT 3.1? No. Try with "--with-qt-dir=<path_to_Qt_3.2>" configure parameter where you insert the path where Konstruct has installed the Qt 3.2 to already.
It also complained about aRts: checking for aRts-1.1... ./configure: line 1: cd: /usr/local/kde: No such file or directory configure: error: aRts 1.1 not installed in the same prefix as KDE! Please reinstall aRts in the same prefix as KDE, different prefixes are not supported right now. I've supplied --without-arts to configure.
Ok, I've finally been able to proceed with compilation: [~/misc/soft/KDE/konstruct/kde/kdelibs/work/kdelibs-3.1.93 15:25:43]$make clean; ./configure --with-qt-dir=/home/olo/misc/soft/KDE/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.2/ --without-arts && make && echo OK Stops at the same place: Making all in libltdl make[2]: Entering directory `/home/olo/misc/soft/KDE/konstruct/kde/kdelibs/work/kdelibs-3.1.93/libltdl' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -DQT_THREAD_SUPPORT -D_REENTRANT -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-format-attribute -c -o ltdl.lo `test -f 'ltdl.c' || echo './'`ltdl.c ltdl.c:183: error: `LTDL_OBJDIR' undeclared here (not in a function) ltdl.c:269: error: `malloc' undeclared here (not in a function) ltdl.c:271: error: `free' undeclared here (not in a function) ltdl.c: In function `rpl_strdup': ltdl.c:368: warning: implicit declaration of function `strlen' ltdl.c:371: warning: implicit declaration of function `strcpy' ltdl.c: In function `rpl_realloc': ltdl.c:516: warning: implicit declaration of function `realloc' ltdl.c: In function `presym_init': ltdl.c:1108: warning: unused parameter `loader_data' ltdl.c: In function `presym_exit': ltdl.c:1149: warning: unused parameter `loader_data' ltdl.c: In function `presym_open': ltdl.c:1195: warning: unused parameter `loader_data' ltdl.c: In function `presym_close': ltdl.c:1241: warning: unused parameter `loader_data' ltdl.c: In function `presym_sym': ltdl.c:1251: warning: unused parameter `loader_data' ltdl.c: In function `lt_dlpreload': ltdl.c:1352: warning: unused variable `errormsg' ltdl.c: In function `lt_dlexit': ltdl.c:1382: warning: unused variable `errormsg' ltdl.c: In function `find_module': ltdl.c:1569: warning: implicit declaration of function `sprintf' ltdl.c:1599: warning: implicit declaration of function `strcat' ltdl.c: In function `find_file': ltdl.c:1698: warning: assignment discards qualifiers from pointer target type ltdl.c:1732: warning: implicit declaration of function `strncpy' ltdl.c:1748: error: `FILE' undeclared (first use in this function) ltdl.c:1748: error: (Each undeclared identifier is reported only once ltdl.c:1748: error: for each function it appears in.) ltdl.c:1748: error: `file' undeclared (first use in this function) ltdl.c:1748: warning: implicit declaration of function `fopen' ltdl.c: In function `load_deplibs': ltdl.c:1783: warning: unused parameter `deplibs' ltdl.c: In function `lt_dlopen': ltdl.c:2043: warning: implicit declaration of function `memset' ltdl.c:2072: warning: assignment discards qualifiers from pointer target type ltdl.c:2097: error: `FILE' undeclared (first use in this function) ltdl.c:2097: error: `file' undeclared (first use in this function) ...
Reopening.
I've got this error too. My linux is Mandrake 9.1, my gcc is 3.2.2, version of my glibc is 3.2.1. I'm using QT 3.2.2 (compiled by hand), installed in /usr/local/qt. I don't have any konstruct installed on my system.
Testing as requested by the Stephans: On Mandrake 9.1, gcc-3.3 (yes I upgraded it, should make no difference though), and WITHOUT using konstruct: if I simply get kdelibs-3.1.93 from ftp.kde.org and configure + make, it goes just fine. If someone sends me the modified configure, I could test with it...
I use Mandrake 9.2. I got this error as well. I was able to get rid of it though. My guess is that the issue is with autoconf versions. Here is a workaround that may or may not work. By default, mandrake installs only autoconf-2.13. You should also install autoconf-2.5. The autoconf is actually a perl script which decides which version of autoconf to choose based on various things. Read the header of autoconf to see it. Once. I installed BOTH autoconf versions; I was able to get rid of it. Osho
I'm seeing the same problem compiling on my Mandrake 9.1 system. I have the following relevant (I believe) RPMs installed: # rpm -qa |grep ltdl libltdl3-1.4.3-1mdk libltdl3-devel-1.4.3-1mdk # rpm -qa |grep autoconf autoconf2.5-2.57-3mdk autoconf-2.13-17mdk The configure output just says "checking if libltdl should be compiled... yes"
Created attachment 3191 [details] Output of "./configure" in kdelibs-3.1.93
Created attachment 3192 [details] Output of "make" in kdelibs-3.1.93 (with 2>&1)
OK, colour me *very* confused. I decided to actually poke further into the issue, and looked for the definition of the LTDL_OBJDIR symbol. I noticed that it's generated by autoconf. I then noticed that my config.h *and* config.h.in were both empty. I'm now not sure what caused my initial error that started this investigation, but I have a feeling that my later manual running of autoconf (as kinda implied by comment #20) nuked the config.h.in. I deleted the kdelibs-3.1.93 dir, unpacked the source again and built kdelibs with no error. NFI why I got the error in the first place! I can only assume that the difference was that in the first instance I didn't have autoconf2.5-2.57-3mdk installed. The second time I unpacked the source, it worked fine. So, if you're having this trouble on Mandrake, then install autoconf2.5-2.57-3mdk, delete the kdelibs-3.1.93 dir and unpack again. Then run configure and make and all should be well!
You really shouldn't need autoconf to build with konstruct. Something is weired there. Can you check if autoheader runs for you while you make? Stephan, your take again ;)
Not using konstruct, using "configure && make" in manually d/led source. Didn't need to run autoconf either - that was a total dead herring.
Suggestion in comment #24 worked for me too.
Stephan, what of "not using konstruct" is so difficult to understand? :-)
anyway
On the beta 2 I had the same problem with Mandrake 9.1. I tried the autoconf5 fix and it worked. To fix I used the following steps: delete kdelibs/work and kdelibs/cookies urpmi autoconf5 rerun make install from meta/kde
Well, Solaris 8, GCC 3.3.1, configure + gmake.. same problem. It's not just a Linux problem. I think doing a gmake distclean may have broken things.
Oops. Forgot to mention, this is kdelibs-3.2.0.
Having replaced kdelibs-3.2.0 with the tarball version thinks compiled again. However, this morning I had to restart the compile after a later item failed. The problem described in this bug report re-appeared.
To help those using Mandrake 9.2 like myself and to back up #20 and #30. I too had to install autoconf-2.5, however, that didn't seem to fix it. I noticed what was said in #30 and deleted kdelibs/work and kdelibs/cookies after that all was well.
Making install in libltdl make[4]: Entering directory `/home/osis/konstruct/kde/kdelibs/work/kdelibs-3.2.0/libltdl' /bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -DQT_THREAD_SUPPORT -I/home/osis/kde3.2/include -I/usr/X11R6/include -I/home/osis/kde3.2/include -I/usr/X11R6/include -I/home/osis/kde3.2/include -I/usr/X11R6/include -D_REENTRANT -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -I/home/osis/kde3.2/include -I/usr/X11R6/include -L/home/osis/kde3.2/lib -L/usr/X11R6/lib -O2 -pipe -I/home/osis/kde3.2/include -I/usr/X11R6/include -L/home/osis/kde3.2/lib -L/usr/X11R6/lib -O2 -pipe -I/home/osis/kde3.2/include -I/usr/X11R6/include -L/home/osis/kde3.2/lib -L/usr/X11R6/lib -O2 -pipe -Wformat-security -Wmissing-format-attribute -c -o ltdl.lo `test -f 'ltdl.c' || echo './'`ltdl.c ltdl.c:183: `LTDL_OBJDIR' undeclared here (not in a function) ltdl.c:269: `malloc' undeclared here (not in a function) ltdl.c:271: `free' undeclared here (not in a function) ltdl.c: In function `rpl_strdup': ltdl.c:368: warning: implicit declaration of function `strlen' ltdl.c:371: warning: implicit declaration of function `strcpy' ltdl.c: In function `rpl_realloc': ltdl.c:516: warning: implicit declaration of function `realloc' ltdl.c: In function `presym_init': ltdl.c:1108: warning: unused parameter `loader_data' ltdl.c: In function `presym_exit': ltdl.c:1149: warning: unused parameter `loader_data' ltdl.c: In function `presym_open': ltdl.c:1195: warning: unused parameter `loader_data' ltdl.c: In function `presym_close': ltdl.c:1241: warning: unused parameter `loader_data' ltdl.c: In function `presym_sym': ltdl.c:1251: warning: unused parameter `loader_data' ltdl.c: In function `lt_dlpreload': ltdl.c:1352: warning: unused variable `errormsg' ltdl.c: In function `lt_dlexit': ltdl.c:1382: warning: unused variable `errormsg' ltdl.c: In function `find_module': ltdl.c:1569: warning: implicit declaration of function `sprintf' ltdl.c:1599: warning: implicit declaration of function `strcat' ltdl.c: In function `find_file': ltdl.c:1698: warning: assignment discards qualifiers from pointer target type ltdl.c:1732: warning: implicit declaration of function `strncpy' ltdl.c:1748: `FILE' undeclared (first use in this function) ltdl.c:1748: (Each undeclared identifier is reported only once ltdl.c:1748: for each function it appears in.) ltdl.c:1748: `file' undeclared (first use in this function) ltdl.c:1748: warning: implicit declaration of function `fopen' ltdl.c: In function `load_deplibs': ltdl.c:1783: warning: unused parameter `deplibs' ltdl.c: In function `lt_dlopen': ltdl.c:2043: warning: implicit declaration of function `memset' ltdl.c:2072: warning: assignment discards qualifiers from pointer target type ltdl.c:2097: `FILE' undeclared (first use in this function) ltdl.c:2097: `file' undeclared (first use in this function) ltdl.c:2122: warning: implicit declaration of function `isalnum' ltdl.c:2140: parse error before ')' token ltdl.c:2143: parse error before ')' token ltdl.c:2180: warning: implicit declaration of function `fclose' ltdl.c:2187: warning: implicit declaration of function `feof' ltdl.c:2189: warning: implicit declaration of function `fgets' ltdl.c:2214: warning: implicit declaration of function `strncmp' ltdl.c:2257: warning: assignment discards qualifiers from pointer target type ltdl.c:2257: `NULL' undeclared (first use in this function) ltdl.c:2342: warning: implicit declaration of function `getenv' ltdl.c: At top level: ltdl.c:473: warning: `rpl_memcpy' defined but not used make[4]: *** [ltdl.lo] Error 1 make[4]: Leaving directory `/home/osis/konstruct/kde/kdelibs/work/kdelibs-3.2.0/libltdl' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/home/osis/konstruct/kde/kdelibs/work/kdelibs-3.2.0' make[2]: *** [install-work/kdelibs-3.2.0/Makefile] Error 2 make[2]: Leaving directory `/home/osis/konstruct/kde/kdelibs' make[1]: *** [dep-../../kde/kdelibs] Error 2 make[1]: Leaving directory `/home/osis/konstruct/kde/kdebase' make: *** [dep-../../kde/kdebase] Error 2 I'm trying to build kdelibs-3.2.0. I tried everything you said here. I deleted kdelibs/work, kdelibs/cookies, ran make buildclean after that make clean, installed autoconf-2.5 but nothing works! Mandrake 9.1, gcc 3.2.2
I'm on a RH7.3 system with self installed gcc-3.3.3 and autoconf 2.53. I am running into the exact same problem. I didn't have any problems building kdelibs on a debian (woody or knoppix). Here are my RH make error: Making all in libltdl make[2]: Entering directory `/opt/src/kdelibs-3.2.1/libltdl' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -DQT_THREAD_SUPPORT -D_REENTRANT -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -Wformat-security -Wmissing-format-attribute -c -o ltdl.lo `test -f 'ltdl.c' || echo './'`ltdl.c ltdl.c:183: error: `LTDL_OBJDIR' undeclared here (not in a function) ltdl.c:269: error: `malloc' undeclared here (not in a function) ltdl.c:271: error: `free' undeclared here (not in a function) ltdl.c: In function `rpl_strdup': ltdl.c:368: warning: implicit declaration of function `strlen' ltdl.c:371: warning: implicit declaration of function `strcpy' ltdl.c: In function `rpl_realloc': ltdl.c:516: warning: implicit declaration of function `realloc' ltdl.c: In function `presym_init': ltdl.c:1108: warning: unused parameter `loader_data' ltdl.c: In function `presym_exit': ltdl.c:1149: warning: unused parameter `loader_data' ltdl.c: In function `presym_open': ltdl.c:1195: warning: unused parameter `loader_data' ltdl.c: In function `presym_close': ltdl.c:1241: warning: unused parameter `loader_data' ltdl.c: In function `presym_sym': ltdl.c:1251: warning: unused parameter `loader_data' ltdl.c: In function `lt_dlpreload': ltdl.c:1352: warning: unused variable `errormsg' ltdl.c: In function `lt_dlexit': ltdl.c:1382: warning: unused variable `errormsg' ltdl.c: In function `find_module': ltdl.c:1569: warning: implicit declaration of function `sprintf' ltdl.c:1599: warning: implicit declaration of function `strcat' ltdl.c: In function `find_file': ltdl.c:1698: warning: assignment discards qualifiers from pointer target type ltdl.c:1732: warning: implicit declaration of function `strncpy' ltdl.c:1748: error: `FILE' undeclared (first use in this function) ltdl.c:1748: error: (Each undeclared identifier is reported only once ltdl.c:1748: error: for each function it appears in.) ltdl.c:1748: error: `file' undeclared (first use in this function) ltdl.c:1748: warning: implicit declaration of function `fopen' ltdl.c: In function `load_deplibs': ltdl.c:1783: warning: unused parameter `deplibs' ltdl.c: In function `lt_dlopen': ltdl.c:2043: warning: implicit declaration of function `memset' ltdl.c:2072: warning: assignment discards qualifiers from pointer target type ltdl.c:2097: error: `FILE' undeclared (first use in this function) ltdl.c:2097: error: `file' undeclared (first use in this function) ltdl.c:2122: warning: implicit declaration of function `isalnum' ltdl.c:2140: error: parse error before ')' token ltdl.c:2143: error: parse error before ')' token ltdl.c:2180: warning: implicit declaration of function `fclose' ltdl.c:2187: warning: implicit declaration of function `feof' ltdl.c:2189: warning: implicit declaration of function `fgets' ltdl.c:2214: warning: implicit declaration of function `strncmp' ltdl.c:2257: warning: assignment discards qualifiers from pointer target type ltdl.c:2257: error: `NULL' undeclared (first use in this function) ltdl.c:2342: warning: implicit declaration of function `getenv' ltdl.c: At top level: ltdl.c:473: warning: `rpl_memcpy' defined but not used distcc[16274] ERROR: compile on localhost failed make[2]: *** [ltdl.lo] Error 1 make[2]: Leaving directory `/opt/src/kdelibs-3.2.1/libltdl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/src/kdelibs-3.2.1' make: *** [all] Error 2
This problem can be solved by upgrading to autoconf 2.57 in redhat. My debian system used 2.59. RH 7.3 originally comes with 2.13 and 2.53. Autoconf 2.53 does not work.
*** Bug 78867 has been marked as a duplicate of this bug. ***
*** Bug 89403 has been marked as a duplicate of this bug. ***
I got the same problem with kdelibs-3.3.0 and an old SuSE 6.2 (updated with gcc 3.2 and glibc 2.1.2). config.h is empty but for two comment lines stating that it was generated by configure. I did nothing special except I ran configure several time to get the list of the missing libraries it required. I only ran make when configure told me I had installed all the dependencies and I could compile kdelibs. I suspect configure destroyed config.h.in at some point. The missing libraries when configure was first ran are: aspell, openSSL, libART, libxslt, CUPS. QT was installed but not found (had to provide --with-qt-dir). Frederic
I had this problem on KDE 3.4 and Mandrake 10, using konstruct, with autoconf 2.59 installed (or so it seemed), but managed to solve it. The problem was caused by a misinstallation of the autoheader utility (even though 2.59 autoheader was installed, the MDK system comes with a script that calls 2.13), that wipes config.h and config.h.in So, the first step to solve it is to ensure that when you call autoheader --version, the answer is 2.59 and not 2.13 (I wont recommend it, but wiping that damned script off the planet just feels so nice!) Next, go to konstruct/libs/arts/work/arts- Run: make clean ./configure --with-qt-dir=<QTDIR that you want> Now, check config.h and config.h.in, if they were blanked (they have only two comment lines), run: autoheader and finally "make". It worked for me at least.