1830820 Members
2857 Online
110016 Solutions
New Discussion

sudo on HP-UX 11.00

 
SOLVED
Go to solution
Gary Glick
Frequent Advisor

sudo on HP-UX 11.00

Is there a hp depot for sudo running on 11.00?
I can't seem to find one.

Thank you

Gary
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: sudo on HP-UX 11.00

You waited too long for a .depot version but you can still download the source from any of the HP-UX Porting Centre's and make it yourself. It's a very easy build.
If it ain't broke, I can fix that.
Darrel Louis
Honored Contributor
Solution

Re: sudo on HP-UX 11.00

Gary Glick
Frequent Advisor

Re: sudo on HP-UX 11.00

I'm getting close to getting suo built.
I've installed gcc & the executable is in /usr/local/bin. The configure script runs successfully. I"m running into problem when I run the make command though. Here's the error message any idea.

I haven't forgotten about the points, I'm just waiting until I get this figured out, so determine how many.

Thank you.

Gary - Error message follows...




make
/bin/sh ./libtool --mode=link /usr/local/bin/gcc -o sudo_noexec.la sudo
_noexec.lo -avoid-version -rpath /usr/local/libexec
/usr/local/bin/gcc -shared -fPIC -Wl,+h -Wl,sudo_noexec.sl -Wl,+b -Wl,/usr/local
/libexec -o .libs/sudo_noexec.sl .libs/sudo_noexec.o -lc
/usr/ccs/bin/ld: DP relative code in file .libs/sudo_noexec.o - shared library m
ust be position
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.
A. Clay Stephenson
Acclaimed Contributor

Re: sudo on HP-UX 11.00

The -fpic (or -fPIC) have the same meaning for gcc that +z and +Z (respectively) have for the HP ANSI C compiler. You are good from that perspective; however, it appears that since you are building a shared library, you need to assert the -b linker (ld) option. The "Wl," options are those that gcc passes on to the linker. Man ld for details.

Not having an ANSI/C or aCC HP compiler makes things a little more difficult to build than they would be otherwise but gcc should get you there.
If it ain't broke, I can fix that.
Gary Glick
Frequent Advisor

Re: sudo on HP-UX 11.00

Ok, I got it figured out.
I needed to do a clean up from the attempt to compile before I had gcc properly configured.

Everything appears to be working now.

Thanks for all your help.

Gary
Gary Glick
Frequent Advisor

Re: sudo on HP-UX 11.00

See above comments