kdevelop 0.4 on SuSE 6.1 - configure problems

Heiko Nardmann h.nardmann at secunet.de
Wed Jul 21 09:01:47 BST 1999


Hi!

I have tried to install kdevelop 0.4 on my SuSE 6.1 system.
After unpacking the tar.gz file I have done the following:

./configure --prefix=/usr/opt/kdevelop-0.4 --enable-static
--enable-shared

Both shared and static libraries shall be built and the whole thing
shall
be installed under /usr/opt/kdevelop-0.4.

The configure run results in the following output:

loading cache ./config.cache
checking for extra includes... no
checking for extra libs... no
configure: warning: ***************************************************
configure: warning: ---KDevelop is alpha!. It may not even compile.---
configure: warning: -------------Use at your own risk----------------- 
configure: warning: ***************************************************
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a C-Compiler... 
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for a C++-Compiler... 
checking for g++... g++
checking whether the C++ compiler (g++  -s) works... yes
checking whether the C++ compiler (g++  -s) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking how to run the C++ preprocessor... g++ -E
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for ld used by GCC... /usr/i486-linux/bin/ld
checking if the linker (/usr/i486-linux/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking command to parse /usr/bin/nm -B output... yes
checking for _ prefix in compiled symbols... (cached) no
checking whether ln -s works... yes
checking for object suffix... o
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.lo... yes
checking if g++ supports -fno-rtti -fno-exceptions ... yes
checking if g++ static flag -static works... -static
checking if the linker (/usr/i486-linux/bin/ld) is GNU ld... yes
checking whether the linker (/usr/i486-linux/bin/ld) supports shared
libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/i486-linux/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
checking for dlopen... no
checking for dlopen in -ldl... no
checking for dld_link in -ldld... no
checking for shl_load... no
checking for shl_load in -ldld... no
creating libtool
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for libz... -lz
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for libpng... -lpng -lz -lm
checking for main in -lcompat... no
checking for main in -lcrypt... yes
checking for the third argument of getsockname... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for killpg in -lucb... no
checking for Qt... configure: error: Qt (>= 1.42 and < 2.0) (libraries)
not found. Please check your installation!

Two things have to be mentioned here:
1) Although I said that shared libraries have to be built the check says
that no shared
   libraries should be built.
   I "fixed" this by modifying the configure file.
2) The error in finding the Qt installation. Here is the config.log file
saying what has gone
   wrong here:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:558: checking for extra includes
configure:587: checking for extra libs
configure:660: checking for a BSD compatible install
configure:716: checking whether build environment is sane
configure:773: checking whether make sets ${MAKE}
configure:819: checking for working aclocal
configure:832: checking for working autoconf
configure:845: checking for working automake
configure:858: checking for working autoheader
configure:871: checking for working makeinfo
configure:919: checking for a C-Compiler
configure:925: checking for gcc
configure:1031: checking whether the C compiler (gcc  ) works
configure:1047: gcc -o conftest    conftest.c  1>&5
configure:1073: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:1078: checking whether we are using GNU C
configure:1087: gcc -E conftest.c
configure:1152: checking how to run the C preprocessor
configure:1173: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1214: checking for a C++-Compiler
configure:1220: checking for g++
configure:1336: checking whether the C++ compiler (g++  -s) works
configure:1352: g++ -o conftest   -s conftest.C  1>&5
configure:1378: checking whether the C++ compiler (g++  -s) is a
cross-compiler
configure:1383: checking whether we are using GNU C++
configure:1392: g++ -E conftest.C
configure:1488: checking how to run the C++ preprocessor
configure:1507: g++ -E  conftest.C >/dev/null 2>conftest.out
configure:1540: checking for flex
configure:1573: checking for flex
configure:1607: checking for yywrap in -lfl
configure:1626: gcc -o conftest -O2 -Wall  -s conftest.c -lfl   1>&5
configure:1649: checking lex output file root
configure:1670: checking whether yytext is a pointer
configure:1689: gcc -o conftest -O2 -Wall  -s conftest.c  -lfl 1>&5
lex.yy.c:948: warning: `yyunput' defined but not used
configure:1771: checking host system type
configure:1792: checking build system type
configure:1812: checking for ranlib
configure:1851: checking for ld used by GCC
configure:1914: checking if the linker (/usr/i486-linux/bin/ld) is GNU
ld
GNU ld version 2.9.1 (with BFD 2.9.1.0.22)
configure:1930: checking for BSD-compatible nm
configure:1968: checking command to parse /usr/bin/nm -B output
configure:2028: gcc -c -O2 -Wall  conftest.c 1>&5
conftest.c: In function `main':
conftest.c:9: warning: statement with no effect
configure:2032: /usr/bin/nm -B conftest.o | sed -n -e 's/^.* [ABCDGISTW]
*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \1/p' > conftest.nm
configure:2084: gcc -o conftest -O2 -Wall  -s conftest.c conftestm.o
1>&5
conftest.c:5: warning: `main' is usually a function
configure:2130: checking for _ prefix in compiled symbols
configure:2168: checking whether ln -s works
ltconfig:601: checking for object suffix
ltconfig:602: g++ -c -O2 -Wall  conftest.c 1>&5
ltconfig:732: checking if g++ PIC flag -fPIC works
ltconfig:733: g++ -c -O2 -Wall -fPIC -DPIC  conftest.c 1>&5
ltconfig:785: checking if g++ supports -c -o file.o
ltconfig:786: g++ -c -O2 -Wall -o out/conftest2.o  conftest.c 1>&5
ltconfig:818: checking if g++ supports -c -o file.lo
ltconfig:819: g++ -c -O2 -Wall -c -o conftest.lo  conftest.c 1>&5
ltconfig:870: checking if g++ supports -fno-rtti -fno-exceptions
ltconfig:871: g++ -c -O2 -Wall -fno-rtti -fno-exceptions -c conftest.c 
conftest.c 1>&5
ltconfig:914: checking if g++ static flag -static works
ltconfig:915: g++ -o conftest -O2 -Wall   -static conftest.c  1>&5
GNU ld version 2.9.1 (with BFD 2.9.1.0.22)
ltconfig:1516: checking if global_symbol_pipe works
ltconfig:1517: g++ -c -O2 -Wall  conftest.c 1>&5
ltconfig:1520: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ 
]\([ABCDGISTW]\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' >
conftest.nm"
ltconfig:1572: g++ -o conftest -O2 -Wall -fno-builtin -fno-rtti
-fno-exceptions   conftest.c conftstm.o 1>&5
ltconfig:2072: checking for dlopen
ltconfig:2099: g++ -o conftest -O2 -Wall -fno-builtin -fno-rtti
-fno-exceptions   conftest.c  1>&5
/home/nardmann/tmp/cc2ZK0lc.o: In function `main':
/home/nardmann/tmp/cc2ZK0lc.o(.text+0x4): undefined reference to
`dlopen(void)'
collect2: ld returned 1 exit status
ltconfig: failed program was:
#line 2077 "ltconfig"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dlopen();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
dlopen();
#endif

; return 0; }
ltconfig:2117: checking for dlopen in -ldl
ltconfig:2135: g++ -o conftest -O2 -Wall -fno-builtin -fno-rtti
-fno-exceptions   conftest.c -ldl   1>&5
/home/nardmann/tmp/ccevNxVs.o: In function `main':
/home/nardmann/tmp/ccevNxVs.o(.text+0x4): undefined reference to
`dlopen(void)'
collect2: ld returned 1 exit status
ltconfig: failed program was:
#line 2125 "ltconfig"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dlopen();

int main() {
dlopen()
; return 0; }
ltconfig:2154: checking for dld_link in -ldld
ltconfig:2172: g++ -o conftest -O2 -Wall -fno-builtin -fno-rtti
-fno-exceptions   conftest.c -ldld   1>&5
/usr/i486-linux/bin/ld: cannot open -ldld: No such file or directory
collect2: ld returned 1 exit status
ltconfig: failed program was:
#line 2162 "ltconfig"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dld_link();

int main() {
dld_link()
; return 0; }
ltconfig:2191: checking for shl_load
ltconfig:2218: g++ -o conftest -O2 -Wall -fno-builtin -fno-rtti
-fno-exceptions   conftest.c  1>&5
/home/nardmann/tmp/ccvSa5qP.o: In function `main':
/home/nardmann/tmp/ccvSa5qP.o(.text+0x4): undefined reference to
`shl_load(void)'
collect2: ld returned 1 exit status
ltconfig: failed program was:
#line 2196 "ltconfig"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char shl_load();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
shl_load();
#endif

; return 0; }
ltconfig:2236: checking for shl_load in -ldld
ltconfig:2255: g++ -o conftest -O2 -Wall -fno-builtin -fno-rtti
-fno-exceptions   conftest.c -ldld   1>&5
/usr/i486-linux/bin/ld: cannot open -ldld: No such file or directory
collect2: ld returned 1 exit status
ltconfig: failed program was:
#line 2244 "ltconfig"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char shl_load();

int main() {
shl_load()
; return 0; }
configure:2448: checking whether NLS is requested
configure:2476: checking for msgfmt
configure:2510: checking for gmsgfmt
configure:2555: checking for xgettext
configure:2631: checking for libz
configure:2657: gcc -o conftest -O2 -Wall   -s conftest.c  -lz  1>&5
configure:2684: checking for X
configure:2941: checking for libpng
configure:2971: gcc -o conftest -O2 -Wall  -I/usr/X11R6/include  -s
conftest.c   -L/usr/X11R6/lib -lpng -lz -lm -lX11  1>&5
configure:3009: checking for main in -lcompat
configure:3024: gcc -o conftest -O2 -Wall  -s conftest.c -lcompat   1>&5
/usr/i486-linux/bin/ld: cannot open -lcompat: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3017 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3045: checking for main in -lcrypt
configure:3060: gcc -o conftest -O2 -Wall  -s conftest.c -lcrypt   1>&5
configure:3081: checking for the third argument of getsockname
configure:3106: g++ -c -O2 -Wall  conftest.C 1>&5
configure:3170: checking for dnet_ntoa in -ldnet
configure:3189: gcc -o conftest -O2 -Wall  -s conftest.c -ldnet   1>&5
/usr/i486-linux/bin/ld: cannot open -ldnet: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3178 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
configure:3211: checking for dnet_ntoa in -ldnet_stub
configure:3230: gcc -o conftest -O2 -Wall  -s conftest.c -ldnet_stub  
1>&5
/usr/i486-linux/bin/ld: cannot open -ldnet_stub: No such file or
directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3219 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
configure:3252: checking for inet_ntoa
configure:3280: gcc -o conftest -O2 -Wall  -s conftest.c  1>&5
configure:3342: checking for connect
configure:3370: gcc -o conftest -O2 -Wall  -s conftest.c  1>&5
configure:3433: checking for remove
configure:3461: gcc -o conftest -O2 -Wall  -s conftest.c  1>&5
configure:3525: checking for shmat
configure:3553: gcc -o conftest -O2 -Wall  -s conftest.c  1>&5
configure:3619: checking for killpg in -lucb
configure:3638: gcc -o conftest -O2 -Wall  -s conftest.c -lucb   1>&5
/usr/i486-linux/bin/ld: cannot open -lucb: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3627 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char killpg();

int main() {
killpg()
; return 0; }
configure:3718: checking for Qt
configure:3828: g++ -o conftest -O2 -Wall -I/usr/lib/qt/include 
-I/usr/X11R6/include  -L/usr/lib/qt/lib  -L/usr/X11R6/lib conftest.C 
-lqt -lXext -lX11  1>&5
conftest.C:4: qobjcoll.h: No such file or directory
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qobjcoll.h>
#if ! (QT_VERSION >= 142 && QT_VERSION < 200)
#error 1
#endif

int main() {
    return 0;
}

---------------------------------------------------------------------------------
On my SuSE 6.1 system Qt 1.44 is installed. So I wonder what this file
qobjcoll.h is?!

"Fix": after commenting this line configure runs fine.

-- 
Ciao ... Heiko Nardmann (Dipl.-Ing.), h.nardmann at secunet.de, Software
Development
secunet (www.secunet.de), Security Networks GmbH - Sicherheit in
Netzwerken
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50



More information about the KDevelop mailing list