help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build issues with libgnu


From: Johannes Zarl
Subject: Build issues with libgnu
Date: Wed, 20 Aug 2014 16:39:55 +0200
User-agent: KMail/1.13.7 (Linux/3.10-0.bpo.3-amd64; KDE/4.8.4; x86_64; ; )

Hi,

I'm stuck at compiling Octave 3.8.2 because some header files in the libgnu 
directory have incompatible definitions to the system-installed headers (I'm 
running SLES 11.1).

I get several errors like the following one:

In file included from /usr/include/fcntl.h(38),
                 from ../libgnu/fcntl.h(61),
                 from system/oct-syscalls.cc(35):
../libgnu/sys/stat.h(657): error: declaration is incompatible with previous 
"fstat" (declared at line 214 of "/usr/include/sys/stat.h")
  _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf));
  ^

Line 214 of sys/stat.h reads:
extern int fstat (int __fd, struct stat *__buf) __THROW __nonnull ((2));

I already tried commenting out the offending lines in libgnu/sys/stat.h, but 
then the build fails because the functions are referenced using the gnulib:: 
namespace in some places in octave.

Is there any workaround for this issue?
Should I file a bug report on this issue, or is this a bug in libgnu?

Cheers,
  Johannes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]