AIX linker oddities...what is going on?

Thread Tools Search this Thread
Top Forums Programming AIX linker oddities...what is going on?
# 8  
Old 01-27-2011
Yep...thats what my comment about "rpath" was about...If I remember you need -blibpath as well...

---------- Post updated at 09:11 PM ---------- Previous update was at 09:08 PM ----------

Use "dump -Hv" to check the settings once you have compiled - that will show where it searches for the lib. Also make sure you have no LIBPATH set when you compile, as that can make a different to where the linker finds the libs
This User Gave Thanks to citaylor For This Post:
# 9  
Old 01-27-2011
We'll see how that works.... I hate this linker, lol. Out of all the environments I've used, I think AIX is probably the worst. HP-UX probably was my favorite, and I originally hated Linux and thought it was really quirky, but AIX has made it look better, HA!
# 10  
Old 01-27-2011
I had to break a ton of habits moving to linux. In retrospect a lot of them were pretty bad habits. Smilie But I've never really had the opportunity to program on "big iron" like HP-UX or AIX, though I used a Sun system in college... what's the key differences you see as a programmer?
# 11  
Old 01-27-2011
My main job for the last 10 years or so is porting different low level security apps to UNIX platforms. AIX is almost always the "difficult" one. Everything is always implemented differently. I code around the native security databases (/etc/passwd, shadow, /etc/security, TCB, etc) and AIX is always the strange one. I do have to say though that HP-UX has its quirks, although it generally conforms. Linux is easy, cos you can find the code to everything, so you can code round stuff or at least find out how it works. And there are always lots of people that have tried stuff or implemented stuff and its all relatively up-to-date. I have to admit though that Solaris is my favourite...things just seem to work, and if they dont a quick O/S patch usually fixes it. That is until Solaris 10 where, although I love some of the additions, I hate the horrible SMF service stuff, and process contracts that can make life a pain.

Anyhew, on the linker front, that is why I suggested libtool. You *can* make build systems that build generically and you dont need to know this low level stuff.

But thats all my 2c worth...other people have different views on libtool.
# 12  
Old 01-27-2011
I'll check out libtool...but we've already fought to get some freeware tools installed and it was hard enough to win those battles...I'm not sure I want to fight another yet, lol.

As for Corona's Q: as far as developing goes, I've just felt that HP-UX has been the easiest to work with. Things just seem to compile and run well and as expected.

Jumping over to Linux I've been hit with times when an application just randomly seems to die and the core file is useless. We never had that in HP-UX, if it core'd we could use the core and figure out what happened. Plus, much of the code in Linux is the same as it was in HP-UX and the code ran more stable in HP-UX. Could it be our code...sure...but many of the times we have tracked down issues it was because Linux was just less tolerant or, worse, buggy itself and we had to code around its issues.

AIX is somewhere in between. It does seem pretty stable compared to Linux. However, sometimes intuition and AIX just don't go hand in hand. It is as if IBM went out of their way to do something just different enough to mess with you, lol -- like this weird linker crap, lol. While it is more stable...nothing else in it is better than Linux, IMO. They just run away with things like a Microsoft...trying to make it better than other people's stuff but getting in their own way when doing so.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Runtime Linker Problems

Hello all, I am releatively new to Solaris and I am the System administrator for my branch at the FAA. This is the first time I can say I have really messed something up thankfully. My issue came up after installing and uninstalling Oracle Secure Backup which i felt I needed to do a clean... (7 Replies)
Discussion started by: jbirkes
7 Replies

2. Solaris

runtime linker errors

Hey guys I have a solaris 10 OS, with a zone configured. In that zone, I am trying to install an Oracle Client. However, when I run the oracle installer, I get the following error: java: fatal: open failed: No such file or directory java: fatal:... (2 Replies)
Discussion started by: goodvikings
2 Replies

3. Programming

gcc linker address

Hai, I have two (Pgm1.c and Pgm2.c) simple programs, which is compiled using gcc. Now we have two exe's (Pgm1 and Pgm2). When i executed the nm Pgm1 and nm Pgm2, in the listed symbols the address of main is same for both programs (08048344 T main) at run time also. Doubt: 1) What is this... (3 Replies)
Discussion started by: rajamohan
3 Replies

4. Programming

GCC: Choose my own linker

Hi, I do not use the default linker, and instead us another one and pass this argument -Wl,--dynamic-linker=<path to linker> to gcc when compiling. However, what happens if the linker is not under /lib and /lib64 and I am not able to create a symlink to the linker in /lib or /lib64 due to no... (2 Replies)
Discussion started by: Shompis
2 Replies

5. HP-UX

Hp-ux linker option -c

Hi, The necessary symbols in a shared library can be exported to the application using linker option --version-script in Linux. The same can be done in Hp-ux using linker option +e. This can also be done by listing all the global symbols with +e in a file with linker option ld -c filename in... (0 Replies)
Discussion started by: roopa_v
0 Replies

6. Linux

G++ Linker Error

Hi All, I m new to this group. I m facing one problem during my linking of CPP code at Linux env. after compliation i m getting error "undefined reference to ....." Please anyone help me to resolve this error. Regards, ASR make: Leaving directory /fwk' echo g++ -o server ... (1 Reply)
Discussion started by: ASRRAJ
1 Replies

7. HP-UX

dynamic linker error

Hi All Could anyone help in giving a little background to the following runtime error. /usr/lib/pa20_64/ Mmap failed due to errno: 13. Seen when executing a 64-bit ELF executable. Thanks Ed (3 Replies)
Discussion started by: C3000
3 Replies

8. Solaris

ftp oddities

I have recently set up a connection b/t a sun ultra 60 running solaris 8 and a regular old pc running XP. Unfortunately I only know a little bit about networking thanks to Winblows plug and play mentality. Can anyone tell me why my connection from PC to sun is intermittant? The IP is always... (2 Replies)
Discussion started by: Serious_Lee
2 Replies

9. UNIX for Dummies Questions & Answers

Linker (ld)

hai I have installed Linux 7.0 on my system and i have an doubt the linker i ran simple hello.c program with gcc compiler gcc -c hello.c i want linker to produce the output so i put on the command line as ld first.o -lc but it is not running ver properly but there is an... (1 Reply)
Discussion started by: rajashekaran
1 Replies
Login or Register to Ask a Question

Featured Tech Videos