I get the following error(s), when building guile. The error is with both the versions, version 2.2.2, version 2.2.0 and version 2.0.14
fports.c: In function 'fport_input_waiting':
fports.c:626:10: error: variable 'pollfd' has initializer but incomplete type
struct pollfd pollfd = { fdes, POLLIN, 0 };
fports.c:626:34: error: 'POLLIN' undeclared (first use in this function)
struct pollfd pollfd = { fdes, POLLIN, 0 };
fports.c:626:17: error: storage size of 'pollfd' isn't known
struct pollfd pollfd = { fdes, POLLIN, 0 };
I build the package with the following steps:
$ wget "$DOWNLOAD_URL"
$ tar xzf guile-{$VERSION}.tar.gz
$ cd guile-${VERSION}
$ ./configure --prefix=$HOME/.local --disable-static --disable-networking
$ make -j 12
[UPDATE> I had installed libunistring-0.9.7
and gc-7.6.0
to $HOME/.local
, so I used the following ./configure
command, but to no better result.
$ ./configure --prefix=$HOME/.local \
--with-libunistring-prefix=$HOME/.local \
--with-sysroot=$HOME/.local \
--with-libgmp-prefix=$HOME/.local \
--with-threads ## updated configure command
config.log
says
451 configure:8023: checking for poll.h
452 configure:8023: gcc -c -g -O2 conftest.c >&5
453 configure:8023: $? = 0
454 configure:8023: result: yes
Looking a little deeper, I see that the required file poll.h
seems to
be defined in lib/poll.h
But I also have a poll.h
in the /usr/include/poll.h
which
redirects to /usr/include/x86_64-linux-gnu/sys/poll.h
There is also libguile/poll.h
which redirects to libguile/__scm.h
And here is __scm.h
there is no definition of struct pollfd
There seems to be something wrong while configuring the package.
I am using an Ubuntu server. And the sysadmin route may take a little more than usual. So I prefer building and installing a local package.
I am trying to compile with gcc-4.8
Does anyone know how to get it to compile?