1827006 Members
2333 Online
109712 Solutions
New Discussion

Re: C program scheduler

 
SOLVED
Go to solution
AntBark
Occasional Advisor

C program scheduler

I recently upgraded from a D320 server to a B1000 workstation - From HPUX 10.2 to HPUX 11.00, and probably more important from 32 to 64 bit. Oracle 8.1.6 64 bit was also installed. Had some minor hickups but everything went fine untill I tried moving my C applications. All applications compiles fine on the new system - The problem though: I have got a program scheduler developed in C which doesn't operate correctly - no errors or crashes but it doesn't do what it is suppose to. I've used this scheduler on several other machines - only difference is that this is a workstation and 64 bit. Basically the program uses pstat_getproc, and execv to monitor and schedule programs. The program runs but doesn't get anywhere ??? Any suggestions ?
Thank you
4 REPLIES 4
Graham Cameron_1
Honored Contributor
Solution

Re: C program scheduler

There's a note on 32/64 bit compatibility in the man page.

Try compiling with -D_PSTAT64

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
AntBark
Occasional Advisor

Re: C program scheduler

Thank allot Graham - helped alot!

I got this error eventially :
cpp: "/usr/include/sys/stdsyms.h", line 297: error 4062: "wide mode pstat interfaces not supported in strict ANSI mode."

Does this mean I may never use -Aa in my compilation when using -D_PSTAT64 ?

cheers
Anthony

You relieved my Monday stress ALOT THANX!
Gregory Fruth
Esteemed Contributor

Re: C program scheduler

Try "cc -Ae" instead of "cc -Aa". Strict
ANSI mode (-Aa) is indeed quite strict. I've
always found -Ae to be more useful.
AntBark
Occasional Advisor

Re: C program scheduler

Thanks

This site rocks ....