Solved

Build breaks on AIX

Posted on 2010-09-15
6
721 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
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 11

Assisted Solution

by:cup
cup earned 150 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 250 total points
ID: 33689320
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 100 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now