Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

libc.a issues...

Status
Not open for further replies.

fletchsod

Programmer
Dec 16, 2002
181
Hi! When I tried to compile OpenSSL, the compiler hung. So, I build a simplier testcase that produce this problem.

--snip--
# gcc -0 aix_ppc32.o aix_ppc32.s
--snip--

Then I ran the debugger and got this.

--snip--
(gdb) backtrace
#0 0xd022cf18 in wait()
#1 0xffffffff in ?? () from (unknown load module)
--snip--

The wait() is found in the AIX's libc.a file.

I also had another issue where the Sed got hung. With this simple testcase used by GNU Sed,

--snip--
# export install_sh='/usr/local/src/sed-4.1.5/config/install-sh'
# sed -e "install_sh=$install_sh" > zz_blank.txt
--snip--

When I ran the debugger, I got this.

--snip--
(gdb) backtrace
#0 0xd01e62c8 in read()
#1 0xffffffff in ?? () from (unknown load module)
--snip--

The read() is found in the AIX's libc.a file.

When I tried both the AIX’s sed and the GNU’s Sed, the Sed got hung. The simple testcase here used by both of them returned the same errors.

--snip--
# sed –e ‘ls/^X//’
--snip--

When I ran the debugger, I got this.

--snip--
(gdb) backtrace
#0 0xd01e62c8 in read()
#1 0xffffffff in ?? () from (unknown load module)
--snip—

Why do we have this problem? What's the solution to these problems. I am unable to build the web server (GNU softwares) on it's own without doing some hacking on some of the files.

Thanks...

 
Do you have the path to libc.a in you LD_LIBRARY_PATH?



Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
Well, the libc.a is the AIX's library file in /usr/lib. No, I don't need the LD_LIBRARY_PATH because I was able to compile those source code successfully on it's own in AIX 4.3. Something is being changed to the AIX's O/S between AIX 4.3 and 5.2 that cause this problem in the first place.
 
What maintenace level are you at?

oslevel -r

There were problems with early versions of liba.c in 5.1 which were fixed in later maintenance releases.

Also this seems to be a similar problem


Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top