Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Problem compiling openssh 3.9p1 on HP-UX 10.20 |
|---|---|
| Date: | Fri, 4 Feb 2005 08:05:55 -0500 |
On Thu, Feb 03, 2005 at 07:16:12AM +0100, peter.kielbasiewicz@philips.com wrote:
When I try to compile openssh 3.9p1 on HP-UX 10.20 I get the error below. I have tried with gcc 3.0.1 and HP92453-01 A.10.32.30 HP ANSI C Compiler.
#compiled with gcc: In file included from ssh-keyscan.c:16: /usr/include/setjmp.h:35: `_JBLEN' undeclared here (not in a function)
Oh... very interesting. Here is the relevant section from setjmp.h
on one of my 10.20 boxes:
#ifdef _INCLUDE_POSIX_SOURCE
# ifdef __hp9000s800
typedef double sigjmp_buf[_JBLEN/2];
# endif /* __hp9000s800 */
So I conclude that the reason it worked for me on 10.20, but not for you,
is that I'm on a "700" box (workstation series), and you're on an "800"
(server).
Now, the really *weird* part is that the only place I can find a
definition for _JBLEN in the system headers is in /usr/include/ppfm.h:
#ifdef MSDOS
#define _JBLEN 20 /* Must match std.h */
#define setjmp setjmp_nck
#define longjmp longjmp_nck
typedef char jmp_buf[_JBLEN];
extern long setjmp_nck(jmp_buf);
#endif
(But I do not have an "std.h" file. I have no clue what they're referring
to there.)
I'd suggest you consult an HP-UX newsgroup or mailing list for this one.
I don't know if you're missing some header that you should have by
virtue of being on an "800" machine, which I wouldn't have on my "700",
or whether your compiler is simply not set up correctly, etc.
For whatever it's worth, here's the patch that I used when I built OpenSSH
3.9p1 on my 700-series 10.20 boxes using gcc 3.2:
--- includes.h.orig Fri Sep 17 10:03:08 2004
+++ includes.h Fri Sep 17 09:52:03 2004
@@ -186,8 +186,20 @@
* of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
*/
#ifdef __hpux
-# ifdef _INCLUDE__STDC__
-# undef _INCLUDE__STDC__
+# include <sys/privgrp.h>
+# if defined(PRIV_PSET)
+# define _hpux_11i
+# elif defined(PRIV_SPUCTL)
+# define __hpux_11x
+# elif defined(PRIV_SERIALIZE)
+# define __hpux_10x
+# elif defined(PRIV_SETRUGID)
+# define __hpux_9x
+# endif
+# if defined(_hpux_11i) || defined(__hpux_11x)
+# ifdef _INCLUDE__STDC__
+# undef _INCLUDE__STDC__
+# endif
# endif
#endif
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Using existing keys, Antony Gelberg |
|---|---|
| Next by Date: | Re: Using existing keys, Roumen Petrov |
| Previous by Thread: | Problem compiling openssh 3.9p1 on HP-UX 10.20, peter . kielbasiewicz |
| Next by Thread: | Re: Problem compiling openssh 3.9p1 on HP-UX 10.20, Atro Tossavainen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |