From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4dda39d777ef1881 X-Google-Attributes: gid111c93,public From: "K. Nikolaj Berntsen" Subject: Re: clapack -> Compiled, but buggy stdlib.h in glibc-devel-2.0.6-9 Date: 1998/02/09 Message-ID: <34DF4441.D80C46F3@nospam.bkm.dtu.dk>#1/1 X-Deja-AN: 323486075 Content-Transfer-Encoding: 7bit References: <34DF2978.822CF6E2@nospam.bkm.dtu.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: News Server at UNI-C, Danish Computing Centre for Research and Education. Newsgroups: comp.os.linux.alpha 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 | --------------------------------------------------------------