help-octave
[Top][All Lists]
Advanced

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

Re: " strerror not found" while compiling octave-3.3.51


From: Philip Nienhuis
Subject: Re: " strerror not found" while compiling octave-3.3.51
Date: Sat, 19 Jun 2010 08:27:03 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4

David Grundberg wrote:
On 06/16/2010 10:29 AM, Philip Nienhuis wrote:
Hi,

While trying to build octave-3.3.51 (downloaded .tar.gz earlier this
week) I get the following error:

(System: Mandrivalinux 2009.1 CoreDuo 2.5 Ghz, 2GB RAM, 32b)

<snip>
dirfns.cc:86: error: "strerror" is not a member of "gnulib"
make[3]: *** [liboctinterp_la-dirfns.lo] Error 1
make[3]: Leaving directory `/home/philip/octave-3.3.51/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/philip/octave-3.3.51/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/philip/octave-3.3.51'
make: *** [all] Error 2

My problem was that the C++ standard headers on my system were buggy.
For example, the faulty cstring header did an

#include_next <string.h>

instead of the correct (or by gnulib required)

#include <string.h>

Read more here:

http://octave.1599824.n4.nabble.com/build-fails-strerror-is-not-a-member-of-gnulib-td1680164i20.html

Update:
After upgrading my broken Mandriva 2009.1 to 2010.0, including an implied upgrade from gcc4.3.2 to 4.4.1, this error has disappeared. (In the gcc bug tracker I found that the fix had been backported only to 4.3.3, nothing said about 4.3.2.)

But in return, I encountered other build errors.
During "make", the build hangs endlessly on the doc building:

<QUOTE>
mv var.texi-t var.texi
restore=: && backupdir=".am$$" && \
        am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \
        rm -rf $backupdir && mkdir $backupdir && \
if (/bin/sh /home/philip/octave-3.3.51/build-aux/missing --run makeinfo --version) >/dev/null 2>&1; then \ for f in octave.info octave.info-[0-9] octave.info-[0-9][0-9] octave.i[0-9] octave.i[0-9][0-9]; do \
            if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
          done; \
        else :; fi && \
        cd "$am__cwd"; \
if /bin/sh /home/philip/octave-3.3.51/build-aux/missing --run makeinfo -I . \
         -o octave.info octave.texi; \
        then \
          rc=0; \
          CDPATH="${ZSH_VERSION+.}:" && cd .; \
        else \
          rc=$?; \
          CDPATH="${ZSH_VERSION+.}:" && cd . && \
$restore $backupdir/* `echo "./octave.info" | sed 's|[^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
../../run-octave -f -q -H ./mk_doc_cache.m doc-cache ../../scripts/DOCSTRINGS ../../src/DOCSTRINGS || { rm -f doc-cache; exit 1; }
</QUOTE>

(full load on 1 cpu core)

Crtl-C and restarting make gives texi2dvi errors.
Just to be sure, I attach the gzipped config.log.

I'll be away from this box for over a week, I'll follow any answers tru mail.

BTW David, as regards your last answer further down in the thread, adding CHOLMOD, AMD, sparsesuite etc was easy, as Mandriva 2010.0 has them in the repository. I only needed to compile arpack myself.

Thank you,

Philip

Attachment: config.log.gz
Description: GNU Zip compressed data


reply via email to

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