Solved

Build breaks on AIX

Posted on 2010-09-15
6
729 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
Independent Software Vendors: 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

690 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