[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Support #JLQ-176111]: Error compiling an application using netcdf-1 interface with netcdf-2 installed
- Subject: [Support #JLQ-176111]: Error compiling an application using netcdf-1 interface with netcdf-2 installed
- Date: Wed, 26 May 2010 11:00:51 -0600
Philippe,
> Here, at CLS we have a module which extends (and simplify for our
> applications) udunits and it as been ported to udunits-2.
> As a transistion, there is also the old one (while applications are
> ported) and they use udunits.h.
>
> When compiling I have errors because 2 functions which don't have any
> parameter don't have 'void' as parameter description (we use -Werror as
> gcc flags).
>
> I don't know if you plan to fix this but as attachment there is the
> patch which corrects the functions definitions.
Thanks for sending this in.
I applied the patch and it will be in the next release of the UDUNITS (alias
UDUNITS-1) package. That probably won't happen soon unless the UDUNITS-1
package accumulates more changes because I'm trying to move people to the
UDUNITS-2 package.
> Cheers,
> Philippe
> --
> Philippe Poilbarbe - CLS Space Oceanography Division
>
> --------------060109050807080505080307
> Content-Type: text/x-patch;
> name="udunits-2.1.14-void-missing.patch"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: attachment; filename="udunits-2.1.14-void-missing.patch"
>
> --- lib/udunits.h.orig
> +++ lib/udunits.h
> @@ -72,6 +72,7 @@
> * Indicate if the units(3) package has been initialized.
> */
> extern int utIsInit PROTO((
> + void
> ));
>
> /*
> @@ -246,7 +247,7 @@
> /*
> * Terminate use of this package.
> */
> -extern void utTerm PROTO(());
> +extern void utTerm PROTO((void));
>
> #ifdef __cplusplus
> }
>
> --------------060109050807080505080307
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: JLQ-176111
Department: Support UDUNITS
Priority: Normal
Status: Closed