Solved

Build breaks on AIX

Posted on 2010-09-15
6
723 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 …
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

895 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

14 Experts available now in Live!

Get 1:1 Help Now