Posix.dll in Linux -- link error

Hi,

I’m using ROOT 4.02/00 on a Linux 2.4.20 (patched, SuSE 8.2). Running a Root script I got this message:

Note: posix.dll is not found. Do 'sh setup' in $CINTSYSDIR/lib/posix directory if you use UNIX.

I dutifully went to that directory and, after some struggle to get the necessary Makefile it went on to compile. Unfortunately, it got stuck at the link stage and I don’t know how to proceed to solve it.

/usr/local/root/cint/cint  -K -w1 -zposix -nG__c_posix.c  -D__MAKECINT__ -DG__MAKECINT  -c-2     -Z0  posix.h exten.h 
Note: Link requested for undefined class __dirstream (ignore this message) FILE: LINE:0
gcc -I/usr/local/root/cint -I/usr/local/root -I/usr/local/root/include       -c G__c_posix.c
G__c_posix.c: In function `G__posix__7_8':
G__c_posix.c:177: warning: passing arg 1 of `putenv' discards qualifiers from pointer target type
ld       -o ./posix.dll exten.o  G__c_posix.o   
ld: warning: cannot find entry symbol _start; defaulting to 0000000008048074
exten.o(.text+0x15): In function `isDirectory':
: undefined reference to `stat'
G__c_posix.o(.text+0xf): In function `G__set_c_environment':
: undefined reference to `G__add_compiledheader'
G__c_posix.o(.text+0x1f): In function `G__set_c_environment':
: undefined reference to `G__add_compiledheader'
G__c_posix.o(.text+0x5d): In function `G__posix__6_5':
: undefined reference to `G__int'
G__c_posix.o(.text+0x80): In function `G__posix__6_5':
: undefined reference to `G__int'
G__c_posix.o(.text+0x89): In function `G__posix__6_5':
: undefined reference to `open'
G__c_posix.o(.text+0x97): In function `G__posix__6_5':
: undefined reference to `G__letint'
G__c_posix.o(.text+0xca): In function `G__posix__7_5':
: undefined reference to `G__int'


  .

  .

  .

  .


G__c_posix.o(.text+0x2937): In function `G__c_setup_tagtable':
: undefined reference to `G__tagtable_setup'
G__c_posix.o(.text+0x2954): In function `G__c_setup':
: undefined reference to `G__check_setup_version'
make: *** [posix.dll] Error 1

I set the ROOTSYS, CINTSYSDIR and LD_LIBRARY_PATH variables, and I edited the generated Makefile to Include the $ROOTSYS/include so it can find the necessary *.h files.

Maybe I’m missing something obvious…?

Thanks in advance.

In the context of ROOT, you can build posix.dll (and a few more library) by doinggmake cintdllsCheers,
Philippe