From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: The dbase conrtib doesn't compile |
Date: | 2001-12-21 05:07:20 |
Message-ID: | 200112210507.fBL57K800439@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > The -liconv used to be there before in 7.1 and earlier. It was only
> > removed in September. Are you saying those system calls work for you,
> > but you don't have a libiconv?
>
> The <iconv.h> routines live in libc on HPUX. And on Red Hat Linux
> (I suppose also on other Linux flavors, but RHL 7.2 is the only one
> I have handy to check). And presumably on whatever platform Peter uses,
> else he'd not have removed the -liconv.
>
> Christopher has not yet opined on where they are on his platform...
> though since it's a BSD variant, it might be the same as yours.
>
> To fix this correctly we'd need to add configure tests for <iconv.h>
> and libiconv. I'm disinclined to do that, partly because it'd slow
> down configure for everyone whether they intended to build contrib/dbase
> or not, but mainly because in the present state of the build process
> it'd cause libiconv (if present) to be linked to *every* executable
> we build.
>
> I wonder if it's practical for contrib modules to have their own
> mini-configure checks above and beyond what the main configure script
> does?
>
> In the meantime, I don't really care that much whether dbase/Makefile
> contains -liconv or not; clearly, that will help some platforms and
> hurt others no matter which way we jump. I was just pointing out
> that your makefile change is not a clear win.
Yes, glad you pointed it out. I think the best solution is to remove
#define HAVE_ICONV_H and -liconv so it will work fine on all platforms.
If someone wants the iconv conversions, they can add the needed #define
and link library, OK?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-12-21 05:12:40 | Re: The dbase conrtib doesn't compile |
Previous Message | Tom Lane | 2001-12-21 04:59:24 | Re: The dbase conrtib doesn't compile |