On Thu, Mar 22, 2001 at 09:40:37PM +0200, Aivo Kalu wrote:
> >There is something fishy going on with your build environment, if I do
> >configure Embperl simply with "perl Makefile.PL" I get the following
> >compile line:
> >
> >LD_RUN_PATH="" ld -bhalt:4 -bM:SRE
> >-bI:/data/jum/perl/lib/5.6.1/aix/CORE/perl.exp -bE:Embperl.exp
> >-bnoentry
> >-lC -lc -L/usr/local/lib Embperl.o epmain.o epio.o epchar.o epcmd.o
> >eputil.o epeval.o epdbg.o
> >-bI:/data/jum/perl/lib/site_perl/5.6.1/aix/auto/Apache/mod_perl.exp
> >-bI:/usr/local/apache/libexec/httpd.exp -o
> >blib/arch/auto/HTML/Embperl/Embperl.so
>
> Could it be related to gcc or linking ?
>
> Because, I have GNU gcc but AIX's ld. I'm not very sure that I have gcc
> installed correctly.
I have heard from others on the modperl list that they got it running,
there was indeed a patch to the modperl build procedure for gcc/AIX
recently that got it working for at least one person.
As I do not use gcc on AIX, I have no idea if this is related to gcc. I
have the IBM C compiler, and it produces excellent code, so no reason
for me to use gcc.
>
> bash-2.04# ld
> ld: 0706-030 No processing done. Specify at least one
> input or import file or use at least one -b ex<n> option.
> bash-2.04# gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
>
> /usr/bin/ld is from fileset bos.rte.bind_cmds.
>
> Can I test somehow that my environment is capable of building shared
> libraries ? Is this already needed for building perl and perl modules and
> since I succeeded with several modules, the gcc should be running fine ?
Shared C libraries can be build independent uponn compiler using the ld
command, so no problem here I suppose. The only standing issue is that
gcc does not know automatically which options to pass to the linker, so
build procedures for AIX that were designed for the IBM C compiler need
tweaking with -Xlinker options for any -b* options.
Shared C++ libraries cannot be build that easily, and the IBM C compiler
has a script to do that. I have no idea how that works with g++.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX: +49 5131 709325
Internet: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]