Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-09-2006, 12:15 AM   #1
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 520

Rep: Reputation: 31
perl and linux commands

getting problem when i run compiled perl binary


print(`ls -l`);

when i run this using
it works

as i compile
compile messages on prompt
pccdS4YP.c: In function 'perl_init_aaaaa':
pccdS4YP.c:1162: warning: this decimal constant is unsigned only in ISO C90
panic: invalid pad in pad_sv: 0x8eacb04[0x8eb9ab8] at o line 3.

whats the problem and how to resolve
Old 02-09-2006, 09:43 PM   #2
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
It sounds like your C compiler disagrees with the code that the Perl compiler generates. I tried this myself with Perl 5.8.7 and GCC 3.4.4 and it works, using just "perlcc" to generate the binary. It worked for me, so I think it's probably a Perl/CC dispute that might be fixed by switching versions. Check the "perlcompile" manpage for more info. What versions of Perl and your C compiler are you using?
Old 02-09-2006, 10:48 PM   #3
Registered: Apr 2004
Distribution: Debian
Posts: 193

Rep: Reputation: 30
I had a simiiar problem that I corrected by updating perl and the gcc compiler.
Old 02-11-2006, 02:38 PM   #4
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 31
my $foo = `ls -l`;
print $foo, "\n";


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl question: Anyway to invoke Linux commands... STAGED Programming 8 02-03-2006 01:57 PM
Suse Linux Commands For These Aix Commands? Vaskar Guha Linux - Software 2 12-19-2005 01:45 AM
[Perl] brainstorming with pipes & commands patator Programming 3 06-25-2004 05:17 AM
2 Questions: java calling system commands? PERL vs Java? randomx Programming 28 11-28-2003 09:24 PM
vim commands in perl JohanLingen Programming 5 01-08-2003 05:43 AM

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration