Compilation Problems


1. Dziwny problem z mount/gcn na heplx43

Zauwazylem ze dziwny problem pojawial mi sie na heplx43 przy kompilacji mount/gcn - generalnie rzeczy CORBOW-ych , ale tylko na heplx43. Bledy byly takie :

    c++   -g -I. -L/opt/pi/ext/include -I/opt/pi/ext/include -I./src -I/opt/pi/dev/pisys/include -I../common -I/opt/pi/ext/boost -Wall -D_REENTRANT -D_GNU_SOURCE  -I/opt/pi/ext/include/cfitsio        
    -I/opt/pi/dev/pisys/daq/src/cmn/mathlib/ -I/opt/pi/dev/pisys/daq/src/ccd/cfg/ -I/opt/pi/dev/pisys/daq/src/cmn/baselib -I/opt/pi/dev/pisys/daq/src/ccd/ccdastro -D__cplusplus  -D_UNIX    
    -D_ENABLE_PROFILER_ -D_ENABLE_TRACING_ -D_ENABLE_VISUALIZATION_ -D_MONTE_CARLO_ -D_PISOFT_HAVE_CORBA_ -D_PISOFT_HAVE_DB_YES_ -g   -c
    gcn.cc -o gcn.o
    In file included from /opt/pi/ext/include/mico/os-thread.h:116,
                     from /opt/pi/ext/include/CORBA.h:159,
                     from gcn.cc:5:
    /opt/pi/ext/include/mico/os-thread/pthreads.h:427: error: 'sem_t' is used as a
       type, but is not defined as a type.
    /opt/pi/ext/include/mico/os-thread/pthreads.h: In member function `void
       MICOMT::Semaphore::wait()':
    /opt/pi/ext/include/mico/os-thread/pthreads.h:468: error: `_s' undeclared
       (first use this function)
    /opt/pi/ext/include/mico/os-thread/pthreads.h:468: error: (Each undeclared
       identifier is reported only once for each function it appears in.)
    /opt/pi/ext/include/mico/os-thread/pthreads.h:468: error: `sem_wait' undeclared
       (first use this function)
    /opt/pi/ext/include/mico/os-thread/pthreads.h: In member function `
       MICOMT::Semaphore::ErrorType MICOMT::Semaphore::trylock()':
    /opt/pi/ext/include/mico/os-thread/pthreads.h:488: error: `sem_trywait'
       undeclared (first use this function)
    /opt/pi/ext/include/mico/os-thread/pthreads.h: In member function `void
       MICOMT::Semaphore::post()':
    /opt/pi/ext/include/mico/os-thread/pthreads.h:523: error: `sem_post' undeclared
       (first use this function)
    make: *** [gcn.o] Error 1

Okazuje sie ze skopiowanie do katalogu pliku semaphore.h ( np z /opt/pi/dev/pisys/mount/corba/semaphore.h ) zalatwia sprawe, do konca nie rozumiem o co chodzi
chyba o jakies zle includy , ale to rozwiazuje sprawe i dziala ...