Bug 1017

Summary: Compiling error on HP-UX 11.31
Product: Sudo Reporter: Jeremy Ho <jeremy.ho>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: low    
Version: 1.9.8   
Hardware: HP   
OS: HI-UX/MPP   

Description Jeremy Ho 2022-01-10 16:59:39 MST
Followed the instructions from HPUX.Install

Untar 1.9.8p2 source code & installed the dependencies per HPUX.Install
./configure - looks fine
make - errored out with the following last few lines:
Not sure what was wrong and couldn't find similar error on website.
Thanks.

libtool: link: /bin/true .libs/sample_approval.a
libtool: link: rm -fr .libs/sample_approval.lax .libs/sample_approval.lax
libtool: link: ( cd ".libs" && rm -f "sample_approval.la" && ln -s "../sample_approval.la" "sample_approval.la" )
Make: line 342: syntax error.  Stop.
*** Error exit code 1

Stop.
Comment 1 Todd C. Miller 2022-01-10 19:50:00 MST
I'm unable to reproduce that problem on HP-UX 11.31 with sudo-1.9.8p2.tar.gz from www.sudo.ws (and no additional patches).  I've tried both /usr/ccs/bin/make and GNU make.  If you downloaded the sudo source from somewhere else it is possible they've made some changes.

Can you attach the Makefile that it is complaining about?  I've guessing this is plugins/sudoers/Makefile but it not completely obvious from the the output you quoted.  If you have GNU make installed you might try using that and see if you still get an error.