Operating System - HP-UX
1752679 Members
5385 Online
108789 Solutions
New Discussion юеВ

Re: Problem with sudo installation

 
Daniel Aquere de Olivei
Regular Advisor

Problem with sudo installation

Hi,

I┬┤m trying install sudo 1.6.8p12 on HP-UX 11.0.

When I execute "make" this message is showed:

"cc -o visudo visudo.o fileops.o gettime.o goodpath.o find_path.o sudo.tab.o lex.yy.o alloc.o defaults.o err.o fnmatch.o strlcpy.o strlcat.o closefrom.o snprintf.o getprogname.o
/bin/sh ./libtool --mode=link cc -o sudo_noexec.la sudo_noexec.lo -avoid-version -rpath /usr/local/libexec
/usr/bin/ld -b +h sudo_noexec.sl +b /usr/local/libexec -o .libs/sudo_noexec.sl .libs/sudo_noexec.o -lc
/usr/bin/ld: DP relative code in file .libs/sudo_noexec.o - shared library must be position
independent. Use +z or +Z to recompile.
*** Error exit code 1"

Does anyone have any idea to solve this problem?

Tks.

Daniel
3 REPLIES 3
Rick Garland
Honored Contributor

Re: Problem with sudo installation

Without dissecting the messages too deeply, you are missing a library.

Why not get the depot format of sudo from HP?
http://software.hp.com

No cost to download and it installs with the swinstall command.

Christopher Caldwell
Honored Contributor

Re: Problem with sudo installation

I haven't specifically built sudo for HP, but when I've gotten this error message for other applications, it's been a configure/environment issue.

The error message means that your trying to bind PIC and non-PIC together.

I'm guessing you're missing some CFLAGS or LDFLAGS. This usually happens because there's the ./configure (or similar) doesn't understand HP-UX or because you're mixing GNU and HP specific utilities.

Try 1 or more of the following
1) read the README to make sure there aren't HP specific instructions

2) consider adding +z to the CFLAGS in your Makefile(s).

3) run configure with CFLAGS=+z;export CFLAGS in your environment. Once you're done,+z should appear in your Makefile(s)

4) post more information for us
Jeffrey W. Stewart
Frequent Advisor

Re: Problem with sudo installation

From the Install file.
HP-UX:
The default C compiler shipped with HP-UX does not support creating position independent code and so is unable to support sudo's "noexec"
functionality. You must use either the HP ANSI C compiler or gcc for noexec to work. Binary packages of gcc are available from http://hpux.connect.org.uk/ and http://hpux.cs.utah.edu/.

I tried this on hpux 10.2 and got the same error. I don't have GCC nor can I install it.
Wish I could get the binary of sudo for 10.2