Ethereal-users: Re: [Ethereal-users] Compile problem on HP-UX 11i

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 25 Jul 2003 12:05:39 -0700

On Friday, July 25, 2003, at 3:08 AM, Hansen.Ole OHA wrote:

I guess, the __mon_yday i defined in the strptime.c, but somehow the __mon_yday code doesn't show up in the strptime.o?

That's odd, because the only way I can see wherein it wouldn't be defined in strptime.o would be if _LIBC were defined - but

1) I don't see any place where it's defined (although it could be defined by an HP-UX header file)

and

2) if it's not defined, I wouldn't expect it to compile, as it includes various headers from the GNU libc source tree, etc. (Ethereal's strptime.c came from GNU libc, and I guess it's set up so you can build it as a standalone routine, or as part of libc).

Try putting before the comment

	/* This is defined in locale/C-time.c in the GNU libc.  */

in strptime.c a line

	#error "Hey, this isn't libc, what's going on?"

and see if Ethereal compiles.

However, the other mystery is "why didn't Ethereal's configuration script find strptime in the C library?", as it appears that, at least in some recent version of HP-UX, there *is* a strptime(). What does "man strptime" report on your system?