bug-gsl
[Top][All Lists]
Advanced

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

[Bug-gsl] gsl-1.4: error in gsl_const.h


From: zunda
Subject: [Bug-gsl] gsl-1.4: error in gsl_const.h
Date: Tue, 16 Sep 2003 22:34:15 +0900 (JST)

Hi,

I belive I have found a bug in one of the header files as follows.

Could you please also check if it is intentional that vacuum constans
defined in MKSA system is not found in CGSM system:

$ grep VACUUM /usr/include/gsl/gsl_const_mksa.h 
#define GSL_CONST_MKSA_VACUUM_PERMITTIVITY (8.854187817e-12) /* A^2 s^4 / kg 
m^3 */
#define GSL_CONST_MKSA_VACUUM_PERMEABILITY (1.25663706144e-6) /* kg m / A^2 s^2 
*/

$ grep VACUUM /usr/include/gsl/gsl_const_cgsm.h
$

Thank you very much,
zunda <zunda616e at yahoo.co.jp>

---

* The version number of GSL
$ gsl-config --version
1.4

* The hardware and operating system
$ uname -s -r -m 
Linux 2.4.22-0.2.9m i686

$ cat /proc/cpuinfo  | grep 'model name'
model name      : Intel(R) Pentium(R) 4 CPU 2.60GHz

* The compiler used, including version number and compilation options
$ gcc --version
gcc (GCC) 3.2.3 (Momonga Linux 0.1 3.2.3-7m)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

>From the package building log, compilation options were something like:
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -march=i586 -funrol l-loops 
-fomit-frame-pointer
-fstack-protector -ffloat-store -O2

* A description of the bug behavior
/usr/include/gsl/gsl_const.h includes headers which are no longer in the
library.

* A short program which exercises the bug
$ echo '#include <gsl/gsl_const.h>' >| test.c; gcc -c test.c
In file included from test.c:1:
/usr/include/gsl/gsl_const.h:24:31: gsl/gsl_const_cgs.h: No such file or 
directory
/usr/include/gsl/gsl_const.h:25:31: gsl/gsl_const_mks.h: No such file or 
directory

I have applied the following patch to fix this:

--- const/gsl_const.h.orig      2003-07-25 17:18:18.000000000 +0200
+++ const/gsl_const.h   2003-09-16 11:24:05.000000000 +0200
@@ -21,7 +21,7 @@
 #define __GSL_CONST__
 
 #include <gsl/gsl_const_num.h>
-#include <gsl/gsl_const_cgs.h>
-#include <gsl/gsl_const_mks.h>
+#include <gsl/gsl_const_cgsm.h>
+#include <gsl/gsl_const_mksa.h>
 
 #endif /* __GSL_CONST__ */


__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/





reply via email to

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