The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
GCC compiler Ld fatal error Donkey25 UNIX for Dummies Questions & Answers 1 04-30-2009 07:02 AM
gcc error..compiler cannot create executables vasanthan HP-UX 1 06-02-2008 12:20 PM
New to C/gcc compiler - compile error. anish High Level Programming 9 12-13-2007 08:03 PM
LyX-1.4.3 compiler error on redhat-7.3 dirgni UNIX for Dummies Questions & Answers 3 10-06-2006 09:05 PM
Error: Compiler out of memory swamymns Shell Programming and Scripting 1 03-06-2006 11:38 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 3 Weeks Ago
micrinho micrinho is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 2
Unhappy SHC Compiler [ERROR] AIX

Hello there,

I’m compiling a shell script under UNIX AIX 5.3 operating system.

I’m facing a “glitch” when I tried to run the .x file AIX sent the error message “Killed”.

Code:
# rpm -qa 
libgcc-4.2.0-3
libstdc++-4.2.0-3
gcc-4.2.0-3
libstdc++-devel-4.2.0-3
gcc-c++-4.2.0-3

# make
***  żDo you want to probe shc with a test script?
***  Please try... make test
Target "all" is up to date.
 
# ./shc -v -r -f script
shc shll=ksh
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc  script.x.c -o script.x
shc: strip script.x
shc: chmod go-r script.x
 
# ./script.x
Killed
 
# echo $? 
137
This error is a signal 9
 
# type gcc
gcc is /usr/bin/gcc
 
# type cc
cc is /usr/bin/cc
Does anyone have any idea about that?
Thanks a lot

---------- Post updated at 12:28 PM ---------- Previous update was at 11:30 AM ----------

All,

I put the command make clean and run make again and after make test, take a look the output:

Code:
# make test
*** Compiling script "match"
 CFLAGS="-Wall -O6 -pedantic" ./shc -v -f match
shc shll=sh
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc -Wall -O6 -pedantic match.x.c -o match.x
match.x.c:113: warning: string length '1043' is greater than the length '509' ISO C90 compilers are required to support
shc: strip match.x
shc: chmod go-r match.x
*** Running a compiled test script!
*** It must show files with substring "sh" in your PATH...
 ./match.x sh
make: The signal code from the last command is 9.

Stop.
Thanks!!!

Last edited by pludi; 3 Weeks Ago at 01:35 PM.. Reason: code tags, please...
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0