Hi, --- On Wed, 25/11/09, Alfeiks Kaanoken <[email protected]> wrote:
> From: Alfeiks Kaanoken <[email protected]> > Subject: Re: [Jarios-dev] Compilation errors while compiling from git sources. > To: [email protected] > Date: Wednesday, 25 November, 2009, 9:59 PM > >Hi, > hi > > I am trying to compile jarios from > sources. > >## git clone git://rep.jarios.org/muistring.git > >## git clone git://rep.jarios.org/jari_os.git > > > >But I get following errors while compiling jari_os: > >## cd jari_os > >## make menuconfig > >[HOSTCC] sconfig/lxdialog/checklist.c > >[HOSTCC] sconfig/lxdialog/util.c > >[HOSTCC] sconfig/lxdialog/inputbox.c > >[HOSTCC] sconfig/lxdialog/textbox.c > >[HOSTCC] sconfig/lxdialog/yesno.c > >[HOSTCC] sconfig/lxdialog/menubox.c > >[BISON] sconfig/sconfig.y > >[HOSTCC] sconfig/sconfig.tab.c > >[FLEX] sconfig/sconfig.l > >flex: can't open sconfig/sconfig.lex.c > >make[1]: *** [sconfig/sconfig.lex.c] Error 1 > >make: *** [menuconfig] Error 2 > > This got resolved after I moved to a newer system (Ubuntu), the Earlier system was a CentOS 5.3 one. One thing I noticed was that the Centos system had old version of tools installed: flex version 2.5.4 bison (GNU Bison) 2.3 GNU gperf 3.0.1 While the Ubuntu based system has updated tools: flex 2.5.35 bison (GNU Bison) 2.3 GNU gperf 3.0.3 I guess old flex is causing this error. We can at lease document that we need flex version >= 2.5.35. > > > >Also I tried to compile muistring but get following > error: > >confdata.c:638: error: ‘errno’ undeclared (first > use in this function) > >confdata.c:638: error: ‘ENOENT’ undeclared (first > use in this function) > >make[1]: *** [zconf.tab.o] Error 1 > >make: *** [host] Error 2 > looks like that you are haven't libc-dev packages > installed, > also you need ncursev-dev package - I mean that you haven't > > headers installed on your linux system. > It also may be that some development packages for linux > missed. > > Could you check it ? > > > > > >Please let me know how to resolve there errors. > > I had the development headers installed for libc and ncurses, but that didn't solve the issue. To get past the error related to ENOENT and errno, I had to manually add #include <errno.h> to kconfig/confdata.c. Attaching a patch for the same here. On my Ubuntu system after applying my correction I am able to compile everything and able to boot JariOS using qemu. Thanks, -Narender The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
0001-fix-compilation-error-related-to-errno.patch
Description: application/download
_______________________________________________ Jarios-dev mailing list [email protected] http://lists.jarios.org/cgi-bin/mailman/listinfo/jarios-dev
