[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave with FLTK backend on Mac OS X?
From: |
John W. Eaton |
Subject: |
Re: Octave with FLTK backend on Mac OS X? |
Date: |
Fri, 12 Feb 2010 17:08:13 -0500 |
On 12-Feb-2010, Ben Abbott wrote:
| On Friday, February 12, 2010, at 03:50PM, "Matthias Brennwald"
<address@hidden> wrote:
| >
| >On Feb 12, 2010, at 1:58 PM, Ben Abbott wrote:
| >
| >> On Feb 12, 2010, at 4:13 AM, Carlo de Falco wrote:
| >>
| >>> On 12 Feb 2010, at 09:12, Matthias Brennwald wrote:
| >>>
| >>>> Ok, I installed these using MacPorts. However, running ./configure
| >>>> results in an error that GNU readline was not found. However, I have
| >>>> installed readline from MacPorts, which is the GNU version as far as I
| >>>> can tell. Any hints?
| >>>
| >>> This could be due to a conflict with the apple-shipped version of
readline which is installed /usr/lib,
| >>> you must make shure you are actually linking to the macports readline...
| >>> One quick way to do this is to temporarily rename
/usr/lib/libreadline.dylib so that it is no seen by configure.
| >>>
| >>>> Matthias
| >>> c.
| >>
| >> What I did was to place my Fink libs ahead of the standard ones in LDFLAGS
...
| >>
| >> export PREFIX="/sw"
| >> export LDFLAGS="-L$PREFIX/lib -L/usr/lib -m32"
| >
| >I changed both lines as follows:
| >
| > export PREFIX="/opt/local"
| > export LDFLAGS="-L$PREFIX/lib -L/usr/lib"
| >
| >With this, ./configure completed without complaints. Then I ran make, which
gave the following error:
| >
| >gfortran -c -fPIC -O -mieee-fp i1mach.f -o pic/i1mach.o
| >gcc -c -I/opt/local/include -fPIC -I. -I../.. -I../../liboctave -I../../src
-I../../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -g
-O2 -D_THREAD_SAFE f77-fcn.c -o pic/f77-fcn.o
| >In file included from f77-fcn.c:31:
| >f77-fcn.h:224: error: ‘F77_FUNC’ declared as function returning a function
| >f77-fcn.h:224: warning: parameter names (without types) in function
declaration
| >f77-fcn.c:50: error: ‘F77_FUNC’ declared as function returning a function
| >f77-fcn.c: In function ‘F77_FUNC’:
| >f77-fcn.c:50: warning: type of ‘xstopx’ defaults to ‘int’
| >f77-fcn.c:50: warning: type of ‘XSTOPX’ defaults to ‘int’
| >f77-fcn.c:59: error: ‘s’ undeclared (first use in this function)
| >f77-fcn.c:59: error: (Each undeclared identifier is reported only once
| >f77-fcn.c:59: error: for each function it appears in.)
| >f77-fcn.c:59: error: ‘slen’ undeclared (first use in this function)
| >f77-fcn.c:64: warning: function declared ‘noreturn’ has a ‘return’ statement
| >f77-fcn.c:50: warning: unused parameter ‘xstopx’
| >f77-fcn.c:50: warning: unused parameter ‘XSTOPX’
| >make[3]: *** [pic/f77-fcn.o] Error 1
| >make[2]: *** [misc] Error 2
| >make[1]: *** [libcruft] Error 2
| >make: *** [all] Error 2
| >
| >
| >I do not understand at all, what this is about. Any hints?
Lines 222-224 of f77-fcn.c are
extern CRUFT_API F77_RET_T
F77_FUNC (xstopx, XSTOPX) (F77_CONST_CHAR_ARG_DECL
F77_CHAR_ARG_LEN_DECL) GCC_ATTR_NORETURN;
and lines 42-65 of f77-fcn.c are
F77_RET_T
#if defined (F77_USES_CRAY_CALLING_CONVENTION)
F77_FUNC (xstopx, XSTOPX) (octave_cray_ftn_ch_dsc desc)
#elif defined (F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION)
F77_FUNC (xstopx, XSTOPX) (const char *s, int slen)
#else
F77_FUNC (xstopx, XSTOPX) (const char *s, long slen)
#endif
{
#if defined (F77_USES_CRAY_CALLING_CONVENTION)
const char *s = desc.const_ptr = ptr_arg;
unsigned long slen = desc.mask.len;
#endif
f77_exception_encountered = 1;
/* Skip printing message if it is just a single blank character. */
if (s && slen > 0 && ! (slen == 1 && *s == ' '))
(*current_liboctave_error_handler) ("%.*s", slen, s);
octave_jump_to_enclosing_context ();
F77_RETURN (0)
}
F77_FUNC should be defined in your config.h file. Is it? If not, you
need to determine why it was not defined correctly for your system.
jwe
Re: Octave with FLTK backend on Mac OS X?, Liam Groener, 2010/02/09
Re: Octave with FLTK backend on Mac OS X?, Ben Abbott, 2010/02/12
- Re: Octave with FLTK backend on Mac OS X?,
John W. Eaton <=