[sudo-users] Sudo Comiplation for HP-PA Risc 1.1

Ruchi Verma ver.ruchi at gmail.com
Wed May 14 08:51:37 EDT 2008


Hi Todd,

Thanks for your reply. I am using GNU C compiler. I used the following
option in the CFLAGS and LDFLAGS :

-mpa-risc-1-1

However it did not work for me.

While running make I got this warning:

*/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (check.o) was
detected. The linked output may not run on a PA 1.x system.
*        gcc -c -I. -I.  -mpa-risc-1-1 -msoft-float
-D_PATH_SUDOERS=\"/opt/soe/local/etc/sudoers\"
-D_PATH_SUDOERS_TMP=\"/opt/soe/local/etc/sudoers.tmp\" -DSUDOERS_UID=0
-DSUDOERS_GID=0 -DSUDOERS_MODE=0440  visudo.c
        gcc -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 glob.o fnmatch.o memrchr.o
strlcpy.o strlcat.o closefrom.o snprintf.o getprogname.o  -mpa-risc-1-1
-msoft-float
/*usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (visudo.o) was
detected. The linked output may not run on a PA 1.x system*.
        /bin/sh ./libtool --mode=compile gcc -c -I. -I.  -mpa-risc-1-1
-msoft-float -D_PATH_SUDOERS=\"/opt/soe/local/etc/sudoers\"
-D_PATH_SUDOERS_TMP=\"/opt/soe/local/etc/sudoers.tmp\" -DSUDOERS_UID=0
-DSUDOERS_GID=0 -DSUDOERS_MODE=0440  ./sudo_noexec.c
mkdir .libs
 gcc -c -I. -I. -mpa-risc-1-1 -msoft-float
-D_PATH_SUDOERS=\"/opt/soe/local/etc/sudoers\"
-D_PATH_SUDOERS_TMP=\"/opt/soe/local/etc/sudoers.tmp\" -DSUDOERS_UID=0
-DSUDOERS_GID=0 -DSUDOERS_MODE=0440 ./sudo_noexec.c  -fPIC -DPIC -o
.libs/sudo_noexec.o
        /bin/sh ./libtool --mode=link gcc -mpa-risc-1-1 -msoft-float -o
sudo_noexec.la sudo_noexec.lo -avoid-version -rpath
/opt/soe/local/sudo-1.6.9/libexec
gcc -shared -fPIC -Wl,+h -Wl, sudo_noexec.sl -Wl,+b
-Wl,/opt/soe/local/sudo-1.6.9/libexec -o .libs/sudo_noexec.sl
.libs/sudo_noexec.o  -lc  -mpa-risc-1-1 -msoft-float
*/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file
(.libs/sudo_noexec.o) was detected. The linked output may not run on a PA
1.x system.
*creating sudo_noexec.la
(cd .libs && rm -f sudo_noexec.la && ln -s ../sudo_noexec.la sudo_noexec.la)

Could you please suggest something.

With Regards



On 5/13/08, Todd C. Miller <Todd.Miller at courtesan.com> wrote:
>
> In message <33df27e70805122117n2b4fb2fds3f172c3c236641b1 at mail.gmail.com>
>        so spake "Ruchi Verma" (ver.ruchi):
>
> > I need to compile sudo for HP 11.11PA Risc 1.1. Could you please suggest
> me
> > the compiler options and Flags which I should use so that I am able to
> > compile Sudo for this architecture using a PA-Risc 2.0 machine as I do
> not
> > have a PA-Risc 1.1 machine available.
>
> If you add:
>
>    +DAportable
>
> to both CFLAGS and LDFLAGS in the Makefile the compiler will generate
> binaries that work on both PA-RISC 1.1 and 2.0.
>
> - todd
>



More information about the sudo-users mailing list