Compiling GCL from CVS



I have tried to install all what is needed to compile GCL from CVS. I have
finished the installation of mingw, minsys, tcltk-8.4.1-1.exe,
msysDTK-1.0.1.exe, ...

I have followed this advise

"The easiest way is to
download and install ActivePerl binaries provided by
<http://www.activestate.com>.";

and have installed ActivePerl. (Question: Do I have to install ActivePerl at a
special place?).

The command ./CONFIGURE seems to works. The command MAKE stops- These are the
last messages:

gcc -D_GNU_SOURCE -c -fsigned-char -pipe -Wall  -fno-zero-initialized-in-bss
-mms-bitfields  -O3  -march=i686 -mfpmath=387 -I/home/Dieter/gcl/gcl/o -I../h
-I../gcl-tk cfun.c  
cfun.c:27:19: dlfcn.h: No such file or directory
cfun.c: In function `fSdlsym':
cfun.c:187: warning: implicit declaration of function `dlerror'
cfun.c:191: warning: implicit declaration of function `dlsym'
cfun.c:191: warning: assignment makes pointer from integer without a cast
cfun.c:197: error: `RTLD_DEFAULT' undeclared (first use in this function)
cfun.c:197: error: (Each undeclared identifier is reported only once
cfun.c:197: error: for each function it appears in.)
cfun.c:197: warning: assignment makes pointer from integer without a cast
cfun.c:198: warning: assignment makes pointer from integer without a cast
cfun.c: In function `fSdladdr':
cfun.c:207: error: `Dl_info' undeclared (first use in this function)
cfun.c:207: error: syntax error before "info"
cfun.c:212: warning: implicit declaration of function `dladdr'
cfun.c:212: error: `info' undeclared (first use in this function)
cfun.c: In function `fSdlopen':
cfun.c:232: warning: implicit declaration of function `dlopen'
cfun.c:232: error: `RTLD_LAZY' undeclared (first use in this function)
cfun.c:232: error: `RTLD_GLOBAL' undeclared (first use in this function)
cfun.c:232: warning: assignment makes pointer from integer without a cast
make[1]: *** [cfun.o] Error 1
rm list.c
make[1]: Leaving directory `/home/Dieter/gcl/gcl/o'
make: *** [unixport/saved_pre_gcl] Error 2


It seems to me that a header file is missing:

   cfun.c:27:19: dlfcn.h: No such file or directory

Has anyone an idea what I am doing wrong?

Dieter Kaiser