hi all ,
i am installing the module Tk804.0_24 from CPAN.
but i get the following error while 'make' ing and couldnt install it :
---------------------error msg----------------------------------------
cd pTk && make DEFINE=""
make[1]: Entering directory `/home/km/Tk804.024/pTk'
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm
-O2 -march=i386 -mcpu=i686 -DVERSION=\"804.024\"
-DXS_VERSION=\"804.024\" -fPIC
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -Wall
-Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__
strdup.c
strdup.c:2: parse error before `__extension__'
strdup.c:2: `__len' undeclared here (not in a function)
strdup.c:2: initializer element is not constant
strdup.c:2: parse error before `if'
strdup.c:2: conflicting types for `__retval'
strdup.c:2: previous declaration of `__retval'
strdup.c:2: warning: data definition has no type or storage class
strdup.c:2: parse error before `}'
strdup.c:4: parse error before `{'
make[1]: *** [strdup.o] Error 1
make[1]: Leaving directory `/home/km/Tk804.024/pTk'
make: *** [pTk/libpTk.a] Error 2
----------------------------------------------------------------------
and now i open the strdup.c its like this :
#include "tkPort.h"
char *
strdup(s)
const char *s;
{
char *p = (char *) malloc(strlen(s)+1);
if (p)
strcpy(p,s);
return p;
}
--------------------------------------------------------------------------
help me out --
regards,
KM
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]