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: michal@gortel.phys.ualberta.ca (Michal Jaegermann) Subject: Re: clapack -> Compiled, but buggy stdlib.h in glibc-devel-2.0.6-9 Date: 1998/02/09 Message-ID: <6bnou2$cr2$1@pulp.ucs.ualberta.ca>#1/1 X-Deja-AN: 323525006 References: <34DF2978.822CF6E2@nospam.bkm.dtu.dk> <34DF4441.D80C46F3@nospam.bkm.dtu.dk> X-Complaints-To: usenet@pulp.ucs.ualberta.ca X-Trace: pulp.ucs.ualberta.ca 887056130 13154 (None) 129.128.7.128 Organization: Disorganized Bits Reply-To: michal@gortel.phys.ualberta.ca Newsgroups: comp.os.linux.alpha K. Nikolaj Berntsen (berntsen@nospam.bkm.dtu.dk) wrote: : : > 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. For the record - this was NOT what I was suggesting in a private e-mail. My advice was to fix obviously buggy original code by using 'setvbuf()'. Manual page has more details. : : 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' This looks like something defines srand or drand as a macro; this macro gets expanded in a preprocessor and compiler gets a garbage. What is a culprit here is it impossible to tell from the code sample. '-E' flag to gcc helps to resolve such matters. Once again - documentation is your friend. In situations like that sometimes changing an order of includes helps to resolve a problem. --mj