[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared C++ libraries on AIX

From: Martin Frydl
Subject: Re: Shared C++ libraries on AIX
Date: Mon, 07 Oct 2002 19:01:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827

Thanks for suggestion but this is even worse (CVS main trunk, 2002-10-07 - version 1.4e):

source='sub1.cpp' object='sub1.lo' libtool=yes depfile='.deps/sub1.Plo' tmpdepfile='.deps/sub1.TPlo' depmode=aix /bin/sh ./depcomp /bin/sh ./libtool --mode=compile xlC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"cpplibtest\" -DVERSION=\"0.1\" -D_ALL_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -g -c -o sub1.lo `test -f "sub1.cpp" || echo './'`sub1.cpp
./libtool[338]: s%^.*/%%:  not found.
./libtool[410]: -e:  not found
: warning: cannot infer operation mode from `xlC'
: you must specify a MODE
Try ` --help' for more information.
make: 1254-004 The error code from the last command is 1.

This is on line 338:

progname=`$echo "$0" | ${SED} 's%^.*/%%'`

The problem is with SED variable, it is not defined anywhere in libtool script. I think the CVS version is currently unstable.


Bob Friesenhahn wrote:
Try using CVS libtool instead.  It is designed to support C++, and
usually uses the C++ compiler to link C++ objects.


On Mon, 7 Oct 2002, Martin Frydl wrote:


  I'm having trouble when trying to built shared C++ libraries on AIX
4.3 with libtool 1.4.2 and also 1.4d. I'm using IBM C/C++ compiler 3.6.6.

  The first problem is nm utility. Libtool lists public symbols in all
.o files and creates export file from them. However, "nm -B" on AIX by
default demangles all C++ identifiers and therefore these are not listed
in export file. Extra option -C must be added to force nm not to
demangle C++.

  Second problem is with linking itself. Libtool passes -lc to linker
but -lC (or -lC_r for reentrant version) should be used. When not used,
link passes without problems but later when library invokes new
operator, core dump occurs.

  Are there any suggestions regarding these issues?


Libtool mailing list

Bob Friesenhahn

reply via email to

[Prev in Thread] Current Thread [Next in Thread]