Re: The dbase conrtib doesn't compile

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(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 04:59:24
Message-ID: 16384.1008910764@sss.pgh.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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-12-21 05:07:20 Re: The dbase conrtib doesn't compile
Previous Message Bruce Momjian 2001-12-21 04:38:21 Re: The dbase conrtib doesn't compile