How to test whether all types Aleph programs can be compiled
- Article Type: General
- Product: Aleph
Desired Outcome Goal:
Verify that all types of Aleph programs (Pro*C, C, COBOL) can be compiled on an Aleph server.
Procedure:
(1)
Check if the Aleph Installation Kit (AIK) is installed in the directory /exlibris/ftp_from_exlibris/AIK22 on the Aleph server.
(2)
If AIK is not installed, then download its tar file from the Ex Libris ftp server and extract it in the directory /exlibris/ftp_from_exlibris of the Aleph server.
(3)
Extract the tar archive /exlibris/ftp_from_exlibris/AIK22/test_compile.tar.gz in the directory $alephm_scratch (as UNIX user aleph):
$ cd $alephm_scratch
$ tar xzf /exlibris/ftp_from_exlibris/AIK22/test_compile.tar.gz
(4)
Execute the compilation test script test_compile as UNIX user aleph:
$ ./test_compile
Expected screen output:
--------------------------------------------------------------------------------
==============================================
Creation test_compile directory
==============================================
==============================================
Start the compilation check
==============================================
Checking compile_ora...
compile ora: test_compile_ora.pc
Pro*C/C++: Release 11.2.0.4.0 - Production on Fri Mar 6 16:59:31 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
System default option values taken from: /exlibris/app/oracle/product/11r2/precomp/admin/pcscfg.cfg
compile_cc: test_compile test_compile_ora
Checking compile_pc...
test_compile_pc.pc
Pro*C/C++: Release 11.2.0.4.0 - Production on Fri Mar 6 16:59:31 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
System default option values taken from: /exlibris/app/oracle/product/11r2/precomp/admin/pcscfg.cfg
test_compile_pc.c: In function 'move_to_buf':
test_compile_pc.c:553: warning: incompatible implicit declaration of built-in function 'memcpy'
test_compile_pc.c: In function 'flush_buf':
test_compile_pc.c:574: warning: incompatible implicit declaration of built-in function 'memcpy'
Checking compile_cc...
compile_cc: test_compile test_compile_cc
Checking Cobol compilation...
iprou: test_compile test_cobol
Checking create_rts...
create rts
==============================================
End of the compilation check
==============================================
Cleaning up...
--------------------------------------------------------------------------------
(5)
Ensure that the screen output of the script test_compile does not include any error messages.
The warning messages from the script test_compile_pc.c ("In function [...] warning: incompatible implicit declaration [...]") can be ignored.
- Article last edited: 3/6/2015