public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: gcc under AIX
@ 2002-08-03 20:49 David Edelsohn
  0 siblings, 0 replies; 2+ messages in thread
From: David Edelsohn @ 2002-08-03 20:49 UTC (permalink / raw)
  To: Abel Berenstein; +Cc: gcc-help

>>>>> Abel writes:

Abel> gcc -shared -brtl -lACE -L/usr/li

	"-b" is a GCC option.  You cannot use bare AIX linker options on
the GCC commandline.  You need to use -Wl,-brtl to pass -brtl to the
linker phase.

David

^ permalink raw reply	[flat|nested] 2+ messages in thread

* gcc under AIX
@ 2002-07-23 15:09 Abel Berenstein
  0 siblings, 0 replies; 2+ messages in thread
From: Abel Berenstein @ 2002-07-23 15:09 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-04  3:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-03 20:49 gcc under AIX David Edelsohn
  -- strict thread matches above, loose matches on Subject: below --
2002-07-23 15:09 Abel Berenstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).