Well, I'm running a variety of AIX platforms. We have 4.3.3 (to be decommissioned soon, honest) one at 5.1, 32-bit and a 6.1, 64 bit. I get the same on all apart from AIX 6.1, so I put it down to user error
Unfortunately, we don't even have the gcc compiler. We do have the official IBM XLC compiler, version 5 on AIX 5.1 and version 10 on AIX 6.1 yacc appears to be on all of them too, although I've never used it. Come to think of it, I've only used the available C compiler to sompile sudo, lsof and a few other tools. Sorry about that.
So, the errors:
I feel completely useless on this, but extra depressed because the diskwasher popped last night (overflow/flood detection triggerred), we're snowed in and the wife's parents are with us for a week
Any pointers? The place we really want this is on the AIX 5.1 servers, if that concentrates things.
.... on either the shc or dishwasher
Thanks,
Robin
Liverpool/Blackburn
UK
---------- Post updated at 04:09 PM ---------- Previous update was at 03:49 PM ----------
Aha! I have it working on AIX 6.1 by running
I am a fool for not reading the other post to the end.
I did try to go a bit wild when I saw the "Undefined symbol". I searched out every direcotry called lib and added it to my LIBPATH (ignoring 3rd party software)
No difference.
Robin
P.S. Let's not talk about the Cricket.
Last edited by rbatte1; 12-30-2010 at 07:38 AM..
Reason: The Ashes
I did try to go a bit wild when I saw the "Undefined symbol". I searched out every direcotry called lib and added it to my LIBPATH (ignoring 3rd party software)
No difference.
Robin
P.S. Let's not talk about the Cricket.
Umm, that's a bit of a concern as atoll() is typically part of the base system (in libc.a). If your system has strtoll() we can use this instead by defining a macro below the definition of SIZE (around line 102) as show in blue:
This User Gave Thanks to Chubler_XL For This Post:
Firstly, good news that your home is not affected by the floods.
That helps a little in that I get a shc executeable, however using it fails. I created a very simple script:-
and ran the following:-
I also tried to edit shc.c / shc-3.8.7.c to change the two atoll references in the code to be strtoll (not even sure if this is valid! ) and got the following:
Like a fool, I tried to see what would happen if I ran the file marked as executable:-
I did find this on an IBM site Using the GNU C/C++ compiler on AIX:-
Quote:
AIX 5.2 added support for the atoll() function, but GCC built for AIX 5.1 includes a cached copy of stdlib.h that does not include the prototype for that function.
Does this mean I've got a dead duck? We're on a mixture of AIX 5.1 and 4.3.3
Thanks again,
Robin
Liverpool/Blackburn
UK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nice innings by Mr. Watson over the weekend. Much better these games than the all five one-sided test matches. England were lucky in my opinion not to have lost the first, and that would have changed the whole series.
Good news that sprtoll() is available on your system, one more simple change to shc.c should get you going (don't forget to make it again after change):
replace:
with:
This User Gave Thanks to Chubler_XL For This Post:
I guessed that you meant strtoll where you had sprtoll.
It works wonderfully! Ther only thing I have to do is to ensure that LIBPATH includes /usr/lib at runtime. It is a pain because some idiot (and I don't mean me for a change) has hardcoded something else in /etc/profile. That will be fun to get changed.
Anyway, many, many, many, many thanks!
Let's see what contest the cricket brings now.....
Come on the Poms!
Actually, let's just have a good game like the last one, preferably with the other result, but hey let's have fun.
We have a java stand alone application running currently on sun Solaris system. The java application runs on Jdk 1.4.
We are reshooting this java application to new Ibm servers.
There are 10 unix scripts for this application. All scripts works well except one shell script,
This shell... (2 Replies)
Hi All,
I am new to this forum and also shell script :)
My task is I have to read CSV file get the data from the file and use the data to call c executable with data as argument.And the output from c executable should be stored to new CSV file
Please find below my code
testfunction() {... (14 Replies)
Hello *nix specialists,
Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Hello everyone,
I have a binary file with a structure unknown. I have found 2 perl scripts that it seems to do the convertion but I get sintactic errors when I run them, may somebody test these 2 scripts please and see if really work?
One if from here... (10 Replies)
Hi friends,
I am trying to execute some of our scripts and apparently I had this error message:
bash: print: command not found
Every other scripts runs smoothly excepts this that uses the print command. I search the /bin and it was not there. I also tried to search in the whole folder... (5 Replies)
hi
i wanna ask that can UNIX scripts be converted into exe files?? if so, how?? and can these scripts be implemented using c++ and using their executable...
---------- Post updated at 02:33 PM ---------- Previous update was at 10:53 AM ----------
plz anybody reply.... and ya i want to... (5 Replies)
hi
i have file extentioned with test.vbs. i am able to run this file n execute through command promt but i dont know how to run in shell script
example:
file name is test.vbs which contains
strSoundFile = "C:\windows\Media\Notify.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand... (5 Replies)
Hello,
I am using Open Suse 10.3. I have implemented Zeroconf and the program is working with out any errors.
Libray linking for normal executable:
gcc -o name name.c -lavahi-client.so (WORKING)
Now i have to create a binary executable, to have the program running on a device.
For a... (0 Replies)