[kaffe] libraries/clib/net/InetAddressImpl.c cannot be compiled on old Linux
Ito Kazumitsu
ito.kazumitsu at hitachi-cable.co.jp
Thu Jun 26 00:07:01 PDT 2003
In message "Re: [kaffe] libraries/clib/net/InetAddressImpl.c cannot be compiled on old Linux"
on 03/06/25, Dalibor Topic <robilad at yahoo.com> writes:
> > But unfortunately, after ./configure I get:
> >
> > $ grep in_port_t config/config.h
> > `in_port_t'. */
> > #define in_port_t unsigned unknown
> >
> > With the original getaddrinfo-1.6, I get a good definition:
>
> that's weird, I've just checked that all files I checked in (except for
> memset.c) match those from getaddrinfo 1.6. I didn't change configure.in. Could
> you post your config.log somewhere?
Well, libiconv had something to do with this program. in_port_t was
made unknown not because conftest returned a wrong result but
because libiconv could not be loaded !?
config.log says:
configure:37193: gcc -o conftest -g -O2 -Wall -Wstrict-prototypes -DKAFFE_VMDEB
UG conftest.c -liconv >&5
configure:37311: warning: function declaration isn't a prototype
configure:37193: $? = 0
configure:37193: ./conftest
./conftest: error in loading shared libraries
libiconv.so.2: cannot open shared object file: No such file or directory
configure:37193: $? = 127
configure: program exited with status 127
configure: failed program was:
| #line 37193 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "kaffe"
| #define PACKAGE_TARNAME "kaffe"
| #define PACKAGE_VERSION "1.1.x-cvs"
| #define PACKAGE_STRING "kaffe 1.1.x-cvs"
(snip)
| #define HAVE_ICONV 1
| #define ICONV_CONST const
| #define HAVE_INET_NTOP 1
| #define HAVE_INET_PTON 1
| #define HAVE_ARPA_NAMESER_H 1
| #define HAVE_MEMSET 1
| /* end confdefs.h. */
|
| #include <sys/types.h>
| #include <sys/socket.h>
| #include <netinet/in.h>
| int main() {
| struct sockaddr_in addr;
| return (sizeof(addr.sin_port) == sizeof(short)) ? 0 : 1;
| }
LD_LIBRARY_PATH=/usr/local/lib ./configure gave a favorable
result.
$ grep in_port_t config/config.h
`in_port_t'. */
#define in_port_t unsigned short
More information about the kaffe
mailing list