Hi, i'am trying to install the OCFS2 Tools from source but after the configure script it just fails. I'am not able to solve the problem via the output I have and I couldn't find any suitable help via google. So I hope that you can give me the hint that I need to get this running. Im running configure with this call: ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/ --enable-ocfs2console --enable-dynamic-fsck --enable-dynamic-ctl --libdir=/lib64 --build=x86_64-pc-linux-gnu But when I run "make" it quickly stops with the following message: make -C include make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include' make -C ocfs2-kernel make[2]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2-kernel' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2-kernel' make -C o2dlm make[2]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2dlm' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2dlm' make -C o2cb make[2]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2cb' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2cb' make -C ocfs2 make[2]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2' make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include' make -C libo2dlm make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2dlm' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2dlm' make -C libo2cb make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2cb' x86_64-pc-linux-gnu-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -pipe -fPIC -I../include -I. -MD -MP -MF ./.client_proto.d -o client_proto.o -c client_proto.c client_proto.c: In function 'parse_itemcount': client_proto.c:228: error: 'LONG_MAX' undeclared (first use in this function) client_proto.c:228: error: (Each undeclared identifier is reported only once client_proto.c:228: error: for each function it appears in.) client_proto.c:228: error: 'UINT_MAX' undeclared (first use in this function) client_proto.c: In function 'parse_status': client_proto.c:248: error: 'LONG_MIN' undeclared (first use in this function) client_proto.c:248: error: 'LONG_MAX' undeclared (first use in this function) client_proto.c:249: error: 'INT_MIN' undeclared (first use in this function) client_proto.c:249: error: 'INT_MAX' undeclared (first use in this function) make[1]: *** [client_proto.o] Error 1 make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2cb' make: *** [libo2cb] Error 2 Can you help me? What am I doing wrong here? Mit freundlichen Gr??en Kai Zemke =========================================================== smartnet Online Service GmbH, Schnackenburgallee 177, 22525 Hamburg =========================================================== Gesch?ftsf?hrer: Christian Suding, Claus Masch Ust.IdNr.:DE191136350 Handelsregister HRB 66463 Steuernummer: FA: Hamburg 54/855/01047 Fon: +49 (0) 40 5540-0 Fax: +49 (0) 40 5540-1040 kai.zemke at smartnet.de Weitere Informationen siehe: http://www.smartnet.de <http://www.smartnet.de/> =========================================================== Hinweis: Diese Email kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der beabsichtigte Empf?nger sind oder diese Email irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender telefonisch oder per Email und l?schen Sie diese Email aus Ihrem System. Das unerlaubte Kopieren, sowie die unbefugte Weitergabe dieser Email ist nicht gestattet.Wir haften nicht f?r die Unversehrtheit von Emails, nachdem sie unseren Einfluss- Bereich verlassen haben. ********************************************************************************************** IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error, please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies thereof. *** eSafe scanned this email for viruses, vandals, and malicious content. *** ********************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20090105/8d32dd0d/attachment.html
Herbert van den Bergh
2009-Jan-05 16:19 UTC
[Ocfs2-users] ocfs2-tools compiling from source fails
The symbols the compiler is complaining about should be defined in /usr/include/limits.h. Is that file missing on your system? Is it not being included by the ocfs2 source file? I did notice you ran configure with 2 different --prefix options. Any reason for doing this? Which one is the correct one? Thanks, Herbert. Zemke, Kai wrote:> > Hi, > > i?am trying to install the OCFS2 Tools from source but after the > configure script it just fails. I?am not able to solve the problem via > the output I have and I couldn?t find any suitable help via google. So > I hope that you can give me the hint that I need to get this running. > > Im running configure with this call: > > ./configure --prefix=/usr --host=x86_64-pc-linux-gnu > --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share > --sysconfdir=/etc --localstatedir=/var/lib --prefix=/ > --enable-ocfs2console --enable-dynamic-fsck --enable-dynamic-ctl > --libdir=/lib64 --build=x86_64-pc-linux-gnu > > But when I run ?make? it quickly stops with the following message: > > make -C include > > make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include' > > make -C ocfs2-kernel > > make[2]: Entering directory > `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2-kernel' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory > `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2-kernel' > > make -C o2dlm > > make[2]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2dlm' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2dlm' > > make -C o2cb > > make[2]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2cb' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2cb' > > make -C ocfs2 > > make[2]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2' > > make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include' > > make -C libo2dlm > > make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2dlm' > > make[1]: Nothing to be done for `all'. > > make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2dlm' > > make -C libo2cb > > make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2cb' > > x86_64-pc-linux-gnu-gcc -O2 -Wall -Wstrict-prototypes > -Wmissing-prototypes -Wmissing-declarations -pipe -fPIC -I../include > -I. -MD -MP -MF ./.client_proto.d -o client_proto.o -c client_proto.c > > client_proto.c: In function 'parse_itemcount': > > client_proto.c:228: error: 'LONG_MAX' undeclared (first use in this > function) > > client_proto.c:228: error: (Each undeclared identifier is reported > only once > > client_proto.c:228: error: for each function it appears in.) > > client_proto.c:228: error: 'UINT_MAX' undeclared (first use in this > function) > > client_proto.c: In function 'parse_status': > > client_proto.c:248: error: 'LONG_MIN' undeclared (first use in this > function) > > client_proto.c:248: error: 'LONG_MAX' undeclared (first use in this > function) > > client_proto.c:249: error: 'INT_MIN' undeclared (first use in this > function) > > client_proto.c:249: error: 'INT_MAX' undeclared (first use in this > function) > > make[1]: *** [client_proto.o] Error 1 > > make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2cb' > > make: *** [libo2cb] Error 2 > > Can you help me? What am I doing wrong here? > > Mit freundlichen Gr??en > > Kai Zemke > > ==========================================================> smartnet Online Service GmbH, Schnackenburgallee 177, 22525 Hamburg > ==========================================================> Gesch?ftsf?hrer: Christian Suding, Claus Masch > Ust.IdNr.:DE191136350 > Handelsregister HRB 66463 > Steuernummer: FA: Hamburg 54/855/01047 > Fon: +49 (0) 40 5540-0 > Fax: +49 (0) 40 5540-1040 > kai.zemke at smartnet.de <mailto:kai.zemke at smartnet.de> > Weitere Informationen siehe: http://www.smartnet.de > <http://www.smartnet.de/> > ==========================================================> > Hinweis: > Diese Email kann vertrauliche und/oder rechtlich gesch?tzte > Informationen enthalten. Wenn Sie nicht der beabsichtigte > Empf?nger sind oder diese Email irrt?mlich erhalten haben, > informieren Sie bitte sofort den Absender telefonisch oder > per Email und l?schen Sie diese Email aus Ihrem System. > Das unerlaubte Kopieren, sowie die unbefugte Weitergabe > dieser Email ist nicht gestattet.Wir haften nicht f?r die > Unversehrtheit von Emails, nachdem sie unseren Einfluss- > Bereich verlassen haben. > > ------------------------------------------------------------------------ > / IMPORTANT: The contents of this email and any attachments are > confidential. They are intended for the named recipient(s) only. > If you have received this email in error, please notify the system > manager or the sender immediately and do not disclose the contents to > anyone or make copies thereof. > /**** eSafe scanned this email for viruses, vandals, and malicious > content. **** > ------------------------------------------------------------------------ > ------------------------------------------------------------------------ > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users
Thanks a lot. That is the solution. I added #include <limits.h> and then the sources compiled without any further problem. -----Urspr?ngliche Nachricht----- Von: ocfs2-users-bounces at oss.oracle.com [mailto:ocfs2-users-bounces at oss.oracle.com] Im Auftrag von Herbert van den Bergh Gesendet: Montag, 5. Januar 2009 17:21 An: Zemke, Kai Cc: ocfs2-users at oss.oracle.com Betreff: Released from eSafe SPAM quarantine: Re: [Ocfs2-users] ocfs2-tools compiling from source fails I should have googled first... Maybe this is relevant: http://oss.oracle.com/pipermail/ocfs2-tools-devel/2008-August/001028.html Thanks, Herbert. Herbert van den Bergh wrote:> > The symbols the compiler is complaining about should be defined in > /usr/include/limits.h. Is that file missing on your system? Is it not > being included by the ocfs2 source file? > > I did notice you ran configure with 2 different --prefix options. Any > reason for doing this? Which one is the correct one? > > Thanks, > Herbert. > > > Zemke, Kai wrote: >> >> Hi, >> >> i'am trying to install the OCFS2 Tools from source but after the >> configure script it just fails. I'am not able to solve the problem >> via the output I have and I couldn't find any suitable help via >> google. So I hope that you can give me the hint that I need to get >> this running. >> >> Im running configure with this call: >> >> ./configure --prefix=/usr --host=x86_64-pc-linux-gnu >> --mandir=/usr/share/man --infodir=/usr/share/info >> --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib >> --prefix=/ --enable-ocfs2console --enable-dynamic-fsck >> --enable-dynamic-ctl --libdir=/lib64 --build=x86_64-pc-linux-gnu >> >> But when I run "make" it quickly stops with the following message: >> >> make -C include >> >> make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/include' >> >> make -C ocfs2-kernel >> >> make[2]: Entering directory >> `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2-kernel' >> >> make[2]: Nothing to be done for `all'. >> >> make[2]: Leaving directory >> `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2-kernel' >> >> make -C o2dlm >> >> make[2]: Entering directory >> `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2dlm' >> >> make[2]: Nothing to be done for `all'. >> >> make[2]: Leaving directory >> `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2dlm' >> >> make -C o2cb >> >> make[2]: Entering directory >> `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2cb' >> >> make[2]: Nothing to be done for `all'. >> >> make[2]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include/o2cb' >> >> make -C ocfs2 >> >> make[2]: Entering directory >> `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2' >> >> make[2]: Nothing to be done for `all'. >> >> make[2]: Leaving directory >> `/opt/INSTALL/ocfs2-tools-1.4.1/include/ocfs2' >> >> make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/include' >> >> make -C libo2dlm >> >> make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2dlm' >> >> make[1]: Nothing to be done for `all'. >> >> make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2dlm' >> >> make -C libo2cb >> >> make[1]: Entering directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2cb' >> >> x86_64-pc-linux-gnu-gcc -O2 -Wall -Wstrict-prototypes >> -Wmissing-prototypes -Wmissing-declarations -pipe -fPIC -I../include >> -I. -MD -MP -MF ./.client_proto.d -o client_proto.o -c client_proto.c >> >> client_proto.c: In function 'parse_itemcount': >> >> client_proto.c:228: error: 'LONG_MAX' undeclared (first use in this >> function) >> >> client_proto.c:228: error: (Each undeclared identifier is reported >> only once >> >> client_proto.c:228: error: for each function it appears in.) >> >> client_proto.c:228: error: 'UINT_MAX' undeclared (first use in this >> function) >> >> client_proto.c: In function 'parse_status': >> >> client_proto.c:248: error: 'LONG_MIN' undeclared (first use in this >> function) >> >> client_proto.c:248: error: 'LONG_MAX' undeclared (first use in this >> function) >> >> client_proto.c:249: error: 'INT_MIN' undeclared (first use in this >> function) >> >> client_proto.c:249: error: 'INT_MAX' undeclared (first use in this >> function) >> >> make[1]: *** [client_proto.o] Error 1 >> >> make[1]: Leaving directory `/opt/INSTALL/ocfs2-tools-1.4.1/libo2cb' >> >> make: *** [libo2cb] Error 2 >> >> Can you help me? What am I doing wrong here? >> >> Mit freundlichen Gr??en >> >> Kai Zemke >> >> ==========================================================>> smartnet Online Service GmbH, Schnackenburgallee 177, 22525 Hamburg >> ==========================================================>> Gesch?ftsf?hrer: Christian Suding, Claus Masch >> Ust.IdNr.:DE191136350 >> Handelsregister HRB 66463 >> Steuernummer: FA: Hamburg 54/855/01047 >> Fon: +49 (0) 40 5540-0 >> Fax: +49 (0) 40 5540-1040 >> kai.zemke at smartnet.de <mailto:kai.zemke at smartnet.de> >> Weitere Informationen siehe: http://www.smartnet.de >> <http://www.smartnet.de/> >> ==========================================================>> >> Hinweis: >> Diese Email kann vertrauliche und/oder rechtlich gesch?tzte >> Informationen enthalten. Wenn Sie nicht der beabsichtigte >> Empf?nger sind oder diese Email irrt?mlich erhalten haben, >> informieren Sie bitte sofort den Absender telefonisch oder >> per Email und l?schen Sie diese Email aus Ihrem System. >> Das unerlaubte Kopieren, sowie die unbefugte Weitergabe >> dieser Email ist nicht gestattet.Wir haften nicht f?r die >> Unversehrtheit von Emails, nachdem sie unseren Einfluss- >> Bereich verlassen haben. >> >> ------------------------------------------------------------------------ >> / IMPORTANT: The contents of this email and any attachments are >> confidential. They are intended for the named recipient(s) only. >> If you have received this email in error, please notify the system >> manager or the sender immediately and do not disclose the contents to >> anyone or make copies thereof. >> /**** eSafe scanned this email for viruses, vandals, and malicious >> content. **** >> ------------------------------------------------------------------------ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Ocfs2-users mailing list >> Ocfs2-users at oss.oracle.com >> http://oss.oracle.com/mailman/listinfo/ocfs2-users_______________________________________________ Ocfs2-users mailing list Ocfs2-users at oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-users ********************************************************************************************** IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error, please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies thereof. *** eSafe scanned this email for viruses, vandals, and malicious content. *** **********************************************************************************************