|
|
 |
Re: FN-FORUM: compiling PHPain on linux (warning: long and boring)
date posted 30th January 2004 13:19
Chris thanks for your pointers (err no pun intended)
Chris Marshall wrote:
>
> Sounds like iconv.c might potentially not be #including a .h file
> that it needs, or that the declaration of _libiconv_version is
> #ifdefed out somehow.
>
> This sort of thing can crop up when:-
> a) there's more than one installed version of something -
> in different locations, and of different versions
> b) when something about a particular vendor's Linux
> release has monkeyed around with the system header
> files
> c) the build process for the thing you're trying to build
> is duff
>
my money's on (a) definitely. When I started the process, I REALLY
didn't know what I was doing, now I half know (ok 30% maybe) what is
going on. But I've definintely had several versions of everything and
even made the mistake of copying a couple of files around manually
(sorry), and apache /mysql / php were (stll are) all up and running
anyway but standard builds (wihthout source).
>
> In the libiconv directory, there should be an includes directory
> somewher with lots of .h files in it. It could be the root of
> the installation. Grep these .h files for _libiconv_version and
> see if it falls out of one of them. Then check that iconv.c
> #includes that file, or another .h that does. If not, add the
> appropriate #include line and try again.
tried adding a #include "iconv.h" (which included the line "extern int
_libiconv_version;") to iconv.c to no avail. I'm assuming it was
already included (can't remember much of my C). sigh
thanks again
Nick
|
 |
|