Menu

#162 AIX 5.1 64bit link errors

1.10.2
open
nobody
5
2006-07-18
2006-07-18
No

Problem: I called

./configure CXXFLAGS=-maix64 CFLAGS=-maix64
--prefix=/home/wab/cppunit

to generate a 64bit-Version of cppunit.

This generated errors in the linking stage (see example
below).

These errors occurred both for "nm" and for "ar".

FIX (or rather: "HACK"): In the "libtool"-script (to be
found in cppunit's toplevel directory after calling
"configure"), I replaced both occurrencies of both "nm"
and "ar" by "nm -X64" and "ar -X64", respectively,
which allowed me to build cppunit.

Suggested Solution:
Figure out whether user is building for 64bit and add
the option "-X64" both to "ar" and "nm".

Thanks
Bernhard
http://xmlizer.biz

/usr/bin/nm -B -BCpg .libs/AdditionalMessage.o
.libs/Asserter.o .libs/BeOsDynam
.libs/DefaultProtector.o .libs/DynamicLibraryManager.o
.libs/DynamicLibraryManaugInManager.o
.libs/PlugInParameters.o .libs/Protector.o
.libs/ProtectorChain.o .libs/TestAssert.o
.libs/TestCase.o .libs/TestCaseDecorator.o
.libs/TestComposibs/TestLeaf.o .libs/TestNamer.o
.libs/TestPath.o .libs/TestPlugInDefaultImpl.o .Up.o
.libs/TestSuccessListener.o .libs/TestSuite.o
.libs/TestSuiteBuilderContext.o .libs/TextTestRunner.o
.libs/TypeInfoHelper.o
.libs/UnixDynamicLibraryManagerbs/XmlOutputter.o
.libs/XmlOutputterHook.o
.libs/Win32DynamicLibraryManager.o |".")) { print $3 }
}' | sort -u > .libs/libcppunit.exp
0654-210 .libs/AdditionalMessage.o is not valid in the
current object file mode.
Use the -X option to specify the desired object
mode.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.