Running configure for OpenSSH-3.6.1p2 indicates that utimes() is not found. This leads to a type conflict error which prevents Making the package. The problem did not exist under 3.6p1 and all previous versions that I've built. It appears to be a result of a new automake version, but that is only wild speculation. Changing line 6187 in the configure file from 'char utimes ();' to 'int utimes ();' appears to provide a workaround so that OpenSSH can be configured and built. I'm working under HP-UX 10.20 using Gcc 3.0 and mostly Gnu tools.
The test (trimmed) fragments from configure: 3.6.1p1 (autoconf 2.53): char utimes (); char (*f) (); int main () { #if defined (__stub_utimes) || defined (__stub___utimes) choke me #else f = utimes; #endif return 0; } 3.6.1p2 (autoconf 2.57): char utimes (); #if defined (__stub_utimes) || defined (__stub___utimes) choke me #else char (*f) () = utimes; #endif int main () { return f != utimes; return 0; } I'll upgrade autoconf on my HP (11.00) and see if I can reproduce the problem. On a slightly related note, do we need to check for utimes() twice? There's a specific check for it, then it's also in the main AC_CHECK_FUNCS list.
It would be nice to see the section of config.log where the test fails on HP. Re: "utimes also in the main AC_CHECK_FUNCS list", it was probably an oversite on my part. If you yank it out of the AC_CHECK_FUNCS section, you'll have to add a HAVE_UTIMES template to acconfig.h
Created attachment 281 [details] config.log.gz from HP-UX 11.00 Full log attached. The failing piece is: configure:6109: result: yes configure:6175: checking for utimes configure:6225: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -D_HP UX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 conftest.c -lz -lnsl -lxnet -ls ec >&5 configure:6250: conflicting types for `utimes' /usr/include/sys/time.h:484: previous declaration of `utimes' configure:6228: $? = 1 configure: failed program was:
I was about to submit a bug report to the autoconf folks, but before I did I pulled the latest autoconf CVS tree (it calls itself 2.57a). This problem appears to be fixed there. I rebuilt configure with it and then rebuilt OpenSSH on HP-UX 11.00, which worked OK.
I see the same problem on HP/UX 11.00 on parisc and 11.22 on ia64 using the native compiler.
Created attachment 291 [details] configure from 3.6.1p2 rebuilt with autoconf-2.57a Updated configure, just replace configure from 3.6.1p2 then "make distclean && ./configure && make". This works for me (11.00 w/gcc), I'd be interested in other versions/configurations.
Have tested autoconf-2.52 on HP-UX for this and it works OK.
3.7p1, 3.7.1p1 and 3.7.1p2 are all built with autoconf 2.52 so do not have this problem.
Mass change of RESOLVED bugs to CLOSED