octave-maintainers
[Top][All Lists]
Advanced

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

Re: Compile error of c-file-ptr-stream.cc (MinGW build for 3.3.50+)


From: Tatsuro MATSUOKA
Subject: Re: Compile error of c-file-ptr-stream.cc (MinGW build for 3.3.50+)
Date: Wed, 10 Feb 2010 14:48:25 +0900 (JST)

Helo

--- "John W. Eaton"  wrote:

> On  6-Feb-2010, Tatsuro MATSUOKA wrote:
> 
> | Hello
> | 
> | I have met a compile error of  c-file-ptr-stream.cc as,
> | 
> | /bin/sh ../libtool  --tag=CXX   --mode=compile g++  -shared-libgcc 
> -DHAVE_CONFIG_H -I.
> | -I../../../hg/octave-work/src -I..  -I/WinDevTools/include 
> -I/GnuWin32/include
> | -IC:/Programs/GnuWin32/include -I../libgnu -I../../../hg/octave-work/libgnu
> | -I../../../hg/octave-work/libcruft/misc -I../liboctave 
> -I../../../hg/octave-work/liboctave -I.
> | -I../../../hg/octave-work/src  -I/WinDevTools/include -I/GnuWin32/include
> | -IC:/Programs/GnuWin32/include -O3 -fomit-frame-pointer  -DHAVE_CONFIG_H 
> -mieee-fp
> | -I/WinDevTools/bin/../include/freetype2 -I/WinDevTools/bin/../include
> | -IC:/Programs/WinDevTools/include   -Wall -W -Wshadow -Wold-style-cast 
> -Wformat -O3
> | -fomit-frame-pointer  -O3 -fomit-frame-pointer -MT 
> liboctinterp_la-c-file-ptr-stream.lo -MD
> -MP -MF
> | .deps/liboctinterp_la-c-file-ptr-stream.Tpo -c -o 
> liboctinterp_la-c-file-ptr-stream.lo `test
> -f
> | 'c-file-ptr-stream.cc' || echo 
> '../../../hg/octave-work/src/'`c-file-ptr-stream.cc
> | libtool: compile:  g++ -shared-libgcc -DHAVE_CONFIG_H -I. 
> -I../../../hg/octave-work/src -I..
> | -I/WinDevTools/include -I/GnuWin32/include -IC:/Programs/GnuWin32/include 
> -I../libgnu
> | -I../../../hg/octave-work/libgnu -I../../../hg/octave-work/libcruft/misc 
> -I../liboctave
> | -I../../../hg/octave-work/liboctave -I. -I../../../hg/octave-work/src 
> -I/WinDevTools/include
> | -I/GnuWin32/include -IC:/Programs/GnuWin32/include -O3 -fomit-frame-pointer 
> -DHAVE_CONFIG_H
> -mieee-fp
> | -I/WinDevTools/bin/../include/freetype2 -I/WinDevTools/bin/../include
> | -IC:/Programs/WinDevTools/include -Wall -W -Wshadow -Wold-style-cast 
> -Wformat -O3
> -fomit-frame-pointer
> | -O3 -fomit-frame-pointer -MT liboctinterp_la-c-file-ptr-stream.lo -MD -MP 
> -MF
> | .deps/liboctinterp_la-c-file-ptr-stream.Tpo -c
> ../../../hg/octave-work/src/c-file-ptr-stream.cc 
> | -DDLL_EXPORT -DPIC -o .libs/liboctinterp_la-c-file-ptr-stream.o
> | ../libgnu/unistd.h: In destructor 'virtual 
> c_file_ptr_buf::~c_file_ptr_buf()':
> | ../libgnu/unistd.h:203: error: too few arguments to function 'int 
> rpl_close(int)'
> | ../../../hg/octave-work/src/c-file-ptr-stream.cc:46: error: at this point 
> in file
> | ../../../hg/octave-work/src/c-file-ptr-stream.cc: At global scope:
> | ../../../hg/octave-work/src/c-file-ptr-stream.cc:181: error: no 'int
> c_file_ptr_buf::rpl_close()'
> | member function declared in class 'c_file_ptr_buf'
> | make[3]: *** [liboctinterp_la-c-file-ptr-stream.lo] Error 1
> | make[3]: Leaving directory `/home/octaves/OctBuild/octave-develop/src'
> | make[2]: *** [all] Error 2
> | make[2]: Leaving directory `/home/octaves/OctBuild/octave-develop/src'
> | make[1]: *** [all-recursive] Error 1
> | 
> | In libgnu/close.c in source directory, rpl_close is described
> | 
> | int
> | rpl_close (int fd)
> | #undef close
> | {
> | #if WINDOWS_SOCKETS
> |   int retval = execute_all_close_hooks (fd);
> | #else
> |   int retval = close (fd);
> | #endif
> | 
> | #if REPLACE_FCHDIR
> |   if (retval >= 0)
> |     _gl_unregister_fd (fd);
> | #endif
> | 
> |   return retval;
> | }
> | 
> | In src/c-file-ptr-stream.cc:181
> | 
> | c_file_ptr_buf::close (void)
> | 
> | *****
> | rpl_close (int fd)
> | c_file_ptr_buf::close (void)
> | 
> | seems to be conflicted.
> | 
> | Regards
> | 
> | Tatsuro
> | 
> | 
> | --------------------------------------
> | VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi]
> | http://pr.mail.yahoo.co.jp/olympic/
> 
> I checked in the following change.  Does it fix the problem for you?
> 
>   http://hg.savannah.gnu.org/hgweb/octave/rev/5e972e2deffe
> 
> jwe
> 

Thank you for your change.
I have been trying to build.
However I have met a new error on compiling liboctave sources.
I will report it elsewhere.

Regards

Tatsuro 
  


--------------------------------------
VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/olympic/


reply via email to

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