Date: Thu, 11 May 2006 00:00:44 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 697 ************************************************** Wednesday 10 May 2006 Number 697 ************************************************** Subjects for today 1 error in mount.h : Dave Bamford 2 Re: GNU make 3.81 : Andreas =?iso-8859-1?Q?B=FCning?= 3 Re: error in mount.h : Dave Yeo" 4 Re: error in mount.h : Dave Bamford **= Email 1 ==========================** Date: Tue, 09 May 2006 20:20:38 +0100 From: Dave Bamford Subject: error in mount.h I get this in the config.log | } configure.:12409: g++ -c -g -O2 conftest.cc >&5 In file included from configure:12441: D:/USR/include/sys/mount.h:57: error: parse error before `[' token D:/USR/include/sys/mount.h:66: error: 'u_short' is used as a type, but is not defined as a type. D:/USR/include/sys/mount.h:67: error: 'u_short' is used as a type, but is not defined as a type. D:/USR/include/sys/mount.h:90: error: 'uid_t' is used as a type, but is not defined as a type. configure.:12412: $? = 1 configure.: failed program was: | #line 12384 "configure" | /* confdefs.h. */ line 57 of mount.h follows >> typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */ can anyone shed some light on this for me please. Dave Bamford. **= Email 2 ==========================** Date: Tue, 09 May 2006 23:14:14 +0200 From: Andreas =?iso-8859-1?Q?B=FCning?= Subject: Re: GNU make 3.81 John Poltorak schrieb: > > On Tue, May 09, 2006 at 12:23:56PM +0200, Andreas Büning wrote: > > John Poltorak schrieb: > > > > > Is there any reason why I can't build this version using Make v3.76..1? > > > > To answer your question: I really don't know. Maybe it works, maybe not. > > How do I establish whether it works? Simply by building it? Or are there > some tests which need to be run to see if it works correctly? Yes, basically. make clean, make, make install, make uninstall. If they produce the correct output then I'd say it works. Bye, Andreas **= Email 3 ==========================** Date: Tue, 09 May 2006 19:07:43 -0800 From: "Dave Yeo" Subject: Re: error in mount.h On Tue, 09 May 2006 20:20:38 +0100, Dave Bamford wrote: >I get this in the config.log > >| } >configure.:12409: g++ -c -g -O2 conftest.cc >&5 >In file included from configure:12441: >D:/USR/include/sys/mount.h:57: error: parse error before `[' token >D:/USR/include/sys/mount.h:66: error: 'u_short' is used as a type, but >is not > defined as a type. >D:/USR/include/sys/mount.h:67: error: 'u_short' is used as a type, but >is not > defined as a type. >D:/USR/include/sys/mount.h:90: error: 'uid_t' is used as a type, but is not > defined as a type. >configure.:12412: $? = 1 >configure.: failed program was: >| #line 12384 "configure" >| /* confdefs.h. */ > >line 57 of mount.h follows >> >typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */ > >can anyone shed some light on this for me please. > >Dave Bamford. You need sys/types.h included. Try adding it to sys/mount.h, maybe around line 56 eg #include . You could also file a bug report with whatever you are building. Dave ps you should really mention what compiler and libc you are using **= Email 4 ==========================** Date: Wed, 10 May 2006 09:30:28 +0100 From: Dave Bamford Subject: Re: error in mount.h Dave Yeo wrote: >On Tue, 09 May 2006 20:20:38 +0100, Dave Bamford wrote: > > > >>I get this in the config.log >> >>| } >>configure.:12409: g++ -c -g -O2 conftest.cc >&5 >>In file included from configure:12441: >>D:/USR/include/sys/mount.h:57: error: parse error before `[' token >>D:/USR/include/sys/mount.h:66: error: 'u_short' is used as a type, but >>is not >> defined as a type. >>D:/USR/include/sys/mount.h:67: error: 'u_short' is used as a type, but >>is not >> defined as a type. >>D:/USR/include/sys/mount.h:90: error: 'uid_t' is used as a type, but is not >> defined as a type. >>configure.:12412: $? = 1 >>configure.: failed program was: >>| #line 12384 "configure" >>| /* confdefs.h. */ >> >>line 57 of mount.h follows >> >>typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */ >> >>can anyone shed some light on this for me please. >> >>Dave Bamford. >> >> > >You need sys/types.h included. Try adding it to sys/mount.h, maybe around line 56 eg >#include . >You could also file a bug report with whatever you are building. >Dave >ps you should really mention what compiler and libc you are using > > > Hi I added the include as above and the type erros have gone but I still get the parse error as follows | #include configure.:12326: result: no configure.:12284: checking for sys/mount.h configure.:12306: g++ -c -g -O2 conftest.cc >&5 In file included from configure:12349: D:/USR/include/sys/mount.h:58: error: parse error before `[' token configure.:12309: $? = 1 configure.: failed program was: | #line 12289 "configure" | /* confdefs.h. */ I am using gcc 3.3.5 (bird) and libc 0.6 (I think) is there a definitive way of checking your environment. It would be really nice to have some standard to check that I am not including and headers or libraries that I shouldn't and that I have everything in place that I should. The environment is getting out of control as I also use this PC for general use and don't have the luxury of a dedicated system for porting. The original ucx bootstrap command file was really good but I guess thats way out of date now. Thanks Dave