octave-maintainers
[Top][All Lists]
Advanced

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

Re: Building on OSX without package managers


From: Richard Campbell
Subject: Re: Building on OSX without package managers
Date: Mon, 24 Jan 2011 23:33:50 -0500

On Jan 24, 2011, at 11:29 PM, John W. Eaton wrote:

> On 24-Jan-2011, Richard Campbell wrote:
> 
> | I am getting the errors even if I attempt a 32-bit build of octave-3.3.54. 
> The error is during the running of ./configure.
> | 
> | I get further with octave-3.2.4. After installing gnu readline and sed 
> (with --prefix=/usr) I get through the configure stage and can proceed to 
> make. I eventually get the following error:
> | 
> | gcc -c -I/usr/X11/include/freetype2 -I/usr/X11/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’
> 
> What is in your config.h file?  For F77_FUNC, I would expect something
> like
> 
>  #define F77_FUNC(name,NAME) name ## _
> 
> but it looks like it is not being defined, since there is a
> diagnostic about it as if it is not being expanded by the
> preprocessor.
> 
> jwe

cat config.h | grep -B 2 -i f77_func
/* Define to a macro mangling the given C identifier (in lower and upper
   case), which must not contain underscores, for linking with Fortran. */
/* #undef F77_FUNC */

/* As F77_FUNC, but for C identifiers containing underscores. */
/* #undef F77_FUNC_ */



reply via email to

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