next up previous contents index
Next: Porting CERNLIB to Up: Installing CERNLIB software Previous: Likely areas of

Porting the CERN libraries from Sun OS to Solaris

The following modifications were required to port the CERN libraries from Sun OS to Solaris.

Cradle for KERNGEN

+EXE.
+USE,*KERNGEN,$PLINAME.
+ASM,22    ,IF=CRAY,IBMVM,VAXVMS.
+ASM,23,T=A,IF=IBMVM.kerngensh.sh
+ASM,24.
+ASM,31,T=A.:kerngen2F.f
+USE,QSYSBSD ,T=I,IF=SOLARIS.
+USE,QENVBSD ,T=I,IF=SOLARIS.
+USE,QSIGJMP   ,IF=SOLARIS.
+USE,QGETCWD   ,IF=SOLARIS.
+USE,QSIGPOSIX ,IF=SOLARIS.
+DIV,P=TCGEN,D=UCOPY2,IF=SOLARIS.
+DEL,P=SUNGS,D=JUMPAD,C=1-9,IF=SOLARIS.
+DEL,P=SUNGS,D=JUMPX2,C=1-46,IF=SOLARIS.
+PAM,11,T=C,A.$CERN_ROOT/src/car/kerngen
+PAM,12,T=C,A.$CERN_ROOT/src/car/kern$PLIUWC
+PAM,13,T=C,A,IF=IBMVM.$CERN_ROOT/src/car/kerncms
+PAM,14,T=C,A.$CERN_ROOT/src/car/kernfor
+QUIT.

The above cradle has been slightly simplified for clarity. However, we see that the main changes have been the selection of certain flags that characterise the operating system. These flags are described in appendix gif on page gif.

We repeat those selected for Solaris below.

QSYSBSD
Unix system BSD (system 5 otherwise)
QSIGJMP
Posix sigsetjmp/siglongjmp for setjmp/longjmp
QENVBSD
BSD setenv is available
QSIGBSD
signal handling with BSD sigvec
QSIGPOSIX
signal handling with Posix sigaction


Janne Saarela
Wed Mar 29 15:50:22 METDST 1995