octave-maintainers
[Top][All Lists]
Advanced

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

Re: address@hidden: [Pkg-octave-devel] Bug#434415: octave2.9-headers: Ch


From: Kim Hansen
Subject: Re: address@hidden: [Pkg-octave-devel] Bug#434415: octave2.9-headers: Changed F77_FUNC_ macro]
Date: Wed, 25 Jul 2007 01:08:39 +0200

On 7/24/07, John W. Eaton <address@hidden> wrote:
On 24-Jul-2007, Thomas Weber wrote:

| Am Montag, 23. Juli 2007 22:12:14 schrieb Rafael Laboissiere:
| > ----- Forwarded message from Kim Hansen <address@hidden> -----
| >
| > From: Kim Hansen <address@hidden>
| > Subject: [Pkg-octave-devel] Bug#434415: octave2.9-headers: Changed
| > F77_FUNC_ macro
| > Date: Mon, 23 Jul 2007 19:51:13 +0200
| > To: Debian Bug Tracking System <address@hidden>
| > Reply-To: Kim Hansen <address@hidden>, address@hidden
| > Message-ID: <address@hidden>
| >
| > Package: octave2.9-headers
| > Version: 1:2.9.12-2+b3
| > Severity: normal
| >
| >
| > I don't know if this is a real bug, but between version 2.9.10-4.1 and
| > 1:2.9.12-2+b3 has the definition of the macro F77_FUNC_ in
| > /usr/include/octave/config.h changed from
| >   #define F77_FUNC_(name,NAME) name ## _
| > to
| >   #define F77_FUNC_(name,NAME) name ## __
|
| If I read the output of
|       cvs annotate configure.in
| correctly, John hasn't touched these lines for about 5 years. Could this be
| caused by our (=Debian) current mixture of g77 and gfortran?

If you mean these lines in the generated config.h file:

  /* Define to a macro mangling the given C identifier (in lower and upper
     case), which must not contain underscores, for linking with Fortran. */
  #define F77_FUNC(name,NAME) name ## _

  /* As F77_FUNC, but for C identifiers containing underscores. */
  #define F77_FUNC_(name,NAME) name ## __

Yes, I am talking about the last one of those two lines.

In any case, we probably need to think about how to avoid installing
the generated config.h.  We may still need a subset of that file
installed, but it should probably have a different name.

The reason I became aware of this change is a warning I get when
compiling an oct-file that uses an other library. This library also
uses fortran code and it also have an auto generated F77_FUNC_ macro,
the two macros are different, thus the warning.

Moving config.h away would silence the warning, and solve the problem
unless it was an important warning. But I don't know if it is, I know
too little about fortran linking, I was just curious about the change
in the macro.

Regards,
--
Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437  --  Mobil: 3091 2437



reply via email to

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