Solved

Build breaks on AIX

Posted on 2010-09-15
6
728 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticallā€¦
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to useā€¦
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

749 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