Comp.unix.Aix FAQ -PART 4 ​​of 5

zhaozj2021-02-16  106

Subject: 2.05: How do i make my oow shared library?

To make your owr of shared object or library of shared objects, you shouth

KNOW That A Shared Object Cannot Have Undefined Symbols. Thus, if Your

Code Uses any externals from /lib/libc.a, the latter must be linked with

Your code to make a shared object. Mike Heath

Mike@pencom.com) SAID IT

Is Possible to Split Code Into More Than One Shared Object When Externals

INE Object Refer to another one. You Must Be Very Good At

Import / Export Files. Perhaps He Or Someone Can Provide An Example.

Assume You Have One File, Sub1.c, Containing A Routine with no external

References, And Another One, Sub2.c, Calling Stuff in /Lib/Libc.a. you

Will Also Need Two Export Files, Sub1.exp, Sub2.exp. Read The Example

Below Together with the Examples on The Ld Man Page.

---- Sub1.c ------

Int Addint (int A, int b)

{

RETURN A B;

}

---- Sub2.c ------

#include

Void Printint (INT A)

{

Printf ("THE INTEGER IS:% D / N", A);

}

---- Sub1.exp ----

#!

Addint

---- Sub2.exp ----

#!

Printint

---- Usesub.c ----

Main ()

{

Printint (Addint (5, 8));

}

The Following Commands Will Build your libshr.a, and compile / link the

Program usesub to use it.

$ cc -c sub1.c

$ CC -BM: Sre -BnoEntry -be: Sub1.exp -o Sub1shr.o Sub1.o

$ cc -c sub2.c

$ cc -bm: Sre -BnoEntry -be: Sub2.exp -o Sub2Shr.o Sub2.o

$ ar r libshr.a sub1shr.o sub2shr.o

$ cc -o usesub buyub.c -l: libshr.a

$ Usesub

THE INTEGER IS: 13

$

A Similar Example Can Be Found in The Aix Manual Online on The Web At:

<

http://www.rs6000.ibm.com/doc_link/en_us/a_doc_lib/aixprggd/genprogc/create_shared_lib.htm>

Subject: 2.06: Linking My Program Fails with Strange Errors. Why?

Very Simple, The Linker (Actual Called The Binder), Cannot Get Thememory It Needs, Either Because Your Ulimits Are Too Low or Because You

Don't Have Sufficient Paging Space. Since The Linker Is Quite Different

> From Normal Unix Linkers and Actually Does Much More Than these, IT Also

Uses a Lot of Virtual Memory. it is not unusual to need 10000 Pages (of

4K) or more to execute a fairly complex lineing.

If you get 'bump error', Either Ulimits or Paging IS To Low, if you get

'Binder Killed by Signal 9' Your Paging Is Too Low.

First, Check Your Memory and Data Ulimits; in Korn shell 'ulimit -a' Will

SHOW All Limits and 'ULIMIT -M 99999' and 'ULIMIT -D 99999' WILL

Increase the maximum memory and data respectively to some high value.

IF this Was Not Your Problem, you don't have enough Paging Space.

IF you will or can not increase your paning space, you Could Try this:

- Do you duplicate Libraries on the ld command line? That Is Never

NECESSARY.

- Do More Users Link SIMULTAANESLY? TRY HAVING ONE LINKING GoING

On at ANY Time.

- Do a Partwise Linking, I. You Link Some Objects / Libraries with The

-r option to allow the temporary output to have unresolved References,

Then Link with the rest of your objects / libraries. this can be split

Up as a as you want, and will make each step.

If you follow this scheme, only adding one Object or Archive AT AT AT AT AT AT AT AT ATIVE

Time, You Will Actually Emulate The Behavior of Other UNIX Linkers.

If you decide to add more paging space, you's you sell consider adding a new

Paging Space on a second hard disk, as opposed to just increasing the

Existing One. doing the latter could make you run out of free space online one is more involved to shrink a Paging Space

But Easier to Delete One.

Subject: 2.07: why does it take so long to compile "Hello World" with xlc?

Some Systems Have Experienced Delays of More Than 60 SECONDS IN

Compiling "#include int main () {Printf (" Hello World ");}

The problem is with the license manager contact ibm to make su

You'Ve got the Latest PTF.

Subject: 2.08: What's with malloc ()?

Malloc () Uses a Late Allocation Algorithm Based on 4.3 BSD's malloc ()

For Speed. this Lets you allocate Very Large Sparse Memory Spaces,

Since The Pages Are Not Actually Allocated Until The isy all Touched for

The first time. unfortunately, IT Doesn't Die Gracefully in the face of

Loss of available memory. See The "Paging Space overview" Under

InfoExplorer, and see the notes on the linker in this document for an

EXAMPLE OF A UNGRACEFUL DEATH.

If you want your program to get notified when Running Out of memory, you

Should Handle The Sigdanger Signal. The Default Is To Ignore IT.

SigDanger is Sent To All Processes When Paging Space Gets Low, Andi

Paging Space Gets Even Lower, Processes with the Highest Paging Spa

USAGE Are Sent The Sigkill Signal.

Malloc () Is Substantially Different in 3.2, Allocating Memory More

Tightly. if you have problems Running Re-Compiled Programs ON 3.2,

Try Running Them with mallocType = 3.1.

Early Page Space Allocation (EPSA) Added to Aix 3.2: See

/usr/lpp/bos/readme.psalloc - IX38211 / U422496 Allows setting of

Early Allocation (VS. Default Late Allocation) on a per-process basis.

Subject: 2.09: why does xlc complain about 'Extern char * STRCPY ()' The header HAS A STRCPY Macro That Expands STRCPY (X, Y) TO

__STRCPY (X, Y), and the latter is kilore by the compiler to generate

Inline code for strcpy. Because of the macro, Your Extern Declaration

Contains an invalid macro expansion. The real cure is to remove your

Extern declaration but address -u__str__ to your xlc Will Also do The

Trick, Although Your Program Might Run A Bit More Slowly as The Compiler

Cannot inline the string functions any more.

Subject: 2.10: Why do I get 'parameter List cannot contact Fewer ....'

This is The Same as Above (2.9).

Subject: 2.11: Why Does XLC Complain About

'(SomeType *) SomePointer = Something'

Software That Is Developed Using GCC May Have this Construct. However,

Standard C Does Not Permit Casts To Be Lvalues, SO You Will NEED TO

Change the cast and move it to the right side of the assocignment. if you

Compile with 'cc', Removing The Cast Completely Will Give You a Warning,

'XLC' Will Give You An Error (Provided SomePointer and Something Aref

Different Types - But else, Why Would The Cast Be There in The First Place?)

Subject: 2.12: Some More Common Errors

Here Are A Few Other Common Errors with XLC:

305 | Switch (((np) -> navigation_type)? (* (((((((Np) -> navigation_type):

((void *) 0))))))))

.a ...........

A - 1506-226: (s) The second and third Operands of the conditional

Operator must beof of the Same Type.

The Reason for this is what xlc defines null as (void *) 0, And it does

NOT Allow Two Different Types as the second and third OPERAND OF?:.

The Second Argument Above Is Not a Pointer and The Code Used NULL

Incorrectly as a scalar. null is a nil pointer constant in Ansi c Andin Some Traditional Compilers.

You Should Change Null in The Third Argument Above To AnTeger 0.

Subject: 2.13: Can The Compiler Generate Assembler Code?

Starting with Version 1.3 of XLC and XLF The -s Option Will Generate A

.s assembly code file prior to optimization. The option - Qlist Will

Generate a human readable one in a .lst file.

There Is Also a Disassembler In / USR / LPP / XLC / BIN / DIS INCLUDE with THE

1.3 Version of XLC (AND IN / USR / LPP / XLC / BIN / DIS with THE 2.1 VERSION

Of xlc) That Will Disassemble Existing Object or Executable Files.

Subject: 2.14: Curses

Curses Based Applications Should Be Linked with -lcurses and _not_ with

-LTERMLIB. IT Has Also Been Reported That Some Problems with Curses Are

Avoided if your application is compiled with -dnls.

Peter Jeffe <

Peter@ski.Austin.ibm.com> Also Notes:

> The escape sequences for cursor and function keys are * Sometimes *

> Treated As Several Characters: Eg. The getch () - CALL DOES Not Return

> Key_up But 'ESC [C.'

You're Correct in Your Analysis: this has to do with the Timing of the

Escape Sequence As It Arrives from The Net. There Is An Environment

Variable Called Escdelay That Can Change The Fudge Fudtor Used to Decide

When an escape is just an escape. The default value is 500; boosting

This a bit shouth solution you.

Christopher Carlyle O'Callaghan <

asdfjkl@wam.umd.edu> HAS More Comments

Concerning extended Curses:

1) The Sample Program in User Interface Programming Concepts, Page 7-13

IS WRONG. Here is The Correct Use of Panes and Panels.

#include

#include

Main ()

{

Pane * a, * b, * c, * d, * e, * f, * g, * h; panel * p;

INITSCR ();

A = ECBPNS (24, 79, NULL, NULL, 0, 2500, PDIVSZP, PBORDRY, NULL, NULL);

D = ECBPNS (24, 79, NULL, NULL, 0, 0, PDIVSZF, PBORDRY, NULL, NULL);

E = ECBPNS (24, 79, D, NULL, 0, 0, PDIVSZF, PBORDRY, NULL, NULL);

B = ECBPNS (24, 79, A, D, PDIVTYH, 3000, PDIVSZP, PBORDRY, NULL, NULL);

F = ECBPNS (24, 79, NULL, NULL, 0, 0, PDIVSZF, PBORDRY, NULL, NULL);

G = ECBPNS (24, 79, F, NULL, 0, 5000, PDIVSZP, PBORDRY, NULL, NULL);

H = ECBPNS (24, 79, G, NULL, 0, 3000, PDIVSZP, PBORDRY, NULL, NULL);

C = ECBPNS (24, 79, B, F, PDIVTYH, 0, PDIVSZF, PBORDRY, NULL, NULL);

P = ECBPLS (24, 79, 0, 0, "Main Panel", PDIVTYV, PBORDRY, A);

ECDVPL (P);

ECDFPL (P, False);

ECSHPL (P);

ECRFPL (P);

Endwin ();

}

2) Do Not Include and any other file together.

You Will Get a Bunch of Redefined Statements.

3) There is curses and extended Curses. Use ONLY ONE OR THE OTHER. IF THE

Manual Says That The the The're Backwards Compatible Or Some Other Indication

That you can use curses routines with extended, don't believe it. To

Use curses you need to include and you can't (see Above).

4) If you use -lcur and -lcurses in the Same Link Command, you will get

Memory Fault (Core Dump) Error. You Cannot Use Both of Them At the Same

Time. -lcur is for extended Curses, -lcurses is for regular curses.

5) WHEN CREANG PANES, WHEN YOUPLY A Value (Other Than 0) for the

'DS' Parameter And Use Pdivszf Value for the 'DU' Parameter, The 'DS'

Will BE Ignored (The Sample Program on Page 7-13 in User Interface

Programming concerts is wrong.) For Reasons As Yet Undetermined, Pdivszc Doesn't Seem to Work (or at Least I Can't Figure Out How To

Use it.)

6) If You're Running Into Bugs and Can't Figure Out What Is Happening,

Try The Following:

INCLUDE -QEXTCHK -G in Your Compile Line

-Qextk Will Check to make you're passing the right number of

Parameters to the functions

-g Enables Debug

7) Do Not Use 80 as the number of columns if you want to use the whole

Screen. The Lower Right Corner Will Get ERSED. USE 79 INSTEAD.

8) If You Create A Panel, You Must Create At Least 1 Pane, OtherWise You

Will Get a Memory Fault (Core Dump).

9) WHEN CREANG A PANEL, IF you don't have a border around it, any Title

You Want Will Not Show Up.

10) To make the screen scroll down:

WMOVE (Win, 0, 0);

Winsetln (win)

11) Delwin (win) Doesn't Work in Extended Windows

To make it is deleted, you need to do the folload:

For Every WINDOW That You Want to Appear on The Screen

TouchWin (win)

WREFRESH (WIN)

You Must make Sure That you do it in the exact same Order as you put

Them on the screen (I.E., IF you caled newwin with a, then c, then b,

You Must do the loop with a, then c, then b, ketherwise you won't

Get The Same Screen Back. The Best Thing to Do Is To Put Them Into

An Array and Keep Track of The Last Window Index.

12) MVWIN (WIN, LINE, COL) Implies That IT IS Only Used for Viewports and

Subwindows. It can also be used for the actual windows themselves.

13) If You Specify The Attribute of A Window Using Wcolorout (WIN), Any

Subsequent Calls to Chgat (Numchars, Mode) or any of its relatives

Will Not Work. (or at Least The Get Very Picky)

Subject: 2.15: How do I speted Up Linkingplease Refer to Sections 2.03 and 2.06 Above.

From:

Losecco@undpdk.hep.nd.edu (john losecco) and

Hook@chaco.aix.dfw.ibm.com (Gary R. Hook)

From oahu.cern.ch in / pub / aix3 you can get a wrapper for the EXISTING

Linker Called Tld Which Can Reduce Link Times with Large Libraries B

Factors of 3 to 4.

Subject: 2.16: What is deadbeef?

When Running the debugger (dbx), You May Have Wondered What Thae

'deadbeef' is you Occasionally See in registers. Do Note, That

0xDeadbeef Is a Hexadecimal Number That Also Happens To Be Some Kind

Of Word (The RS / 6000 Was Built in Texas!), And this Hexadecimal Number

IS Simply Put Into Unused Registers At some time, probably during

Program startup.

Subject: 2.17: How do i make an export list from a library archive?

From:

D. DennerLine@bull.com (Dave Dennerline)

[This Script Has Been Moved to Section 8.10]

Subject: 2.19: Building Imake, Makedepend

From:

Crow@austin.ibm.com (David L. CROW)

[Editor's note: if you have limited 4.x, you need the x11.adt.imake lpp

And probably Most if not all of the x11.adt. * LPPS. Imake, XMKMF AND

Other Utilities Are Delivered Precompiled.]

You need X11dev.src release 1.2.3.0 (IE The R5 Release) [ON AIX 3.2].

Unless AiXWindows, There is no xmkmf.

THESE Are the Steps That I Use to make image, makedepend and all

Of it's config files, and the install the in the working tree

(IE NOT THE Xamples) for Daily Use:

CD / USR / LPP / X11 / Xamples

Make makefile

Make subdirs = "config util" Makefiles

Make Subdirs = "config util" Linklibs

Make subdirs = "config util" depend

Make subdirs = "config util"

.

Subject: 2.20: How Can Tell What Shared Libraries a binary is linked with?

Use "dump -h " and see if, other Than / Unix IS

Listed in the loader section (at the bottom). The first example is

/ BIN / SH (STATILY Linked) and the second example is

/ usr / local / bin / bash (shared).

Index Path Base MEMBER

0 / USR / LIB: / LIB

1 / UNIX

Index Path Base MEMBER

0./lib/readline/:/lib/glob/:/usr/lib:/lib

1 Libc.a shr.o

2 libcurses.a shr.o

The Freeware Tool "LDD" lists all the shared libraries needed

By an Executable, Including Those Recursively Included by Other

SHARED LIBRARIES. SEE Question 2.27 "WHERE CAN I FIND LDD FOR AIX?".

Subject: 2.21: CAN I GET A PTF for My C / C Compiler from the NET?

<

http://service.software.ibm.com/> Contains Pointers to Most PTFS, Including

You'll Need The Fixdist Program (see 1.142) to Retrieve Them.

Subject: 2.22: Why Does "Install" ing Software I got from the net fail?

Note That The RS / 6000 Has Two Install Programs, One with System V Flavor

In The Default Path (/ etc / install with links from / usr / bin and / usr / usg),

AND One with bsd behavior in / usr / ucb / install.

Subject: 2.23: What is Linker Toc overflow error 12?

There Is a Hard Coded Limit in The Aix 3.2.5 Linker That Is Fixed in

AIX 4.1. A Kind Soul Donated The Following Information To Help People

Get the 3.2.5 FIX

The LPS (PaperWork) AIX Toc Data Binder / 6000 # p91128

Version 1.1

Program number 5799-qdy

Reference NO. GC23-2604-00, FC 5615

Pre Reqs listed WERE AIX 3.2.5

IBM C Set V2 (5765-186)

The Above Is Not Available Any Longer, See Section 1.006.

You Could Also Put Some of the Application Code Into Shared Libraries

OR, IN The Case of GCC, USE-MMINIMAL-TOC.

Subject: 2.24: What is the limit on Number of Shared Memory Segments

I Can Attach?

Each Process Has 16 Segments. One is buy for private code, one for

Stack, One for Heap; Those, IF Memory Serves, Are Segments 0, 1, And

2. (if You Look in sys / shm.h, you'll see shmloseg is 3 - the

Lowest Segment, in Number and in the process' Virtual Address Space,

Available to shmat.)

Shmhiseg, The Highest Segment You Can Attach To (Also Defined in

Sys / shm.h), IS 12. Segments 3 THROUGH 12 Are Available to Shmat,

Giving the 10 segments your program used successfully. (NSHMSEGS IN

Sys / shm.h Will Give you this value, Though it's of limited use, since

Most Platforms That I'VE Seen Don't define it.)

Segment 13 is buy by shared code your program has attached to;

I Think One of the Others Might Be for kernel-mode data.

See Also Mmap.

Subject: 2.25: i deleted libc.a by acid --- How do i recover?

From: ed raircin <

ERAVIN@panix.com>

You Can Recover from this without rebooting or reinstalling, if you

Have Another Copy of Libc.a Available That Is Also Named "Libc.a". if

You Moved Libc.a to a Different Directory, You're in Luck - Do The

FOLLOWING:

Export libpath = / other / Directory

And Your Future Commands Will Work. But if you renamed Libc.a, this

Won't do it. if you have an nfs mounted Directory Somewhere, You Canput Libc.a On The That Host, and Point Libpath To That Directory AS

SHOWN ABOVE.

Failing That, Turn Off Your Machine, Reboot Off Floppies Or Other

Media, And Get a root shell. I don't think you shouth do "getrootfs"

As you usually do when accessing the root vg this Way - AIX May Start

Looking for libc.a on the disk, and you'll just ruin inteo the same

Problem. so do an importvg, varyonvg, and then mount / usr somewhere,

THEN MANUALLY MOVE LIBC.A Back OR COPY IN A New One from Floppy.

Subject: 2.26: WHERE CAN I FIND DLOPEN, DLCLOSE, AND DLSYM FOR AIX?

An Implementation of these Dynamic Code Loading Functions Was Written By

Jens-Uwe Mage <

Jum@anubis.han.de> and can be found

<

http://www.han.de/~jum/aix/dlfcn.shar>

From: Gary R. Hook <

Hook@austin.ibm.com>

Starting With Aix 4.2 A DLOPEN ET. Al. Are include in the base OS in

The libdl.a library. Under Aix 4.1 this is available as slhs (Shared

Library hookable symbols) as apar ix ix71849 for the runtime package and

Apar ix ix72973 for the development tools.

Subject: 2.27: Where can I find ldd for AIX?

From: JENS-Uwe Mage

TRY <

Http://www.han.de/~jum/aix/ldd.c>. Also the "aix.tools"

Package from <

http://www-frec.bull.com>

Subject: 2.28: How do I make my program binary executable on the

Power, Power2, and PowerPC Architecures?

AIX Will Emulate Those Instructions Not Available In PowerPC Processors, But

You can avoid this emulation and connection quality performance degradtation by

Using Only The Common To All.

IF you are using ibm's xlc (cc) Compiler, The default is to use the commoninstruction set. If you want to be explicit, use the -qarch = com option.

THE OPTION -MCPU = Common Makes GCC Use The Common Instruction Set. Please

Note That (unlike XLC) this is * not * The default with gcc on aix.

Subject: 2.29: How do i access more Than 256 megabytes of memory?

By Default Each Program Gets One Segment Register (See 2.24) for ITS

Data Segment Register Covers 256 MB, Any Calls To

Malloc More Will Fail. Also Programs That Declare Large Global or Static

Arrays May Fail to Load. To Allocate More Segment Registers To Your

Program, Use the linker option -bmaxdata to specify the number of bytes

You need in the data segment as flollows:

cc -o myprog -bmaxdata: 0x20000000 myprog.c

The Example Above 10 Allocate An Additional Segment Register To Allow

FOR 512MB of Data.

Subject: 2.30: How do I Use POSIX THREADS with GCC 2.7.x?

From: David Edelsohn <

Dje@watson.ibm.com>

The code generated by GCC is Compatible with Threads, But GCC-2.7

WAS Released So Long Ago That It Did Not Provide An Option To Perform

The Extra Link Stes Necessary To Support Threads:

1) Compile all source files with "-d_thread_safe" macro defined.

2) Link with "-l / usr / lib / threads -lpthreads -lc_r /usr/lib/libc.a"

To Obtain the Pthreads Support

And add "-nostartfiles /usr/lib/crt0_r.o" to the begnning of the

Link Command Line (Using GCC to Link! to Initialize Threads.

Subject: 2.31: why does pthread_create return the Error Code 22?

USING POSIX Threads Under Aix Requires a Special C Runtime Startup

Initialization As Well As Special Versions of Some Libraries. The IBM C

Compiler Includes these Special Libraries if Called by the name xlc_r (or XLC_R for C ). There Also Other Main Maing Variations To Support Various

Defaults, Consult the file /etc/xlc.cf for details.

Subject: 2.32: How do i Build Programs Under a Later Aix Release That Run

Under Earlier Releases As Well?

IBM Develops Aix Only for Binary Compatibility with Older Aix Releases,

NOT The Other Way Around. You will thus need to build programs on the

Oldest Aix Release The Program Is Supposed to Run on. You will Also Need

To Link Programs Dynamically, IF you link in the System Libraries

Staticly The Program Will Probably Only Run on The Machine You

Performed the link.

With some preparation it is appearently possible to get arround tria

Limitation. Bob Halblutzel Has Put Together A Web Page Describing THE

Detailed Steps How To Set Up Such A Build Environment At the Following

Web Page:

Please Not That this is not a supported Way to build your program, you

Will Probably Receive NOT Any Support by IBM if you have problems with

That environment.

Subject: 3.00: Fortran and Other Compilers

THIS Section Covers All Compilers Other Than C / C . On Fortran, There

Seem to have Been Some Problems with floating point handling, in

Particular floating exceptions.

Subject: 3.01: i HAVE PROBLEMS MIXING FORTRAN AND C C code, why?

A Few Routines (Such as getENV, SIGNAL, And System) EXIST IN Both the

Fortran and C Libraries But with Different Parameters. In the Recent

Past, if you have a mixed Program That Calls GetENV from Both C and

Fortran Code, You Have to Link The Carefully by Specifying The Correct

Library first on your command line. This is no longer needed startwarewith version 1.5 of the compilers.

Subject: 3.02: How do i staticly bind fortran libraries and dynamically

Bind C Libraries?

From:

amaranth@vela.acs.oakland.edu (Paul Amaaranth)

[Editor's note: Part of this is also discussed Above Under the c compiler

Section, But I Felt It Was So Valuable That i Have Left it all in.

I'VE Done Some Minor Editing, Mostly Typographical.

The Linker and Binder Real Versatile Program, But it is not

Always clear how to make the the. in particular,

There is Times When You Do Not Want To Use Shared Libraries, But

Rather, Staticly Bind The Required Routines Into Your Object. or, you

May NEED TO Use Two Versions of The Same Routine (EG, Fortran & C). Here

Are The Results of My Recent Experiments. I Would Like To Thank Daniel

Premer And Brad Hollowbush, My Se, for Hints. Any Mistakes Or Omissions

Are My OWN AND I Have Tended to Interchange The Terms "Linker" and

"Binder". These Experiments WERE Performed On Aix 3.1.2. Most of this

Should Be Applicable to Later Upgrades of 3.1.

1) i Have Some C Programs, I want to bind in the runtime routines. How

Do I do this? [Mentioned In Section 2.04 of this Article as Well, Ed.]

You can put the -bnso binder command on the link line. You shouth

Also include the -bi: /lib/syscalls.exp control argument:

$ cc * .o -bnso -bi: /lib/syscalls.exp -o foo

This Will Magically Do Everything You NEED. NOTE THIS WILL BIND

_ALL_RGUMENT TELLS TELLS The Linker Tower

THESE Entry Points Will Be Resolved Dynamically At Runtime (THESE ARE

System calls. if you omit this you will get lots of unreSolvedReference Messages.

2) I want to staticly bind in the fortian runtime so a) My Customers

Do Not Need to Buy IT and B) I don't have to worry about the runtime

CHANGING ON A New Release. Can I Use the Two Binder Arguments in

1) TO do this?

You Should Be Able To Do So, But, At Least Under 3002, IF you do

You Will Get a Linker Error Referencing GetENV. In Additional, There

Are A Number of Potential Conflicts Between Fortran and C Routines.

The Easy Way Just Does Not Work. See The Section On

2 Stage Linking for c andfortran on how to do this. The GetENV

Problem is a mess, see the section on Comments & Caveats for more.

From: gary r. hook

THE XLF Runtime Is A NO-Charge Feature, You Can Download and Install

IT WITHOUT HAVING to Buy It. This Change WAS Made> 2 years ago.

3) I have a MIXTURE OF C and FORTRAN ROUTINES, How Can I Make Sure

That The C Runtines Reference The C GetENV, WHILE The Fortran Routines

Reference The Fortran GetENV (Which Has Different Parameters and IF

CALLED MISTAKENLY BY A C ROUTINE RESULTS IN A Segmentation Fault?

From mike heath (muk@pencom.com):

Use -brename: Symbol1, Symbol2 When Pre-Linking The Modules from ONE

Of the languages. It Does Not Matter Which One Youhi.

4) I Have C and fortran routines. I want to bind in the xlf library, while

Letting the rest of the libraries be shared. How do I do this?

You need to do a 2 stage link. In the first stage, you bind in the

XLF Library Routines, Creating An Intermediate Object File. The

Second Stage Resolves The Remaining References To The Shared Libraries.

This is a general technology.

Specifically, use tris command to bind the xlf librars to the fortran

Objects:

$ ld -bh: 4 -t512 -h512 -o intermediate.o /

-bnso -bi: /lib/syscalls.exp -berok -lxlf -bexport: /usr/lib/libg.exp /

-lg -bexport:

The argument -bexport: Specifies a File with The

Name of all entry point the all to be visible outside the intermediate

Module. put one entrypoint name on a line. The -bi: /lib/libg.exp line

Is Required for Proper Function of the Program. The -berok argument

TELLS The Binder That IT IS OK To Have Unresolved References, At Least

At this Time (You Would Think -r Would Work Here, But It Doesn't Seem To).

The -bnso argument causes the required modules to be imported

INTO The Object. The --lxlf, of course, is the xlf library.

THEN, BIND THE Intermediate Object with the Other Shared Libraries in

The Normal fashion:

$ ld -bh: 4 -t512 -h512 intermediate.o /

/LIB/CRT0.O -LM -LC

Note The Absence of -Berok. After this link, all references Should

Be resolved (unsolved (unsS you're doing a multistage link and making another

Intermediate.

Note The Order of Modules. This is extremely importantiffness if, for example,

You Had a subroutine named "load" in your fortran stuff. Putting the

C Libraries Before The Intermediate Module Would Make The C "LOAD"

THE OPERABLE Definition, Rather Than The Fortran Version Even THOUGH

The Fortran Module Has Already Been Through a Link And All References

To The Symbol Are Contained in The Fortran Module. This can

Be extremely difficult to find (Trust ME on this one :-) is thisa bug, a feature, or what?

[As Mentioned In Section 2.03 of this Article, IT IS A Feature That you

Can Replace Individual Objects in linked files, ed.

(I selfilhtly)

BECAUSE MINE WENT UP 5%, But The IT'S A 2 MB Object :-)

Comments & Caveats:

From the documentation the linker limited to what

-berok does. It does not. Very Strange Results come from use the

-r argument. I have not been able to make -r work in a Sensible Manner

(Even for intermediate links which is what it is supplosed to be for).

Note from Mike Heath (Mike@pencom.com):

'ld -r' is essentially shorthand for 'ld -berok -bnogc -bnoglink'.

CERTAINLY, Using -Berok with an export file (SO Garbage Collection

Can Be Done) IS Preference To LD -R, But The Latter is Easier.

When Binding An Intermediate Module, Use An Export File To Define THE

Entry Points You Want Visible in The Link. if you don't do this,

You'll get the dreaded "unresolved reference" error. import files name

Entry Points That Will Be Dynamically Resolved (AND POSSIBLY WHERE).

If you are in doubt what parameters or libraries to link, use the

-v argen linking and modify the exec call That Shows Up Into

An LD Command. Some Thought About The Libraries Will Usually Yield AN

Idea of ​​when to use what. if you don't know what an argument is for,

Leave it in. It's there..............

Watch the Order of External Definitions (IE, Libraries) When More Than

One Version of A Routine May Show Up, EG "LOAD". The first one defined

On the ld command line is the winner.

THE GETENV (AND System and Signal) Problem is a problem That Started Out

Minor, Got Somewhat Worsse In 3003 and Eventually Will Be Correctly Fixed.

Basically, You Should Extract The 3002 Version of these Three Routines

From xlf.a before doing the update and save the away, then link these

Routines in if You Use these fortran system services.

Subject: 3.03: How do i check if a number is nan?

From:

SDL@glasnost.Austin.ibm.com (Stephen Linam)

Nan IS "Not a Number". IT Arises Because The Risc System / 6000 USES

IEEE FLOATING POINT Arithmetic.

To DETERMINE IF A Variable Is A Nan You Can Make Use of the Property

That a nan does NOT Compare Equal to anything, including itself.

Thus, For Real Variable X, USE

IF (x .ne. X) Then! This will be true if x is nan

Floating Point Operations Which Cause Exceptions (Such as an overflow)

Cause Status Bits To Be Set in The Floating Point Status and Control

Register (FPSCR). There is a fortran interface to query the fpscr, And

It is described in the xlf fortran manuals - i don't have the manuals

Right here, but look for fpgets and fpsets.

The IBM Manual "RISC System / 6000 Hardware Technical Reference - General

Information "(SA23-2643) Describes What floating point Exceptions Can

Occur And Which Bits Are Set in The FPSCR AS A Result of Those Exceptions.

Subject: 3.04: Some INFO SOURCES ON IEEE FLOATING POINT.

1. ANSI / IEEE STD 754-1985 (IEEE Standard for Binary Floating-Point

Arithmetic) and ANSI / IEEE STD 854-1987 (IEEE Standard for

Radix-independent floating-point archmeletic, Both Available from IEEE.

2. David Goldberg, "What Every Computer Scientist SHOULD KNOW ABOUT

FLOATING-POINT ARITHMETIC ", ACM Computing Surveys, Vol. 23, No. 1, March 1991, PP. 5-48.

Subject: 3.05: Why Does it take so long to compile "Hello World" with xlf?

[read 2.07]

Subject: 4.00: GNU and public Domain Software

GNU Software Comes from the Free Software Foundation and Various Other

Sources. a Number of FTP Sites Archive The Gnu License for

Rules on distributing their software.

Lots of useful public domain software has been and continue to be ported

To the RS / 6000. See Below for ftp or download information.

Subject: 4.01: How do i find sources?

From:

Jik@gza.com (Jonathan Kamens)

There is a newsgup devoted to posting about how to get a certificate

Source,

Comp. Sources.wanted. An Archive of Information About Sources,

Including FTP Sites Is Available from

Subject: 4.02: Are The ANY FTP or WWW SITES?

Smit-installable precompiled package of popular freeware for Aix 4.x At

<

http://www-frec.bull.com/>. Download The ".exe" Files with your www

Browser. Thase Are Auto-Uncompressing Files, Just Like on PCS (IT Uses

Similar technology to pkzip. Mark the file as executable (chmod x),

THEN EXECUTE It to generate a .bff file. The .bff file can life

Installed Using "Smit Install_Latest". for more information

Read The Install.txt File on The Server.

There is Mirror of this Site At

http://www.bull.de/ and

http://ftp.Univie.ac.at/aix/.

The Package Explicitly Reference Below Are ONES Ciaran Consideres

"Solid." That IS, The Binary Has Been "TESTED BY LOTS OF People."

Bull Provides Many Other Freeware packages as well. If you use the

Service, Be Sure and Thank Ciaran and Bull.

Below Are Some FTP Sites That Are Supposed to Have RS / 6000 SpecificSoftware. I have 't Verified All The Entries.

US Sites:

<

ftp://aixpdslib.seas.ucla.edu/pub/>

<

FTP: / /AIX.BOULDER.IBM.com/>

European Sites:

<

ftp://nic.funet.fi/pub/unix/Aix/RS6000/>>

<

ftp://ftp.uni-stuttgart.de/sw/rs_aix32/>

THE FIRST One IS Dedicated to Software Running On Aix. It might not

Always Be The Latest Versions of The Software, But It Has Been Ported

TO AIX (Normally Aix Version 3 Only). Please Use the European Sites

Very Sparingly. They are primarily to serve people in Europe and MOST

Of The Software Can Be Found in The US Sites Originally.

The Remaining Sites Are Simply Ones That Archie Indicated Contained

AIX Related Materials.

<

ftp://ftp.u.washington.edu/pub/rs6000/>>

<

ftp://ftp-aix.polytechnique.fr/pub/binaries/rios/>

Subject: 4.03: Why Does "Install" ing Software I got from the net fail?

This Answer Was Moved to Section 2.22

Subject: 4.04: GNU Emacs

A Prebuilt Installp (SMIT) Installable Package Is Available from

.

IF you get a segmentation fault in GNU Emacs 19. * During hilit19 USE,

You can set locale to c (export lc_all = c) to get around the aix bug.

Version 18.57 of GNU Emacs Started to Have RS / 6000 Support. Uses

S-AIX3-2.h for Aix 3.2. Emacs IS Going THROUGH RAPID CHANGES Recently.

Current Release IS 19.x.

Emacs Will Core-Dump If IT Is Stripped, So Don't Strip When You Install

It. You can edit a copy of the makefile in src replacing all 'install -s'

WITH / USR / UCB / INSTALL.

SUBJECT: 4.05: GCC / GDB

GNU C Version 2.0 and Later Supports the RS / 6000, And Compiles Straightout of the Box ON Aix 3 and AIX 4.1 and 4.2. You May, However,

Experience That Compiling IT Requires Large Amounts of Paging Space.

On Aix 4.3, Compiling GCC APPEARS To Be Much More Difficult Due To

Changes for the 64 bit environment. a Precompiled GCC is Available in

The form of egcs in the bus of emerges at .

From: Ciaran Deignan <

Ciaaran.deignan@bull.net>

Note:

- There Is a Link Problem on Aix 4.3. Until i Find A Way Of Building

A Distribution On Aix 4.3, You'll Have To Use 'LD'.

- The package gnu.egcs-1.1.0.0.exe does not contain the C Compiler

(G ). However Since You Can't Link A G Object File with 'ld',

This Is Just Part of The Same Problem.

[Editor's Note: from the Latest Postings It Appears That The Latest

(POST 1.1B) EGCS Snapshots fixes The Problem with Collect2. The Problem

Here is that there are no binary distributions yet, one Has to bootstrap

This version using ibm's c compiler.]

From: Brent Burkhold <

Bburk@bicnet.net>

In Order to Compile and Link Using EGCS ON AIX You First

Need to Download and Apply Fix Apar ix87327

From

Looking Up The Apar # SHOULD Allow You To Download

Bos.rte.bind_cmds.4.3.2.2 Which Fixes All Problems.

Subject: 4.06: gnu ghostscript

A Prebuilt Installp (SMIT) Installable Package Is Available from

.

The PostScript Interpreter GNU Ghostscript Version 2.3 and Later Supports

The RS / 6000 and Can Be Found on Various FTP Sites. Current Version IS 2.6.1.

Compile Time Problems: Compile iDict.c and zstack.c_without_ Optimization, Add The Following

To the makefile:

iDict.o: idict.c

$ (Cc) -c iDict.c

Zstack.O: Zstack.c

$ (Cc) -c zstack.c

Run Time Problems:

Running Ghostview-1.5 with ghostscript-2.6.1, i get

GS: Malformed GhostView Color Property.

Solution: Replace Buggy Version of GhostScript-2.6.1 x11 Driver

With at Least 2.6.1pl4

Subject: 4.07 TEX - Document Processing

From: "patrick tj mcphee" <

Ptjm@ican.net>

TEX Can Be Retrieved Via FTP from The Comprehensive Tex Archive

Network (ctan). The PrinciPle Sites Are

ftp.tex.ac.uk (UK)

ftp.dante.de (Deutschland)

ftp.tug.org (USA)

But There Are Many Mirrors. Finger

CTAN@ftp.tex.ac.uk for a list.

Subject: 4.08 Perl - Scripting Language

A Prebuilt Installp (SMIT) Installable Package Is Available from

.

If you want the source code, <

http://www.perl.com/perl/> Is Good Place

TO START.

AS OF AIX 4.3.3, Perl Is Packaged with Aix But Not Supported.

Subject: 4.09: X-windows

AIX 4.x Ships with x11r5 and motif 1.2.

On Aix 3.2 The Base Version Has X11R4 and Motif 1.1 and the extended

Version Has X11R5 AS AIXWINDOWS 1.2.3. See Question 1.500 for more

Information about determining your revision.

AIXWindows Version 1.2.0 (X11RTE 1.2.0) IS X11R4 with Motif 1.1

AIXWindows Version 1.2.3 (X11RTE 1.2.3) IS X11R5 with Motif 1.1

'lslpp-h x11rte.motif1.2.obj' Should Tell You If you are

Running Motif 1.2.

Subject: 4.10 bash - / bin / ksh alternative from fsf

Bash is an alternative to ksh and is availible from prep.ai.mit.edu

And Places That Mirror The gnu software. /etc/security/login.cfg

Needs to be modified if this will be used as a default shell.a prebuilt installp (smits) installable package is available from ISTALOL

.

[Editor's Note: Bash's Command Line Expansion and New

Meta-Expressions Make It An Absolute "Must" for system

administrators]

Subject: 4.11: ELM

A Very Nice Replacement for Mail. Elm Should Be Pretty StraightForward,

The only thing to remember is to link with -lcurses as the only

Curses / Termlib Library. You May Also Run Into The Problem Listed Under

Point 2.13 ABOVE.

A Prebuilt Installp (SMIT) Installable Package Is Available from

.

SUBJECT: 4.12: Oberon 2.2

From:

Afx@muc.ibm.de (Andreas Siegert)

Oberon Is Wirth's Follow On To Modula-2, But IS Not Compatible. A FREE

Version of Modula-3 IS Available from Dec / Olivetti At

Gatekeeper.Dec.com. this is not a modula-2 Replacement But a new

Language. There Are Currently Two M2 Compilers for the 6000 That i

KNOW of. One from Edinburgh Portable Compilers, 44 31 225 6262 (UK)

And the Other from Gardens Point Is Availible THROUGH A L IN

Switzerland ( 41 65 520311) Or Real Time Associates in the UK

(

Info@rtal.demon.co.uk).

Oberon can be obtained via anonymous ftp from Neptune.inf. etz.ch

(129.132.101.33) Under the Directory Oberon / RS6000 or Gatekeeper.Dec.com

(16.1.0.2).

Subject: 4.13: Kermit - Communications

From: frank da cruz <

fdc@watsun.cc.columbia.edu>

Available for All Versions Of Aix ON RS / 6000, PowerPC, PS / 2, RT PC,

And 370-Series Mainframes. for Complete Information On Kermit Software

For Aix and Hundreds of Other Platforms, Visit The Kermit Web Site:

<

http://www.columbia.edu/kermit/>>

C-Kermit 6.0 Was Announced November 30, 1996: <

http://www.columbia.edu/kermit/ck60.html>

The Nonprofit Kermit Project Is Funded Primarily by Manual Sales.

For c-kermit 6.0 the manual is the new second edition of "using c-kermit":

<

http://www.columbia.edu/kermit/ck60manual.html>

For RS / 6000 and PowerPC with AIX 3.x or 4.x:

<

ftp://kermit.columbia.edu/kermit/archives/cku192.tar.z> (or .gz)

Uncompress, Untar (TAR XVF CKU192.tar).

Make RS6AIX32C <- for Aix 3.x

Make RS6Aix41C <- for Aix 4.x

This Products An Exutable Called "Wermit". Before Installing, Read THE

Instructions in ckuins.doc from the tar file.

IF you don't have a c compiler, you can get binaries at:

<

http://www.columbia.edu/kermit/ck60ubin.html>

Send Questions to

Kermit-support@columbia.edu.

Subject: 4.14: GNU DBM

From:

Doug@cc.ysu.edu (Doug SEWELL)

Here's The Fixes for RS / 6000'S:

Apply this to testgdbm.c:

158C158

---

> Int Opt;

166C166

---

> While ((Opt = getopt (argc, argv, "rn")))! = EOF)

Apply this to systems.h:

111A112, 114

> #ifdef rs6000

> #pragma alloca

> #else

112A116

> #ENDIF

To Compile, Edit The makefile. Set cc to BSDCC (See / USR / LPP / BOS / BSDPORT

If you don't have have 'bsdcc' on your system) and set cflags to -drs6000 and

WhatVER OPTIONS (-G, -O) You prefer. Don't define sysv.

Subject: 4.15 TCSH - An Alternative Shell

From:

CORDES@athos.cs.ua.edu (David Cordes)

TCSH IS Available from <

ftp://ftp.deshaw.com/pub/tcsh>

Compiles with no problems. You must edit /etc/security/login.cfg TOPERMIT USERS To change to this shell (chsh), adding the path where there

Shell is Installed (in My Case, / USR / local / bin / tcsh).

> From: "A. Bryan Curnutt" <

Bryan@stoner.com>

Under Aix 3.2.5, You Need To Modify The "config.h" File, Changing

#define bsdsigs

TO

#undef bsdsigs

Subject: 4.16: Kyoto Common Lisp

The Sources Are Available from Cli.com. The KCL Package Is The NEEDED

Base; Also Retrieve The Latest AKCL Distribution. AKCL Provides A

Front-End That "ports" The Original Kcl to a Number of Different

Platforms. The port to the 6000 worked with no problems. however, you

Must Be root for make to work predomi with some memory protection

Routines.

Subject: 4.17 TCL / TK - X-Windows Scripting

Current Versions: TCL 8.0B2 and TK 8.0B2. They Are Available from

. The TCL / TK Web Page IS AT

<

http://sunscript.sun.com/>.

Prebuilt Installp (SMIT) Installable Packages for Several Versions of Tcl

Tk Are Available from .

Subject: 4.18: EXPECT

From: Doug SEWELL <

Doug@ysub.ysu.edu>

To Build The Command-Interpreter Version, You Must Have the Tcl Library

BUILT SUCCESSFULLY. The EXPECT LIBRARY DOESN '' 'RE:

EXPECT AND ITS LIBRARY Are Built with BSDCC, SO Applications Using

The Library Probably Also Need To Be Developed with BSDCC.

I ftp'd expect from ftp.cme.nist.gov.

You NEED TO CHANGE SEVERAL LINES in the makefile. Flight you need

To Customize Source and Target Directories and FILES:

#

TCLHDIR = / usr / incrude

TCLLIB = -LTCL

MANDIR = / usr / man / manl (Local Man-Pages)

Manext = LBINDIR = / u / local / bin

LibDir = / usr / lib

Hdir = / usr / include

...

Next Set The Compiler, Switches, And Configuration Options:

#

CC = BSDCC

Cflags = -o

...

Pty_Type = BSD

...

Interact_type = SELECT

...

THEN you need to make these changes about line 90 or SO:

Comment Out cflags = $ (CLFLAGS)

UN-Comment these Lines:

CFLAGS = $ (CLFLAGS) $ (cppflags)

LFLAGS = ($ CLFLAGS)

Then Run 'Make'.

You can't Run Some of the Examples WITHOUT MODIFICATION (Host Name,

ETC). I don't recmember if i ran all of them or not, but i ran enough

That I was satisfied it worked.

Subject: 4.19: Public Domain Software on CD

From:

MBeckman@mbeckman.mbeckman.com (Mel Beckman)

The Prime Time FREEWARE CD Collection Is A Package of Two CD's and DOCS

Containing over Three Gigabytes of Compressed UNIX Software. It cost $ 69

> From Prime Time FreWare, 415-112 N. Mary Ave., Suite 50, Sunnyvale, CA

94086. Phone 408-738-4832 Voice, 408-738-2050 fax. No internet orders as

Far as i can tell.

I'VE Extracted and Compiled A Number of the package, and all have worked

Flawlessly So Far On My 220. Everything from Programming Languages ​​To 3D

Solid Modeling is in this Bonanza!

[Ed: the O'Reilly Book, Unix Power Tools, Also Contains a CD-ROM with LOTS

Of Useful Programs Compiled for the RS / 6000, Among Other Platforms.

Subject: 4.20: Andrew Toolkit

From: Gary Keim <

GK5G @andrew.cmu.edu>

The Andrew Toolkit Consortium of Carnegie Mellon University's School Of

Computer Science Has Released New Versions of The Andrew User

Environment, Andrew Toolkit, Andrew Message System.

The Andrew User Environment (AUE) IS An Integrated Set of ApplicationsBeginning with a 'Generic Object' Editor, EZ, A Help System, A System, A System

Monitoring Tool (Console), an Editor-Based Shell Interface (TypeScript),

And Support for Printing Multi-Media Documents.

The Andrew Toolkit (ATK) IS A Portable User-Interface Toolkit That Run

Under x11. IT Provides a Dynamically-loading Object-Oriented

Environment Wherein Objects Can Be Embedded in One Another. Thus, One

COULD EDIT THAT THAT, IN Addition To Containing Multiple Fonts, Contains

Embedded Raster Images, Spreadsheets, Drawing Editors, Equation, Simple

Animations, etc. these Embedded Objects Can Also Be Nested.

The Andrew Message System (AMS) Provides a Multi-Media Interface To Mail

And Bulletin-Boards. AMS Supports Several Mail Management Strategies

And Implements Many Advanced Features Including Authentication, Return

Receipts, Automatic Sorting of Mail, Vote Collection and Tabulation,

Enclosures, Audit Trails of Related Messages, And Subscription

Management. It has interfaces That Support TTYS, Personal Computers,

And Workstations.

Release 5.1 of Andrew Contains Many Bug Fixes and Updates. There is now

Support for the New Internet Mime (Multipurpose Internet Mail Extensions)

Standards for Multipart, And MultiMedia Mail. for more information on

Mime, please see the changes file in the ftp directory on

Emsworth.Andrew.cmu.edu.

This Release Can Be Obtained As Follows. The Sources Are Available Via

Anonymous ftp from expected.lcs.mit.edu (18.30.0.238) in the

./Contrib/andrew Tree., detils, see ./contrib/andrew/readme.

Patch for Aix3.2: a patch to the auis 5.1 Sources Can Be ftp'ed from

Emsworth.andrew.cmu.edu (128.2.45.40) in ./aixpatch. For Those WithNTERNET Access, A 3.5 "Diskette Can Be Ordered for A Nominal Fee of $ 10

By Sending, OR Faxing, A Purchase Order to The Consortium Address Below.

Andrew, AS Well as a variety of other cmu software, can also be ftp'ed

> from Emsworth.andrew.cmu.edu (128.2.30.62). Those with Afs Access LOOK

AT /AFS/ANDrew.cmu.edu/itc/sm/releases/x.v11r5/ftp.

Remote Andrew Demo Service

This Network Service Allows You To Run Andrew Toolkit Applications

WITHOUT OBTAING OR Compiling The Andrew Software. You NEED A HOST

Machine Running X11 on the Internet. A Simple "Finger" Command Will Let

You Experience Atk Applications Firsthand. You'll Be Able To Compose

MultiMedia Documents, Navigate THROUGH The Interactive Andrew Tour, Andrew Tour, Andrew Tour

Use the Andrew Message System To Browse Through CMU's Three Thousand

Bulletin boards and newsgroups.

To use the remote andrew demo service, run the folload connections:

finger

Help@atk.itc.cmu.edu

The Service Will Give You Further Instructions.

Information Source

Your Bug Reports Are Welcome; Kindly Send Them To

Info-andrew-bugs@andrew.cmu.edu and we would preiodically post a status

Report to the mailing list

Info-andrew@andrew.cmu.edu. To be added to

The Mailing List or Make Other Requests, Send Mail To

Info-andrew-Request@ndrew.cmu.edu.

We Also Distribute The Following Related Materials:

Atk and ams sources and binaries on CDROM. Binaries Are Available

For The Following System Types:

IBM riscsystem / 6000

Sun SparcStation

HP 700 Series

Decstation

Atk and ams Sources on QiC and Iotamat Tapes Hardcopies of The

Documentation for Atk and Ams. Introductory Video Tape: Welcome To

Andrew: an overview of the andrew system. Technical Video Tape: Theandrew Project: a session at the winter 1988 usenix conference.

More Information About these Materials Is Available from:

Information Requests

Andrew Toolkit Consortium

Carnegie Mellon University

4910 Forbes Avenue, UCC 214

Pittsburgh, PA 15213-3890

USA

Phone: 1-412-268-6710

Fax: 1-412-621-8081

Info-andrew-Request@andrew.cmu.edu

There is Also a Netnews Distribution List,

Comp.soft-sys.andrew, Which

Is Identical to The Info-Andrew List Except That Does Not Support The

Multi-Media Capabilities of Info-Andrew.

Subject: 4.21: Sudo

Sudo (Superuser Do) Allows A System Administrator to Give Certain Uses (OR

Groups of users) The Ability to Run Some (OR ALL) Commands as root while

Logging all commands and arguments. sudo operations on a per-comman basis, IT

IS not a replacement for the shell.

The Latest Version of Sudo Is Cu-sudo v1.5. There is a web page for sudo at

<

http://www.courtesan.com/courtesan/products/sudo/sudo.html>. The Program

Itself can be obtained from <

ftp://ftp.courtesan.com/pub/sudo/>. Sudo's

Author, Todd Miller <

Todd.miller@courtesan.com> Reports That Sudo Works On

Both Aix 3.2.x and 4.1.x.

Subject: 4.22: Flexfax / Hylafax and Other Fax Software

From: christian zahl <

Czahl@cs.tu-berlin.de>

Sam Leffler Has Released A New Version of Flexfax Called Hylafax. IT

Is Availible from <

ftp://sgi.com/sgi/fax/>. there is a hlyafax web

Page At <

http://www.vix.com/hylafax/>. Version V3.0PL1

Supported Many Types of Class 1/2 Fax Modems and SEVERAL UNIX SYSTEMS

Including AIX 3.2.3 or Greater. There is also a fax modem review

Document At the Same Site as . The flexfax

Related files on sgi.com is replicated on ftp.bsc.no as well.

> From:

Michael@hal6000.thp.uni-duisburg.de (Michael Staats)

We're Using Mgetty Sendfax for the Basic Modem I / O, I Wrote a Printer

Backend for the Mode Mode Uses CAN Send Faxes as Easy As The Print

PostScript. I Also wrote a little x interface composer to generate a

Fax Form That Makes Sending Faxes Very Easy. You can Find these

Programs at hal6000.thp.uni-duisburg.de under / pub / source.

Program Comment

Mgetty Sendfax-0.14.tar.gz Basic Modem I / O, Needs Hacking for AIX

X11 / XFORM-1.1.Tar.gz Small and Simple X Interface Composer

WITH An Example Fax Form. NEEDS

LIBXVIEW.A INCL. HEADERS.

Faxiobe.tar.gz Fax Backend, Needs Configuring For

Your Local Site

IF you need a binary version of libxview.a and the headers you'll find

Them under /pub/binaries/aix-3-2/lxview.tar.gz.

Subject: 4.23: LSOF - List Open Files

From:

Abe@purdue.edu (Vic Abell)

Q. How can I Determine The Files That A Process Has Opened?

Q. How can I Locate The Process That Is Using A SPECIFIC NETWORK Address?

Q. How can I LOCATE THE PROCESS THAT HAVE FILES OPEN ON A FILE SYSTEM?

A. Use Lsof (List open files).

From: "Juan G. Ruiz Pinto" <

Jgruiz@cyber1.servtech.com>

LSOF Is Available Via Anonymous FTP from

(for the MOST CURRENT VERSION). There is binary distributions in the

"binary" Directory.

A Prebuilt Installp (SMIT) Installable Package Is Available from

. The Installation Scripts in this package

Automatic or create a group "KMEM" DURING The Installand Uses "ACLIT" TO Allow The KMem Group To Read / DEV / MEM AND / DEV / KMEM.

THIS Configuration is Recommended by Vic Abell , The

Author of lsof.

Subject: 4.24: Popper - POP3 Mail Daemon

The Pop Server Is Available Via Anonymous FTP from

FTP: //ftp.qualcomm.com/quest/unix/servers/

The Makefile Supports AIX

Ftp.cc.berkeley.edu (128.32.136.9, 128.32.206.12).

There Are Two Versions in The Pub Directory: a Compressed Tar File

Popper-version.tar.z and a macintosh stuffit archive in binhex format

Called macpop.sit.hqx.

Problems Building Some Versions of Popper Can Sometimes Be Resolved By

Compiling with bsdcc or -d_bsd.

The Pine 3.95 package on Contains "Plug

And Play "Support for Both pop3 and iMAP Mail Reading Protocols. You

Can Also Get A Compiled Version of QPopper 2.2 There Also.

Subject: 4.26: MPEG LINK ERRORS VERSION 2.0

From: Nathan Lane <

Nathan@seldon.foundation.tricon.com>

.XshmcreateImage

.Xshmdetach

.Xshmattach

.Xshmgeteventbase

.XSHMPUTIMAGE

.XshmQueryExtension

... all for the shared memory extension of the x server.

You can Either choose to build it with shared memory or usout. I

Always do it without the performance increase is not really

Incredible, Except On Something Like A 2x0 Machine with the local bus

Graphics adapter. Just Take Out "DSH_MEM" in the cflags in the cflags in

Makefile for MPEG_PLAY. There is more information about shared memory

LINK ERRORS IN Section 1.513.

Also, in the module "Video.c" for MPEG_PLAY IT WILL COMPLAIN ABOT NOT

Having enough memory to flully optimize one of the loops. You can get

Around this by specification "qmaxmem = 8000" in Your CFLAGS LINE, But, The Extra Optimization Does Little Good in My Tests.

Subject: 4.27: NNTP, Inn

Link Errors Compiling NNTP May Occur Because Your Machine Lacks The

"patch" Command. patch can be obtained from gnu repositories. See Questions

4.29 for more information on patch.

Subject: 4.28: Zmodem - File Transfer

Rzsz Is Chuck Forsberg's Script for Z-Modem. It is available by ftp at

or

Directly from Forsberg At Omen Technology BBS AT 503-621-3746.

Hints:

0. Build with "make posix"

1. USE An 8-Bit Clean Version of Rlogin or Telnet (NOTE: BELOW)

2. Set the system to be transparent, i use "terminal download"

3. Ensure Hardware Flow-Control

Note,

Carlson@xylogics.com (James Carlson) Suggests: rlogin is

"slightly" unclean - IF AN FF FF 73 73 APPEARS in The DataStream, IT

Can Be Ripped Out by rlogind as a 'Window size change' request.

[Ed Note: The important part is using an 8-bit clean application,

Since There several import available of rlogin and telnet availible

You May Need to try Both and hunt down manuals to find the right flags

For your system]

Subject: 4.29: Patch - Automated File Updates

AIX 3.2.5 Does Not Ship with patches, a utility to apply the differences

Between Two Files to make the Tool IS OFTEN Used to THEM IDENTITEN

Update Source Code.

Subject: 4.30: XNTP - Network Time Protocol, SYNCHRONIZES Clocks

From: Joerg Schumacher <

Schuma@ips.cs.tu-bs.de>

AIX 4: xntpd in bos.net.tcp.client

Source: ftp://ftp.udel.edu/pub/NTP/www:

http://www.eecis.udel.edu/~ntp/

Subject: 4.31: GNU Screen and AIX 4.1.x

Once Again, Binaries Can Be Had from .

Subject: 4.32: SCSI Scanner Software

There Is The Sane Project That Strives To Deliver An Open Source Scanner

Solution for UNIX:

<

http://www.mostang.com/sane/>>

Subject: 4.33: Pager / Page Software

There is information on paging, paging programs and listing of the

Archive Sites to Download At The Web Site:

<

ftp://ftp.airnote.net:/pub/paging-info/ixo.faq>.

Hylafax (See 4.22) Supports sending message.

Commercially there is: alphapage (r) MD2001 from Information Radio

Technology, Inc. In Cleveland, OH.

Subject: 4.34: Java Development Kit

From: Curt Finch <

Curt@tkg.com>

Subject: 4.35: Sendmail

If you want to use src to start and stop bsd sendmail, do the folowing

After Installing IT:

Chssys -s sendmail -s -n 15 -f 9 -a -d99.100

THIS TELLS SRC That Sendmail May Be Stopped with Signals 15 and 9. IT ALSO

Arranges for Sendmail Not to Daemonize Itself, Since It Will Run Under SRC.

Subject: 5.00: THIRD PartY Products

[Ed .: Entries in this section section area edited to prevent the from loosition

Like Advertising. Price Given May Be Obsolete. companies Mentioned

Are for Reference Only and is not endorsed in any fashion.

Subject: 5.01: Non-IBM AIX Hosts.

BULL <

http://www.bull.com/> Manufactures and sells aix systems. to

Find a distributor in your country, check the web

and / or

. Other Vendors and Manufactures Include Motorola, Harris, General

Automation and apple.

Kenetics Technology Inc.

35 Campus Drive

Edison nj 08837

Contact: Brian Walsh

Phone - 908-805-0998

Fax - 908-346-1288

Manufactures a Power PC Based RS-6000 Clone That Runs Aix Versions

3.2.5 and 4.1.4.

A Typical Configuration With A 100 MHz Power PC 601 and 32 MB RAM, AND 2

GB Hard Drive, Monitor, Keyboard and Networking IS About $ 4995.00

Subject: 5.02: Disk / Tape / SCSI

From: anonymous

- MOST SCSI DISK DRIVES WORK (IBM Resells Maxtor, Tested WREN 6 & 7 Myself);

Use OSDisk When Configuring (Other SCSI DISK).

- Exabyte: Unfortunately Only The ones IBM Sells Are Working.

A Few Other Tape Drives WILL WORK;

Use Ostape When Configuring (Other SCSI TAPE).

- STK 3480 "Summit": Works with Microcode Version 5.2b

> From:

Bell@hops.larc.nasa.gov (John Bell)

In Summary, Third Party Tape Drives Work Fine with The RS / 6000 Unless

You want to boot from itm. this is because ibm drives have 'extended

Tape Marks', Which IBM Claims Are Needed Because The Standard Marks

Between Files Stored on The 8mm Tape Are Unreliable. Thase Extended

Marks Are Used When Building Boot Tapes, So When Tape / 6000 Boots, IT

Searches for an ibm Tape Drive and refuses to boot without it.

> From:

Jrogers@wang.com (John Rogers)

On Booting with Non-IBM SCSI Tape Drives: I Haven't Tried It Myself But

Someone offered:

Turn Machine on with key in secure position.

WAIT Until Led Shows 200 and 8mm Tape Has Stopped Loading.

Turn Key to service position.

> From:

Amelcuk@gibbs.clarku.edu (andrew mel'cuk)

The IBM Dat is Cheap and Works. If you get all the patches before, (U407435, U410140) Andrewer to Buy Special "Media Recognition

System "Tapes (Maxell, Available from APS 800.443.4461 OR IBM # 21F8758)

The Drive Can Even Be a pleasure to use. You Can Also Flip A Dip Switch

On The Drive To Enable Using Any Computer Grade Dat Tapes (Read There)

Hardware Service Manual).

Other Dat Drives Also Work. I have Tried The Archive Python (Works) and

Experimented Extensively with the archive turbodat. The turnod is a

Very Fast Compression Unit, IS Not Finicky with Tapes and Doesn't

Require the body patches That The IBM 7206 Does. Works Fine with The

Base AIX 3.2 'Ost' Driver.

> From:

Pack@acd.ucar.edu (Daniel Packman)

>> You can Boot Off of Several Different Brands of Non-IBM EXABYTES.

>> At Least Tti and Contemporary Cybernetics Have Done Rather Complete

>> Jobs of emulating genuine ibm products.

A Model That Has Worked for US from Early Aix 3.1 Through 3.2 is A TTI

CTS 8210. this is the old low density drive. The Newer 8510 IS DUAL

Density (2.2gig and 5gig). Twelve Dip Switches on the Back Control THE

SCSI Address and Set Up The Emulation Mode. These Drives Have a Very

Useful set of lights forread-outs (EG, Soft Error Rate, Tape Remaining,

Tape Motion, ETC.).

Subject: 5.03: MEMORY

Nordisk Computer Services (Portland 503-598-0111, Seattle

206-242-7777) Is Reputed to Have Memory for Use ON Aix Platforms.

5xx & 9xx Machines Have 8 Memory Slots, 3x0S Have 2, And 3X5S Have

Only One. You NEOD TO Add Memory in Pairs for the 5xx & 9xx Machines

ExcePting the 520.

Some Highend 5xx'S & 9xx's Get Memory AS 2, 4, 4 4 Cards.

RS / 6000 Models M20, 220, 230 and 250 Can Use "PS / 2" Style Simm Memory.all Have 8 Simm Sockets. 60ns or Better Is Needed for the 250, 70ns

SHOULD BE OK in The M20, 220 and 230. THE M20, 220 AND 230 Area Limited

TO 64MB of MEMORY, THE 250 IS LIMITED TO 256MB.

40P, C10, C20, 41T and 42t Also User SIMM Memory.

G30 & g40 have two memory slots.

J30, J40, J50, R30, R40, R50 Have Four Memory Slots.

Thase Eight Models Have Cards Populated with dimm-like memory.

7248 (OLD 43P ') and 7043 (New 43P') USE DIMM-LIKE MEMORY.

F40, F50 & H50 Use Have Two Memory Slots.

S70, S7A & S80 GET MEMORY "BOOKS".

STILL Unidentified: E20, E30, F30, B50, H70

Caveat: Do Not Mix Manufacturers or Batches in The Same Memory Card / Bank.

PS: [Ed's Notice] I Say Dimm-Like Memory Because IT Won't Even Fit On

MY PC's DIMM SLOTS.

Subject: 5.04: Others

From: anonymous

IBM RISC System / 6000 Interface Products

National Instruments Corporation Markets a Family of Instrumentation

Interface Products for the IBM RISC System / 6000 Workstation Family. The

Interface Family Consists of Three Products That Give The Risc

System / 6000 Connectivity To The Standards of VMebus, Vxibus and GPIB.

For more information, Contact National Instruments Corporation,

OR 1-800-433-3488.

Subject: 5.05: C Compilers

Several C Compilers Are Available. You can choose from Glockenspiel,

Greenhills, IBM's XLC (Sold Seperately :), And GNU's G . Glockenspiel

May Now Be Part of Computer Associates. comu computing

(718-945-0009) Offers comeau C 3.0 with Templates. For a fulll

Development Environment There's ObjectCenter's C (Formerly Saber

C ). Subject: 5.06: Memory Leak Detectors

IBM's XLC comes with a product called the Heapview Debugger That Can

TRACE MEMORY PROBLEMS IN C and C Code.

SENTINEL HAS FULL MEMORY Access Debugging Capabilities Including Detection

Of Memory Leaks. Contact

Info@vti.com (800) 296-3000 OR (703) 430-9247.

INSIGHT from Parasoft (818) 792-9941.

There is also a debug_malloc posted in one of the

Comp. Sources Groups.

A Shareware Dmalloc is Available. Details At

<

http://www.letters.com/dmalloc/>.

TestCenter is now Available for the RS / 6000. IT Supports AIX 3.2.5

And Aix 4.1 on Power, Power2 and PowerPC Machines. More Information

Is Available from <

http://www.centerline.com/>.

PURIFY (408) 720-1600 is Not Availible for the RS / 6000.

Zerofault Detects Memory Violations and Leaks without Recompiling OR

Relinking. Works on all RS / 6000 Systems Running Aix 3.2.5 or Later,

DCE AND PTHREADS. Contact The Kernel Group, Inc. 1 512 433 3333,

Email <

ZEROFAULT@tkg.com>, <

http://www.tkg.com/>.

SUBJECT: 5.07: PPP

PPP Does Not Come with Aix 3.2.x (Only Slip).

PPP Support Was Announced for Aix 4.1.4, See:

<

http://www.Austin.ibm.com/software/OS/aix414.html>

David Crow Caught The Announce of A Non-IBM PPP Package That

Claims To Support Aix 4.x. More Information Is Availible from O

OR

A Comercial PPP for Aix Availible from Morningstar

(

Sales@morningstar.com OR

Marketing@morningstar.com) (800) 558 7827.

Subject: 5.08: Graphics Adapters

Abstract Technology Technologies Inc. (Austin TX, 512-441-4040,

Info@abstract.com)

Has Several High Performance Graphics Adapters for the RS / 6000.1600x1200, 24-Bit True-Color, And Low Cost 1024x768 Adapters Are

Available. Retail Prices Are Between US $ 1000-2000.

Subject: 5.09: Training Course

Email

Training@skilldyn.com with "Help" in The Body of the Message for

Information About How To Receive A List Course Descriptions for AIX *

And / or unix * coursealth office by Skill Dynamics.

Subject: 5.10: Hardware Vendors

New & Used RS6000S, Peripherals

Core Systems INC

1605 12th ave

Seattle Wa 98122

Phone (800) 329-2449

Fax (206) 329-3799

Optimus solutions

5825-a peachtree Corners EAST

Norcross Ga 30092

Phone 770-447-1951

Fax 678-291-9201

Email

Mark@optimussolutions.com

<

http://www.optimussolutions.com/>

Subject: 5.11: Debugging AIDES

From: curt finch

SCTRACE Reports System Calls (and More) Made by An Aix Process.

SCTRACE from Sevone Software <

Http://www.tkg.com>. IT IS $ 199 and A

Demo is available from .

Subject: 6.00: Miscellaneous Other Stuff

Information That Defies Catagories. ;-)

Subject: 6.01: Can I get support by e-mail?

IN General, NO, <

AiXbugs@austin.ibm.com> and <

Services@austin.ibm.com>

Are no longer supported.

IBM Does Maintain a Fee Based System, The Aix Support Family Services

AT 1-800-Call-AIX (1-800-225-5249) Option 8.

In canada:

Gary Tomic Mentioned That Canadian Customers Can Get Support from Their

BBS, cac.toronto.ibm.com at 142.77.253.16.

IN germany:

Thomas Braunbeck Reported That German Customers with ESS (Extended

Software Service) Contracts Can Get Support by E-mail Too. They CAN

Obtain Information by Sending Mail with Subject: Help Toaixcall@aixserv.mainz.ibm.de.

Various Flavors of Service Offering Are Available. Contact Your IBM Rep

For details.

Subject: 6.02: List of useful faxes

You Can Get Some Informative Faxes By Dialing IBM's FaxServer AT

1-800-IBM-4FAX. 1-415-855-4329 from outside the us. If you're calling

For The First Time, Push 3 THEN 2 TO Request a list of rs / 6000 related faxes.

IBM's Aix Support WWW Site,

,

Contains Many of The Same Documents. Select a country or region from the

Menu, The Look for "Technical Tips from IBM" on The Returned Page.

Subject: 6.03: IBM'S GOPHER, WWW, AFTP Presence.

There is now a new section Dedicated to Aix ON IBM's Main Web Server:

<

http://www.ibm.com/servers/aix>

The Following Are Various Other Resources:

(Verified Aug 9 1996 by Frank Wortner)

Thanks to Ronald S. Woan <

Woan@austin.ibm.com>

(fixdist PTFS)

(rlogin fixes& "

<

Gopher: //gopher.ibmlink.ibm.com> (Anonouncements & Press Releases)

<

http://www.Austin.ibm.com/> (Software, Hardware, Service & Support)

General IBM Information Like Product Announcements and Press Releases

Are Available Through World Wide Web At <

http://www.ibm.com/>.

Specific Information On The Risc System / 6000 Product Line and Aix

(Highlights Include Marketing Information, Technology White PAPERS AND

The Power 2 Technology Book Online Before It Hits The Presses,

Searchable Apar Database and Aix Support Fax Tips Online So you don't

Have to Type in All those scripts) Is Available At

Subject: 6.04: Some RS232 Hints

From:

Graeme@ccu1.aukuni.ac.nz, Sactoh0.sac.ca.us! jak

Q: How do you connect a Terminal to the RS232 TTY PORTS WHEN NOT USING

THE STANDARD IBM CABLE & TERMINAL TRANSPOSER?

A: 1- Connect Pins 2-> 3, 3-> 2, 7-> 7 on the db25's

2- On The Computer Side, Most of The Time Cross 6-> 20 (DSR, DTR).

Some Equipment May Require Connecting 6, 8, And 20 (DSR, DCD, DTR).

Also, Pin 1 (FG) SHOULD BE A Bare Metal Wire and the Cable Should Be

SHIELDED WITH. MOST People Don't Run

PIN 1 BECAUSE PINS 1 & 7 (SG) Are Jumpered ON MANY Equipment.

When Booting from Diskettes, The Port Speed ​​Is Always 9600 Baud. If You

Use smit to set a higher speed (38400 is nice) for Normal Use, Remember

To RESET YOUR TERMINAL BEFORE BOOTING.

Q: How do you connect a printer to the RS232 TTY PORTS

A: 1- Connect Pins 2-> 3, 3-> 2, 7-> 7 on the db25's

2- The Computer Side, LOOP PINS 4-> 5 (CTS & RTS)

转载请注明原文地址:https://www.9cbs.com/read-10638.html

New Post(0)