Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
02-27-2011, 08:04 PM
|
#46
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep:
|
Hi -
Here's what I get when I downloaded your "hw32.txt" (renaming it to "hw32.exe"):
Code:
$ ls -l hw32.exe
-rwxr-xr-x 1 paulsm paulsm 4940 Feb 27 17:00 hw32.exe
$ file hw32.exe
hw32.exe: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
$ ldd hw32.exe
libc.so.6 => /lib/libc.so.6 (0xb7dcb000)
/lib/ld-linux.so.2 (0xb7f2f000)
$ chmod +rx hw32.exe
$ ./hw32.exe
Hello World
From my earlier post:
Quote:
1) The initial post seemed to have NOTHING to do with 32- vs 64-bit, and EVERYTHING to do with the correct syntax for invoking a Java program with the correct .jar. Please revisit that at some point before closing this thread.
<= The Java/.jar question is COMPLETELY INDEPENDENT of the 32- vs 64-bit executable question
2) In general, 32-bit apps CAN and DO run without any problem on 64-bit OS's.
...
<= Even if you DIDN'T have the right runtime libraries for your 32-bit .exe...
the symptoms would NOT be what you've described!!!!!
3) Please cut/paste your exact "hello world" source, compile command and command line output now that you've updated your libraries. If anything's wrong, please run "file hw*" and "ldd hw*" on your "hw" executables, and cut/paste the results.
<= I firmly believe you're simply running the wrong .exe somehow.
Please - PLEASE - recompile, execute (with "./hw32" syntax) and cut/paste everything exactly into your next post.
|
Last edited by paulsm4; 02-27-2011 at 08:10 PM.
|
|
|
02-27-2011, 08:30 PM
|
#47
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
Paul,
You'll find all the information you requested in one of the posts of mine in this thread already. Yeah, I ran the correct executable.
All,
Valery and johnsfine's theory seems to be the winning one for now. I'll forward this to red hat on that ticket and see how where it goes. Hopefully this is it. Quite a bit of progress in less than 48 hours.
Thanks! And I'll update when I know something for sure.
|
|
|
02-27-2011, 09:41 PM
|
#48
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
I went for the Hail Mary and just did the fix for the fix. The binary "hw32" prints "Hello World" to stdout as it should. The java program I was interested in now runs properly.
Thank you all for the help. This was figured out so fast.
I'll leave this open just to confirm with the enterprise support.
Last edited by frznchckn; 02-27-2011 at 09:42 PM.
|
|
|
02-27-2011, 09:47 PM
|
#49
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
Quote:
Originally Posted by frznchckn
I went for the Hail Mary and just did the fix for the fix. The binary "hw32" prints "Hello World" to stdout as it should. The java program I was interested in now runs properly.
Thank you all for the help. This was figured out so fast.
I'll leave this open just to confirm with the enterprise support.
|
Awesome! I have been following the whole thing because the other guys that were helping out knew more than me to troubleshoot that. Mentally noted, thanks to all also.
Cheers,
Josh
|
|
|
02-28-2011, 12:46 PM
|
#50
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
Thanks
RH confirmed that this was the problem and that this security problem was definitely corrected for my RHEL 5 update 6 box.
I'm going to close this. Again, thanks to all of you. We avoided reinstalling this box today which we needed to do because of a compressed project schedule.
|
|
|
02-28-2011, 01:13 PM
|
#51
|
ELF Statifier author
Registered: Oct 2007
Posts: 676
Rep:
|
Quote:
Originally Posted by frznchckn
RH confirmed that this was the problem and that this security problem was definitely corrected for my RHEL 5 update 6 box.
I'm going to close this. Again, thanks to all of you. We avoided reinstalling this box today which we needed to do because of a compressed project schedule.
|
I enjoyed investigation your problem - it wasn't ordinary. Always something new to learn.
Have you another one, interesting like this?
Valery.
(By the way, you moved ld.so.cache to ld.so.cache.orig. I guess it's a time to move it back)
|
|
2 members found this post helpful.
|
02-28-2011, 01:20 PM
|
#52
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
Thanks for reminding me of that Valery. I had left that on a todo list that I probably would've forgotten.
No, no more interesting problems (thankfully for me). I'm an engineer, I needed this server for CAD work.
|
|
|
All times are GMT -5. The time now is 02:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|