You are not logged in.

1

Monday, February 9th 2004, 2:12pm

qt 3.2.3 compilation problem

I want to compile qt-3.2.3 for kde 3.2 on Mandrake 9.2, but during compilation of qt following error occurred:

cd qtconfig && /usr/bin/gmake -f Makefile
gmake[3]: Entering directory `/usr/lib/qt3/tools/qtconfig'
g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib/qt3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I. -I../../include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/mainwindow.o mainwindow.cpp
mainwindow.cpp: In constructor `MainWindow::MainWindow()':
mainwindow.cpp:298: error: cannot declare member function `QApplication::globalStrut' within `MainWindow'
mainwindow.cpp:298: error: no match for call to `(QSize) ()'
mainwindow.cpp:298: error: assignment (not initialization) in declaration
gmake[3]: *** [.obj/release-shared-mt/mainwindow.o] Error 1
gmake[3]: Leaving directory `/usr/lib/qt3/tools/qtconfig'
gmake[2]: *** [sub-qtconfig] Error 2
gmake[2]: Leaving directory `/usr/lib/qt3/tools'
gmake[1]: *** [sub-tools] Error 2
gmake[1]: Leaving directory `/usr/lib/qt3'
gmake: *** [init] Error 2

So what to do?

2

Wednesday, February 11th 2004, 2:39pm

Re: qt 3.2.3 compilation problem

Ok, I solved above problem with simple solution (I commented the line mentioned in error message)
and then everything compiled ok.

Then another problem appeared. After compiling arts and installing it, I succesfully compiled kdelibs, but
when I "make install" this error occures:

Making install in libltdl
make[1]: Entering directory `/usr/local/kde32/src/kdelibs-3.2.0/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)
ltdl.c:2122: warning: implicit declaration of function `isalnum'
ltdl.c:2140: error: syntax error before ')' token
ltdl.c:2143: error: syntax 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
make[1]: *** [ltdl.lo] Error 1
make[1]: Leaving directory `/usr/local/kde32/src/kdelibs-3.2.0/libltdl'
make: *** [install-recursive] Error 1

I'm not a programer, but I thing some file (header) is not included in ltdl.c
How to overcome this problem?

Thank you.

3

Monday, February 16th 2004, 4:20pm

got the same pb (the second pb you mentionned)
don't have time to figure it out now

4

Monday, February 16th 2004, 6:43pm

You have to install autoconf-2.5 on Mandrake, then run "cd kde/kdelibs;make garchive clean" before retrying.