r46610 - in /packages/minpack/trunk/debian: README.Debian changelog hybrd_.3 hybrj_.3 lmder_.3 lmdif_.3 lmstr_.3 tlmdif1.c

sebastien at users.alioth.debian.org sebastien at users.alioth.debian.org
Thu Apr 3 17:07:48 UTC 2014


Author: sebastien
Date: Thu Apr  3 17:07:48 2014
New Revision: 46610

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=46610
Log:
* Fix prototype of C function in tlmdif1.c example. (Closes: #698338)
* Manpages: fix prototypes of C functions, and replace g77 by gfortran.


Modified:
    packages/minpack/trunk/debian/README.Debian
    packages/minpack/trunk/debian/changelog
    packages/minpack/trunk/debian/hybrd_.3
    packages/minpack/trunk/debian/hybrj_.3
    packages/minpack/trunk/debian/lmder_.3
    packages/minpack/trunk/debian/lmdif_.3
    packages/minpack/trunk/debian/lmstr_.3
    packages/minpack/trunk/debian/tlmdif1.c

Modified: packages/minpack/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/debian-science/packages/minpack/trunk/debian/README.Debian?rev=46610&op=diff
==============================================================================
--- packages/minpack/trunk/debian/README.Debian	(original)
+++ packages/minpack/trunk/debian/README.Debian	Thu Apr  3 17:07:48 2014
@@ -6,7 +6,7 @@
 
 Since these are from FORTRAN files:
 
- - Use g77 to compile programs to be linked against the library, even
+ - Use gfortran to compile programs to be linked against the library, even
 if only C files are being compiled.  (Otherwise the linker will not be
 able to find the needed functions from the FORTRAN library).
 

Modified: packages/minpack/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/minpack/trunk/debian/changelog?rev=46610&op=diff
==============================================================================
--- packages/minpack/trunk/debian/changelog	(original)
+++ packages/minpack/trunk/debian/changelog	Thu Apr  3 17:07:48 2014
@@ -9,6 +9,8 @@
   * Add myself to Uploaders.
   * Bump to debhelper compat level 9.
   * Bump to Standards-Version 3.9.5.
+  * Fix prototype of C function in tlmdif1.c example. (Closes: #698338)
+  * Manpages: fix prototypes of C functions, and replace g77 by gfortran.
 
  -- Sébastien Villemot <sebastien at debian.org>  Thu, 03 Apr 2014 17:28:18 +0200
 

Modified: packages/minpack/trunk/debian/hybrd_.3
URL: http://svn.debian.org/wsvn/debian-science/packages/minpack/trunk/debian/hybrd_.3?rev=46610&op=diff
==============================================================================
--- packages/minpack/trunk/debian/hybrd_.3	(original)
+++ packages/minpack/trunk/debian/hybrd_.3	Thu Apr  3 17:07:48 2014
@@ -86,13 +86,13 @@
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
-.TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+With \fBgfortran\fP, all the function names end in an
+underscore.
+.TP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -132,7 +132,7 @@
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int n, double *x, double *fvec, int *iflag)
+  void fcn(int *n, double *x, double *fvec, int *iflag)
   {
     /* calculate the functions at x and
        return this vector in fvec. */

Modified: packages/minpack/trunk/debian/hybrj_.3
URL: http://svn.debian.org/wsvn/debian-science/packages/minpack/trunk/debian/hybrj_.3?rev=46610&op=diff
==============================================================================
--- packages/minpack/trunk/debian/hybrj_.3	(original)
+++ packages/minpack/trunk/debian/hybrj_.3	Thu Apr  3 17:07:48 2014
@@ -83,13 +83,13 @@
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
-.TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+With \fBgfortran\fP, all the function names end in an
+underscore.
+.TP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -131,7 +131,7 @@
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int n, double *x, double *fvec, double *fjac, 
+  void fcn(int *n, double *x, double *fvec, double *fjac, 
            int *ldfjac, int *iflag)
   {
   /* if iflag = 1 calculate the functions at x and

Modified: packages/minpack/trunk/debian/lmder_.3
URL: http://svn.debian.org/wsvn/debian-science/packages/minpack/trunk/debian/lmder_.3?rev=46610&op=diff
==============================================================================
--- packages/minpack/trunk/debian/lmder_.3	(original)
+++ packages/minpack/trunk/debian/lmder_.3	Thu Apr  3 17:07:48 2014
@@ -93,13 +93,13 @@
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
+With \fBgfortran\fP, all the function names end in an
+underscore.
 .TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -142,7 +142,7 @@
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int m, int n, double *x, double *fvec, double *fjac,
+  void fcn(int *m, int *n, double *x, double *fvec, double *fjac,
            int *ldfjac, int *iflag)
   {
     /* if iflag = 1 calculate the functions at x and return this

Modified: packages/minpack/trunk/debian/lmdif_.3
URL: http://svn.debian.org/wsvn/debian-science/packages/minpack/trunk/debian/lmdif_.3?rev=46610&op=diff
==============================================================================
--- packages/minpack/trunk/debian/lmdif_.3	(original)
+++ packages/minpack/trunk/debian/lmdif_.3	Thu Apr  3 17:07:48 2014
@@ -74,13 +74,13 @@
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
+With \fBgfortran\fP, all the function names end in an
+underscore.
 .TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -119,7 +119,7 @@
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int m, int n, double *x, double *fvec, int *iflag)
+  void fcn(int *m, int *n, double *x, double *fvec, int *iflag)
   {
   	  /* calculate the functions at x and return 
   	     the values in fvec[0] through fvec[m-1] */

Modified: packages/minpack/trunk/debian/lmstr_.3
URL: http://svn.debian.org/wsvn/debian-science/packages/minpack/trunk/debian/lmstr_.3?rev=46610&op=diff
==============================================================================
--- packages/minpack/trunk/debian/lmstr_.3	(original)
+++ packages/minpack/trunk/debian/lmstr_.3	Thu Apr  3 17:07:48 2014
@@ -90,13 +90,13 @@
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
+With \fBgfortran\fP, all the function names end in an
+underscore.
 .TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -139,7 +139,7 @@
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int m, int n, double *x, double *fvec, double *fjrow,
+  void fcn(int *m, int *n, double *x, double *fvec, double *fjrow,
            int *iflag)
   {
     /* If iflag = 1 calculate the functions at x and return the

Modified: packages/minpack/trunk/debian/tlmdif1.c
URL: http://svn.debian.org/wsvn/debian-science/packages/minpack/trunk/debian/tlmdif1.c?rev=46610&op=diff
==============================================================================
--- packages/minpack/trunk/debian/tlmdif1.c	(original)
+++ packages/minpack/trunk/debian/tlmdif1.c	Thu Apr  3 17:07:48 2014
@@ -40,7 +40,7 @@
   return 0;
 }
 
-void fcn(int m, int n, double *x, double *fvec, int *iflag)
+void fcn(int *m, int *n, double *x, double *fvec, int *iflag)
 {
   /* function fcn for lmdif1 example */
 




More information about the debian-science-commits mailing list