Operating System - HP-UX
1752571 Members
5198 Online
108788 Solutions
New Discussion юеВ

Re: compile sudo 1.6.8 problem

 
Anders Gullberg
Frequent Advisor

compile sudo 1.6.8 problem

Hi all!

I try to compile sudo 1.6.8 and the only option to configure i use is --prefix=/opt to get a new installations directory.
When i run make it stop with following error:
#
/usr/bin/ld -b +h sudo_noexec.sl +b /tmp/sudo/sudo-1.6.8 -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
#
I guess i should put in +z or +Z somewhere in the Makefile but where?
Please help!

Anders
3 REPLIES 3
Steve Steel
Honored Contributor

Re: compile sudo 1.6.8 problem

Hi

This should be set in your compiler command line.
> # gcc +Z

see

http://www.caucho.com/support/resin-interest/0104/0352.html


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Anders Gullberg
Frequent Advisor

Re: compile sudo 1.6.8 problem

Hi Steve and thanks for your fast reply.

First i have to say I├В┬┤m a rookie to this.
I search for gcc in the Makefile and i couldnt find it.
It looks like i use cc to compile.
I tried to put in +Z in alot of places aftr cc but it ends with same result.
Its alot of "try end error" right now :(

Ande
Anders Gullberg
Frequent Advisor

Re: compile sudo 1.6.8 problem

I had forgot to have all the dependencies to gcc installed. When i install them everything works fine.

Anders