?
Solved

Build breaks on AIX

Posted on 2010-09-15
6
Medium Priority
?
730 Views
Last Modified: 2012-05-10
Am using AIX for the first time. So, if my questions or technical responses are not  very matured, please pardon me.

I need to do a build of C++ code on Windows, AIX and SunOS. The code base is very huge having thousands of files.  I run a script file to do the build. The build works fine on Windows and SunOS. But on AIX, I am getting the following error:

ld: 0711-224 WARNING: Duplicate symbol: .bcopy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: .SingletonClass::getInstance()

I am not using SingletonClass::getInstance() in any of the files in the project where the build is breaking. Am not sure how to progress on identifying the cause. Request your suggestions.
0
Comment
Question by:sukhoi35
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Expert Comment

by:sisesise
ID: 33681046
Are you useing openssl?
0
 

Author Comment

by:sukhoi35
ID: 33681695
i actually am not sure about openssl. i just connect to the AIX box and give the build. is there anyway i can check if openssl is being used? can that cause problems?
0
 
LVL 1

Expert Comment

by:sisesise
ID: 33682627
You can check if you are using any libraries from openssl, you can find information here: http://www.openssl.org/ .
The problem I'm thinking at, is this one: http://fixunix.com/openssl/531827-patch-openssl-0-9-8h-aix-5-3-do-not-build-shared-libraries-correctly.html 
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
LVL 11

Assisted Solution

by:cup
cup earned 600 total points
ID: 33686570
Check the documentation on the use of the -b flag on ld.  I can't remember what the difference is but it has different meanings or does different things on AIX and SunOS.
0
 
LVL 1

Accepted Solution

by:
sisesise earned 1000 total points
ID: 33689320
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 400 total points
ID: 33689384

Which compiler do you use?
If it's gcc, you'll need
gcc
libgcc
gcc-c++
libstdc++
libstdc++-devel
gcc-cpp
libgomp
gmake
Check with "rpm -qa". If something is missing, get it from http://www.perzl.org or from the AIX toolbox and install it using "rpm".

If it's VAC/xlC, you'll need

vac.C
vac.aix52.lib (or higher)
vac.lib
vac.include
vac.tnb
vacpp.cmp.aix52.lib
vacpp.cmp.aix52.tools
vacpp.cmp.core
vacpp.cmp.include
vacpp.cmp.lib
vacpp.cmp.rte
vacpp.cmp.tools  

Check with "lslpp -l | grep vac"
If something is missing reinstall it from the media you purchased from IBM (VAC is not free!), or buy a new version and install.
wmp

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question