help-octave
[Top][All Lists]
Advanced

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

" strerror not found" while compiling octave-3.3.51


From: Philip Nienhuis
Subject: " strerror not found" while compiling octave-3.3.51
Date: Wed, 16 Jun 2010 10:29:51 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4

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)

<./configure>
<make>
:
mv -f .deps/liboctinterp_la-defun.Tpo .deps/liboctinterp_la-defun.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -g -O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 -pthread -g -O2 -MT liboctinterp_la-dirfns.lo -MD -MP -MF .deps/liboctinterp_la-dirfns.Tpo -c -o liboctinterp_la-dirfns.lo `test -f 'dirfns.cc' || echo './'`dirfns.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -g -O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 -pthread -g -O2 -MT liboctinterp_la-dirfns.lo -MD -MP -MF .deps/liboctinterp_la-dirfns.Tpo -c dirfns.cc -fPIC -DPIC -o .libs/liboctinterp_la-dirfns.o
dirfns.cc: In function "int octave_change_to_directory(const std::string&)":
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

Looking in ./libgnu:
address@hidden octave-3.3.51]$ ls -l libgnu/strerror.c
-rw-r--r-- 1 philip philip 9015 2010-02-25 06:07 libgnu/strerror.c

Searching for "strerror" in config.log I see:
:
configure:14123: checking for working strerror function
configure:14161: gcc -o conftest -g -O2   conftest.c  >&5
configure:14161: $? = 0
configure:14161: ./conftest
configure:14161: $? = 0
configure:14172: result: yes

...but I also stumbled upon:

configure:10406: checking whether strerror_r is declared
configure:10406: gcc -c -g -O2  conftest.c >&5
configure:10406: $? = 0
configure:10406: result: yes
configure:10419: checking for strerror_r
configure:10419: gcc -o conftest -g -O2   conftest.c  >&5
configure:10419: $? = 0
configure:10419: result: yes
configure:10428: checking whether strerror_r returns char *
configure:10452: gcc -c -g -O2  conftest.c >&5
configure:10452: $? = 0
configure:10490: result: yes
configure:10547: checking for mode_t
configure:10547: gcc -c -g -O2  conftest.c >&5
configure:10547: $? = 0
configure:10547: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:147: error: expected expression before ')' token
configure:10547: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Octave"
| #define PACKAGE_TARNAME "octave"
| #define PACKAGE_VERSION "3.3.51"
| #define PACKAGE_STRING "GNU Octave 3.3.51"

Higher up in config.log I see several other errors relating to conftest & confdefs, yet I cannot find those files in the source tree. Apparently conftest.c seems in error. But whether that is related to "strerror" I wouldn't know.

Just to be sure, I also d/led & built octave-3.2.4, that went without a hitch. So I provisionally conclude that build tools etc are OK.

What should I do to get octave-3.3.51 built?

TIA,

Philip


reply via email to

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