This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc under AIX


Trying to build a program with gcc under AIX I get the following errors:

> $ ../bin/make bagddnul
> g++ -O3 -fPIC -g -Wall -DACE_LACKS_PRAGMA_ONCE -
> D_REENTRANT -DPOSIX -I/usr/local
> /src/abel/ACE_wrappers -I/usr/local/src/abel/rdbms/public -
> I/usr/local/src/abel/
> rdbms/demo -c pluginmain.cpp
> g++ -O3 -fPIC -g -Wall -DACE_LACKS_PRAGMA_ONCE -
> D_REENTRANT -DPOSIX -I/usr/local
> /src/abel/ACE_wrappers -I/usr/local/src/abel/rdbms/public -
> I/usr/local/src/abel/
> rdbms/demo -c bagddnul.cpp
> gcc -shared -brtl -lACE -L/usr/lib -
> L/usr/local/src/abel/ACE_wrappers/bin -L/usr
> /local/src/abel/lib -L/opt/freeware/GNUPro/lib/gcc-lib/rtl/2.9-aix51-
> 020209/powerpc  pluginmain.o bagddnul.o -o libbagddnul.so.1.0
> ld: 0706-006 Cannot find or open library file: -l ACE
>         ld:open(): A file or directory in the path name does not exist.
> ld: 0706-005 Cannot find or open file: libgcc.a
>         ld:open(): A file or directory in the path name does not exist.
> ld: 0706-005 Cannot find or open file: libgcc.a
>         ld:open(): A file or directory in the path name does not exist.
> gcc: file path prefix `/opt/freeware/GNUPro/lib/gcc-lib/rtl/2.9-aix51-
> 020209/' n
> ever used
> make: *** [bagddnul] Error 1
> 
>

It seems that AIX ld cannot find some libraries.
But those libraries (libACE.so and libgcc.a) exists in the working directory and in 
several directories, all of them listed in the LD_LIBRARY_PATH environment 
variable.
I tried with and without switch -brt.
I also built the same project under linux and solaris succesfully with no change.

Did somebody have the same problem when porting to AIX?

Abel Berenstein
Administracion Federal de Ingresos Publicos
aberenstein@afip.gov.ar


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]