From: "K. Nikolaj Berntsen" <berntsen@nospam.bkm.dtu.dk>
Subject: Re: clapack -> Compiled, but buggy stdlib.h in glibc-devel-2.0.6-9
Date: 1998/02/09 [thread overview]
Message-ID: <34DF4441.D80C46F3@nospam.bkm.dtu.dk> (raw)
In-Reply-To: 34DF2978.822CF6E2@nospam.bkm.dtu.dk
Sorry,
I have been a litle fast here.
> The first compile-error is:
> err.c:174: structure has no member named `_flag'
There was a workaround to this one (although I do not like do:
#define NON_UNIX_STDIO
)
Thanks to
Michal Jaegermann
for commenting on it though.
There seems to be a bigger problem though, namely that I get a
compile-error from stdlib.h:
In file included from err.c:17:
/usr/include/stdlib.h:307: parse error before `4'
/usr/include/stdlib.h:307: warning: no semicolon at end of struct or
union
/usr/include/stdlib.h:312: parse error before `}'
which looks like: (lines 299-312)
/* Seed random number generator. */
extern void srand48 __P ((long __seedval));
extern unsigned short int *seed48 __P ((unsigned short int
__seed16v[3]));
extern void lcong48 __P ((unsigned short int __param[7]));
/* Data structure for communication with thread safe versions. */
struct drand48_data
{
unsigned short int X[3]; /* Current state. */
unsigned short int a[3]; /* Factor in congruential formula. */
unsigned short int c; /* Additive const. in congruential formula.
*/
unsigned short int old_X[3]; /* Old state. */
int init; /* Flag for initializing. */
};
A grep convinces me that the files I try to compile does not need
rand48, therefore I workaround it by just making drand48_data, an empty
struct. Now it compiles fine. I do not like it, but I keep "programming"
intuitively as long as I can, to save time :-?
Happy Computing,
--
--------------------------------------------------------------
| Ph.D. stud., cand.scient. |
| K. Nikolaj Berntsen |
| Office: Department of Structural Engineering and Materials |
| Technical University of Denmark |
| Building 118, room 152 |
| DK-2800 Lyngby |
| URL: http://www.bkm.dtu.dk/~knb |
--------------------------------------------------------------
next prev parent reply other threads:[~1998-02-09 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-09 5:00 clapack K. Nikolaj Berntsen
1998-02-09 5:00 ` K. Nikolaj Berntsen [this message]
1998-02-09 5:00 ` clapack -> Compiled, but buggy stdlib.h in glibc-devel-2.0.6-9 Michal Jaegermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox