Subject: Re: [htdig3-dev] Strptime and headers (was HtFile directory listings)
From: Joe R. Jah (firstname.lastname@example.org)
Date: Sun Nov 19 2000 - 22:47:34 PST
On Sun, 19 Nov 2000, Geoff Hutchison wrote:
> Date: Sun, 19 Nov 2000 19:50:35 -0600
> From: Geoff Hutchison <email@example.com>
> To: "Joe R. Jah" <firstname.lastname@example.org>
> Cc: email@example.com
> Subject: Re: [htdig3-dev] Strptime and headers (was HtFile directory listings)
> At 2:45 PM -0800 11/19/00, Joe R. Jah wrote:
> >It is important that it compiles on as many platforms as possible. I have
> >been trying to compile 3.2x on BSDI without success. It requires some
> >system header files that are nonexistent on BSDI: langinfo.h, nl_type.h,
> >features.h, and perhaps other files.
> Let's hold on a second here. Yes, it's important that it compiles on
> as many platforms as possible. Last I heard, the code (i.e. 3.2.0b2
> or later) compiles on: FreeBSD, Solaris, IRIX, Linux, HP-UX, and AIX.
> Please correct me if I'm wrong with these.
I can neither confirm nor deny the correctness of your list. I saw a
vague message about 3.2x compilation on FreeBSD in the list, but there
were no follow up on it, nor was any response to my inquiry.
> However, I'm just not going to put in a whole pile of headers for
> just the strptime.c replacement. As it stands, I think it's silly
> that I've put in two headers (langinfo.h and nl_type.h) for the one
> file when it only seems a problem on BSDI. And putting in a whole
> slew of glibc header files just doesn't make any sense, esp. when it
> seems it's not a problem on other platforms (which seem to have
I am not sure why langinfo.h was put in. It was already in when I first
tried to compile 3.2x on my BSDI box and reported the missing nl_type.h.
I can only assume that some other platform required it.
> So let's step back for a second. Why am I using this strptime.c
> replacement? This is the glibc version, picked because it's portable,
> reliable and most importantly well-maintained. So I see two
> a) Someone finds me a strptime.c that's maintained by someone else
> and doesn't need these headers. (For example, what do the *BSD
> versions use for their libc?)
Ok, I downloaded glibc-2.2 and tried to install it, but:
checking host system type... i386-pc-bsdi4.0.1
*** The GNU C library is currently not available for this platform.
*** So far nobody cared to port it and if there is no volunteer it
*** might never happen. So, if you have interest to see glibc on
*** this platform visit
*** and join the group of porters
I extracted features.h from it. it requires stubs.h, which is neither in
BSDI nor in glibc;(
> b) Someone gives me a nice guarantee that strptime works *correctly*
> most platforms or helps me come up with a configure test for it so
> we'll use the system version where available and our version
The configure test seems to be the perfect solution, also for regex.h.
> Look, if you have strptime on your system, you can patch the code.
> Just rip out strptime.c and edit the appropriate places in the
> code--I think they're now all localized to HtDateTime.*
I have searched for strptime all over my system without success.
-- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah firstname.lastname@example.org
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to email@example.com You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Sun Nov 19 2000 - 22:55:24 PST