OS Upgrade broke makefile
Posted in 2006
Topics: Installation, Setup & Upgrades, Error Codes & Troubleshooting, Connectivity: ESQL/C, 4GL & Embedded SQL, Networking & sqlhosts Configuration, Platform-Specific Issues, Java & JDBC Development
Hi all,
We had an OS upgrade from AIX 5.1 -> AIX 5.3 yesterday and now our 4GL
makefiles are dying. We cannot figure out what to fix though. Any
help would be appreciated!
(One note: make fails during the call to c4gl, but if I run c4gl at
command line, it works fine!)
Platform: IBM servers running AIX 5.3
Informix: Informix v 9.40C2, I4GL v. 7.32.UC2 (c4gl, isql same version)
Here is the error:
-------------------------------------------
$ make
make all1
c4gl my_program.4gl -c -O
exec(): 0509-036 Cannot load program
/local_apps/informix/lib/tools/i4glc1 because of the following errors: 0509-150 Dependent module libifsql.so could not be loaded.
0509-022 Cannot load module libifsql.so.
0509-026 System error: A file or directory in the path name
does not exist.
make: 1254-004 The error code from the last command is 255.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
-------------------------------------------
Here are the relevevant portions of my environment:
$ set | grep INF
INFORMIXDIR=/local_apps/informix
INFORMIXSERVER=adm_dev
INFORMIXSQLHOSTS=/usr/remote/etc/sqlhosts
LD_LIBRARY_PATH=/local_apps/informix/lib:/local_apps/informix/lib/esql:/local_apps/informix/lib/tools:/usr/lib:/local_apps/cobol/coblib
LIBPATH=/local_apps/informix/lib:/local_apps/informix/lib/esql:/local_apps/informix/lib/tools:/usr/lib:/local_apps/cobol/coblib
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/local/bin:/usr/remote/bin:/local_apps/informix/bin:/local_apps/informix/bin:/local_apps/cobol/bin:/local_apps/cobol/drivers:/home/mhoffman/bin:.
I added the LD_LIBRARY_PATH as a first effort, but it had no effect!
All the library files exist (the *if* and *ix* and isql*) in the esql
subdirectory under informix/lib and seem to be hard-linked correctly.
Any idea what else needs to be done???
Thanks,
Michael Hoffman
offdisc@gmail.com wrote:
> Hi all,
> We had an OS upgrade from AIX 5.1 -> AIX 5.3 yesterday and now our 4GL
> makefiles are dying. We cannot figure out what to fix though. Any
> help would be appreciated!
Your OS upgrade deleted links between the 4GL shared libraries in
$INFORMIXDIR/lib/tools and /usr/lib. Don't fret, the links are not only not
needed, they're down right dangerous and later releases of the engine and
4GL no long put them there. Just set and export:
LD_LIBRARY_PATH=$INFORMIXDIR/lib/tools:$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql
And all should be well.
Art S. Kagel
> (One note: make fails during the call to c4gl, but if I run c4gl at
> command line, it works fine!)
>
> Platform: IBM servers running AIX 5.3
> Informix: Informix v 9.40C2, I4GL v. 7.32.UC2 (c4gl, isql same version)
>
> Here is the error:
> -------------------------------------------
> $ make
> make all1
> c4gl my_program.4gl -c -O
> exec(): 0509-036 Cannot load program
> /local_apps/informix/lib/tools/i4glc1 because of the following errors:> 0509-150 Dependent module libifsql.so could not be loaded.
> 0509-022 Cannot load module libifsql.so.
> 0509-026 System error: A file or directory in the path name
> does not exist.
> make: 1254-004 The error code from the last command is 255.
>
> Stop.
> make: 1254-004 The error code from the last command is 2.
>
> Stop.
> -------------------------------------------
>
> Here are the relevevant portions of my environment:
> $ set | grep INF
> INFORMIXDIR=/local_apps/informix
> INFORMIXSERVER=adm_dev
> INFORMIXSQLHOSTS=/usr/remote/etc/sqlhosts
> LD_LIBRARY_PATH=/local_apps/informix/lib:/local_apps/informix/lib/esql:/local_apps/informix/lib/tools:/usr/lib:/local_apps/cobol/coblib
> LIBPATH=/local_apps/informix/lib:/local_apps/informix/lib/esql:/local_apps/informix/lib/tools:/usr/lib:/local_apps/cobol/coblib
> PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/local/bin:/usr/remote/bin:/local_apps/informix/bin:/local_apps/informix/bin:/local_apps/cobol/bin:/local_apps/cobol/drivers:/home/mhoffman/bin:.>
>
> I added the LD_LIBRARY_PATH as a first effort, but it had no effect!
>
> All the library files exist (the *if* and *ix* and isql*) in the esql
> subdirectory under informix/lib and seem to be hard-linked correctly.
>
> Any idea what else needs to be done???
>
> Thanks,
> Michael Hoffman
>