Click to See Complete Forum and Search --> : compile Problems


techniq
09-03-2003, 12:43 AM
I've recently tried switching distros from Suse 8.2 to Mandrake 9.2rc1. One thing that is keeping me from staying booted into Mandrake is the ability to compile kdecvs (I try to help out alot with bug reporting, as I'm not much of a coder right now). I was able to get it up and going fine on Suse 8.2 (still compile daily snapshots a few times a week), but I cannot get it to work on Mandrake. I've tried to make sure I have the enviroments setup identically, but I think I'm still messing up somewhere. Here is the output I get during compile of kdelibs:


make all-recursive
make[1]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826'
Making all in dcop
make[2]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop'
make all-recursive
make[3]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop'
Making all in KDE-ICE
make[4]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop/KDE-ICE'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop/KDE-ICE'
Making all in .
make[4]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop'
make[4]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop'
Making all in dcopidl
make[4]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop/dcopidl'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop/dcopidl'
Making all in dcopidl2cpp
make[4]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop/dcopidl2cpp'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop/dcopidl2cpp'
Making all in client
make[4]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop/client'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop/client'
make[3]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop'
make[2]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop'
Making all in libltdl
make[2]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/libltdl'
-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:2098: warning: ISO C89 forbids mixed declarations and code
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[2]: *** [ltdl.lo] Error 1
make[2]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/libltdl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826'
make: *** [all] Error 2
make all-recursive
make[1]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826'
Making all in dcop
make[2]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop'
make all-recursive
make[3]: Entering directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/dcop'
Making all in KDE-ICE

...
JUMPING DOWN THE THE BOTTOM FEW LINES
...

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:2098: warning: ISO C89 forbids mixed declarations and code
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[2]: *** [ltdl.lo] Error 1
make[2]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826/libltdl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cvsuser/KDECVS-08-26-03/kdelibs-030826'
make: *** [all] Error 2
~