Interest in an AIX 6.1 shell server?

IBM workstations/servers/mainframes and operating systems (AIX, OS/2, etc.)
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
ritchan
Posts: 276
Joined: Mon Mar 31, 2008 6:47 am
Location: Oldenburg, Germany
Contact:

Interest in an AIX 6.1 shell server?

Unread postby ritchan » Tue May 18, 2010 12:16 pm

I haven't actually found a place for my 9114-275 yet, but it's definitely not gonna be in the middle of my dorm room stubbing my toe whenever it feels like it. I want to put it to some use, maybe even get some cash selling a shell account. It'll be running AIX 6.1 TL3SP1, with the usual things that might make a shell server useful to some people. I don't know how many people would be interested though. Would you?
Originally Posted by Tommie
Please delete your post. It is an insult to all the hard work society has put into making you an intelligent being.

Like somebody at AMD said about a decade ago: Benchmarking is like sex. Everybody brags about it, everybody loves doing it and nobody can agree on performance.

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Interest in an AIX 6.1 shell server?

Unread postby porter » Tue May 18, 2010 2:01 pm

Would it have gcc?
Land of the Long White Cloud and no Software Patents.

User avatar
ritchan
Posts: 276
Joined: Mon Mar 31, 2008 6:47 am
Location: Oldenburg, Germany
Contact:

Re: Interest in an AIX 6.1 shell server?

Unread postby ritchan » Tue May 18, 2010 3:11 pm

Well of course, seeing as I can't really see any use for a shell server other than to compile stuff on a weird and exotic platform. In fact I don't really get the draw of shell servers at all, that's why I want to set one up.

I'm also interested in finding a cheap copy of XLC.
Originally Posted by Tommie
Please delete your post. It is an insult to all the hard work society has put into making you an intelligent being.

Like somebody at AMD said about a decade ago: Benchmarking is like sex. Everybody brags about it, everybody loves doing it and nobody can agree on performance.

SAQ
Posts: 5871
Joined: Wed Jul 19, 2006 8:37 am
Location: Renton, WA

Re: Interest in an AIX 6.1 shell server?

Unread postby SAQ » Tue May 18, 2010 9:44 pm

ritchan wrote:I'm also interested in finding a cheap copy of XLC.


It doesn't exist. IBM isn't interested in hobbyists.

There's an academic program for professors, graduate research assistants, and high school teachers, but that's about it.
"Brakes??? What Brakes???"

"I am O SH-- the Great and Powerful"

:Indigo: :Octane: :Indigo2: :Indigo2IMP: :Indy: :PI: :O3x0: :ChallengeL: :O2000R: (single-CM)

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Interest in an AIX 6.1 shell server?

Unread postby porter » Wed May 19, 2010 1:54 am

IBM did a trial copy of XLC which has a 90 day timeout. I just means I have to rebuild my AIX 5.3 server from scratch every 3 months!
Land of the Long White Cloud and no Software Patents.

User avatar
ritchan
Posts: 276
Joined: Mon Mar 31, 2008 6:47 am
Location: Oldenburg, Germany
Contact:

Re: Interest in an AIX 6.1 shell server?

Unread postby ritchan » Wed May 19, 2010 2:09 am

Would you guys know enough about this to do it for yourselves? And shouldn't it be reinstall XLC, not reinstall AIX?
http://hardwarebug.org/2009/08/10/drm-the-big-blue-way/
Originally Posted by Tommie
Please delete your post. It is an insult to all the hard work society has put into making you an intelligent being.

Like somebody at AMD said about a decade ago: Benchmarking is like sex. Everybody brags about it, everybody loves doing it and nobody can agree on performance.

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Interest in an AIX 6.1 shell server?

Unread postby porter » Wed May 19, 2010 2:53 am

Cool, I'll give that a go!
Land of the Long White Cloud and no Software Patents.

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Interest in an AIX 6.1 shell server?

Unread postby porter » Wed May 19, 2010 3:15 am

Okay, it's talking about ELF, my XLC, I am assuming, is XCOFF

Code: Select all

bash-3.00$ cd /usr/lib/
bash-3.00$ ls libxlc*
libxlc90e.a
bash-3.00$ ls -ld libxlc90e.a
-rwxr-xr-x    1 root     system         2447 Apr 23 22:22 libxlc90e.a
bash-3.00$ ar t libxlc90e.a
shr.o
bash-3.00$ nm libxlc90e.a
libxlc90e.a[shr.o]:
                     f           -
._xlgetevalbeta      T           0
TOC                  d          32
_xlevalbeta          D           0          20
_xlevalbeta          d          32           4
_xlgetevalbeta       D          20          12
xleval.c             f           -
Land of the Long White Cloud and no Software Patents.

User avatar
ritchan
Posts: 276
Joined: Mon Mar 31, 2008 6:47 am
Location: Oldenburg, Germany
Contact:

Re: Interest in an AIX 6.1 shell server?

Unread postby ritchan » Wed May 19, 2010 3:18 am

It looks like he's talking about XLC 10.1, which is readily available from IBM at the moment. You're using XLC 9, eh? I don't know about ELF/COFF nor assembly, but what I do know is that I have had no luck getting the date out of 4a 0c 65 c8. IIRC, big endian means 8c 56 c0 a4, but when I told Windows calculator that it was a Dword, and typed it in both ways, I still got some kind of huge number.
Originally Posted by Tommie
Please delete your post. It is an insult to all the hard work society has put into making you an intelligent being.

Like somebody at AMD said about a decade ago: Benchmarking is like sex. Everybody brags about it, everybody loves doing it and nobody can agree on performance.

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Interest in an AIX 6.1 shell server?

Unread postby porter » Wed May 19, 2010 3:56 am

Code: Select all

bash-3.00$ make
        PATH=/usr/vacpp/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/rogerb/bin:/usr/bin/X11:/sbin:. xlc x.c -o x -lxlc90e
        ./x
00 00 00 01 D0 62 B2 48 D0 62 B4 B0 00 00 24 03
4B D2 63 E9
0: Wed Dec 31 18:00:01 1969
1: Thu Sep  7 23:30:00 1944
2: Thu Sep  7 23:40:16 1944
3: Wed Dec 31 20:33:39 1969
4: Fri Apr 23 22:22:17 2010
        cp all.sh all; chmod a+x all
bash-3.00$ ls -ld /usr/lib/libxlc90e.a
-rwxr-xr-x    1 root     system         2447 Apr 23 22:22 /usr/lib/libxlc90e.a


So the function "_xlgetevalbeta()" returns a pointer to the data. The four bytes at offset 16 to that pointer are the "time_t" value for the time of installation. According to the "nm" map, the data is 20 bytes long, ( 0x14 )

Code: Select all

bash-3.00$ nm -t x /usr/lib/libxlc90e.a
/usr/lib/libxlc90e.a[shr.o]:
                     f           -
._xlgetevalbeta      T  0000000000
TOC                  d  0x00000020
_xlevalbeta          D  0000000000  0x00000014
_xlevalbeta          d  0x00000020  0x00000004
_xlgetevalbeta       D  0x00000014  0x0000000c
xleval.c             f           -


So it looks like you could just compile a new library, rather than patch the old one.

(a) program to read 20 byte record from old library, to get all data
(b) fixup the current time
(c) write source file with new 20 byte data and function
(d) compile into library
Land of the Long White Cloud and no Software Patents.

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Interest in an AIX 6.1 shell server?

Unread postby porter » Wed May 19, 2010 4:01 am

ritchan wrote:4a 0c 65 c8. IIRC, big endian means 8c 56 c0 a4


No, if it's big endian then 4A 0C 65 C8 means 4A0C65C8

If it's little endian then do the swap to C8650C4A

"ctime" will happily give you the string. As you can see my "4BD263E9" became "Fri Apr 23 22:22:17 2010".
Land of the Long White Cloud and no Software Patents.

User avatar
ritchan
Posts: 276
Joined: Mon Mar 31, 2008 6:47 am
Location: Oldenburg, Germany
Contact:

Re: Interest in an AIX 6.1 shell server?

Unread postby ritchan » Wed May 19, 2010 4:40 am

[saya,shinichi]:~/source/Work $ CC time.cpp
[saya,shinichi]:~/source/Work $ ./a.out
Thu May 14 20:41:12 2009

After a lot of time spent at cplusplus.com I figured it out! Unfortunately it seems time_t won't accept hex values for a value, it only holds decimal. Well, that's what Windows calculator is for!
Originally Posted by Tommie
Please delete your post. It is an insult to all the hard work society has put into making you an intelligent being.

Like somebody at AMD said about a decade ago: Benchmarking is like sex. Everybody brags about it, everybody loves doing it and nobody can agree on performance.

User avatar
bri3d
Posts: 669
Joined: Sat Jun 28, 2008 11:08 am
Location: Boulder, CO

Re: Interest in an AIX 6.1 shell server?

Unread postby bri3d » Wed May 19, 2010 2:00 pm

ritchan wrote:In fact I don't really get the draw of shell servers at all, that's why I want to set one up.


x86 "shell servers" (the kind you tend to see people paying money for online) are generally in datacenters and thus are used for anything that demands a stable connection but little resource and bandwidth, generally IRC bots/clients/servers or long-polling low-traffic network services like instant messenger bots.

Non-x86 "shell servers" are usually used to provide developers without ownership of the platform access to it to develop, for example Oregon State's Cell and POWER shell systems and OpenEmbedded.org's old ARM/XScale PDA cluster (which I think has been retired as Linux-based ARM devices propagated everywhere and demand for it waned).

Sometimes "shell servers" are used with distcc et. al. as a build box, but generally online services for this purpose are billed expressly as "build clusters," like the one Sourceforge gives access to and the Ubuntu package build system.

ritchan wrote:Would you guys know enough about this to do it for yourselves? And shouldn't it be reinstall XLC, not reinstall AIX?
http://hardwarebug.org/2009/08/10/drm-the-big-blue-way/


This is an awesome blog - thanks for that link. I wonder why the author remarks that because IBM's DRM is bad, their compiler must be bad as well though - it's a foolish generalization and discards most real-world facts about software licensing. Why waste time making something cracker-proof for a compiler that's so expensive that only straight-laced corporate users are going to purchase it anyway? And how does this naive licensing approach reflect negatively on the merit of compiler developers?

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Interest in an AIX 6.1 shell server?

Unread postby porter » Wed May 19, 2010 2:08 pm

ritchan wrote:Unfortunately it seems time_t won't accept hex values for a value, it only holds decimal.


It holds neither decimal or hex, it holds a binary integer.

try

Code: Select all

time_t t=0x4A0C65C8;


:)

At least I know what project I'll be testing around July 23rd.
Land of the Long White Cloud and no Software Patents.

User avatar
guardian452
Donor
Donor
Posts: 3464
Joined: Tue Aug 21, 2007 10:12 pm
Location: United States
Contact:

Re: Interest in an AIX 6.1 shell server?

Unread postby guardian452 » Wed May 19, 2010 3:58 pm

bri3d wrote:
ritchan wrote:Would you guys know enough about this to do it for yourselves? And shouldn't it be reinstall XLC, not reinstall AIX?
http://hardwarebug.org/2009/08/10/drm-the-big-blue-way/


This is an awesome blog - thanks for that link. I wonder why the author remarks that because IBM's DRM is bad, their compiler must be bad as well though - it's a foolish generalization and discards most real-world facts about software licensing. Why waste time making something cracker-proof for a compiler that's so expensive that only straight-laced corporate users are going to purchase it anyway? And how does this naive licensing approach reflect negatively on the merit of compiler developers?

IBM's problem is that they assume there are still honest people in this day and age. (har har)

That post read something like: "Wow! that house was easy to break into, Ionly had to cut two deadbolts. If these people don't bother putting a better lock on their door then I get to break in and do as I wish to their sleeping bodies."

It's all fun and games until you get an assfull of buckshot. I don't even want to think about how big the IBM legal department is... pirating software is one thing, posting a how-to on the internet is another.


Return to “IBM”

Who is online

Users browsing this forum: No registered users and 2 guests