octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave-3.0.0 could not be built on updated mingw


From: Tatsuro MATSUOKA
Subject: Re: octave-3.0.0 could not be built on updated mingw
Date: Sun, 6 Jan 2008 19:30:02 +0900 (JST)

Hello Michael

CC. John W. Eaton

I move this topic to the maintainers ML.

===Tatsuro
g++ -c -I/mingw/include -I/usr/local/octave-3.0.0/include -I/GnuWin32/include
-Ic:/progra~1/Pcre/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  
-DHAVE_CONFIG_H
-mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 lo-sysdep.cc -o lo-sysdep.o
lo-sysdep.cc: In function `pid_t octave_popen2(const std::string&, const 
string_vector&, bool, int*,
std::string&)':
lo-sysdep.cc:114: error: `PROCESS_INFORMATION' was not declared in this scope
lo-sysdep.cc:114: error: expected `;' before "pi"
lo-sysdep.cc:115: error: `STARTUPINFO' was not declared in this scope

It seems that win32 api functions might be not detected.  Perhaps something is 
missing.
What's I should to do.  Unfortunately I deleted the previous system completely.
I cannot come back at the moment.
   :
   :

--- Michael
> >From the error you get, the Win32 API is clearly not sourced by the
> compiler. So you should make sure you have the Win32 headers
> (package win32api, IIRC) installed. However, if the compiler tried
> to include windows.h and could not find it, you should see an error
> like "cannot include windows.h: file not found", which I don't see in
> the messages you get. So it might be that windows.h is simply not
> included due to some preprocessor macros. If you compile lo-sysdep.cc
> with the -P or -E flag, you should be able to trace the file inclusion.
> On my system with MSVC, the sequence is the following:
> lo-sysdep.cc -> file-ops.h -> str-vec.h -> Array.h -> lo-utils.h -> windows.h
> However, in lo-utils.h, windows.h inclusion is only made if
> HAVE_LOADLIBRARY_API is defined.


Great thanks to Michael.

You are complete right.
lo-sysdep.cc -> file-ops.h -> str-vec.h -> Array.h -> lo-utils.h -> windows.h
was the same.

After that I checked the config.h and the config.log
**config.h**
/* Define if your system has LoadLibrary for dynamic linking */
/* #undef HAVE_LOADLIBRARY_API */
**config.log
No record exited about HAVE_LOADLIBRARY_API.

I temporary modified the config.h to
+++++++++
/* Define if your system has LoadLibrary for dynamic linking */
/* #undef HAVE_LOADLIBRARY_API */
#define HAVE_LOADLIBRARY_API 1
+++++++++

The build process went well.
However at the startup of Octave

panic: Segmentation violation -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
error: gnu_history::clean_up_and_save: missing file name

What can I do to solve this?


Regards

Tatsuro 

--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/


reply via email to

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