About "configure" failure
Hi,
I reported failure of "configure" on the other day.
http://www.mail-archive.com/[email protected]/msg11137.html
But I think that it's hard to notice because my report is contributed to the report of "realtime" failure. It's my clumsiness. Therefore, I report about "configure" again with the recent git.
---
"configure" failed with git "ltp-7d2055e.tar.gz":
------------<RHEL4.8 - x86>
./configure: line 8228: syntax error near unexpected token elif' ./configure: line 8228: elif test "x$has_quotav2" = "xyes"; then'
------------
Environmants are RHEL5.5/4.8 -- x86/x86_64/ia64.
"${LTPROOT}/configure" file of "ltp-7d2055e.tar.gz" is following:
------------< RHEL4.8 - x86>
[...]
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF ---
LINE 8210
/* end confdefs.h. */
#define _LINUX_QUOTA_VERSION 2
#include <sys/types.h>
#include <sys/quota.h>
#include <unistd.h>
int main(void) {
struct dqblk dq;
return quotactl(QCMD(Q_GETINFO, USRQUOTA), (const char *)
"/dev/null",
geteuid(), (caddr_t) &dq); }
--- LINE 8221
if test "x$has_quotav1" = "xyes"; then
cat >>confdefs.h <<\_ACEOF
--- LINE 8224
#define HAVE_QUOTAV1 1_ACEOF
elif test "x$has_quotav2" = "xyes"; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_QUOTAV2 1_ACEOF
fi
_ACEOF
--- LINE 8236
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
[...]
------------
The line 8210 (" 8210 cat >>conftest.$ac_ext <<_ACEOF") is the "here document".
First "_ACEOF" which appears after this line is the line 8224. But the line 8224 is "here document", too.
I think that it is syntax error.
In the line 8236, there is "_ACEOF".
This "_ACEOF" may be just after line 8221, I think.
I tried to execute "configure" after above revision, and it succeeded. After this, "make" and "make install" succeeded, too.
Regards--
-Tomonori Mitani
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 10 lines · Mitani
Hi,
I reported failure of "configure" on the other day.
http://www.mail-archive.com/[email protected]/msg11137.htmlBut I think that it's hard to notice because my report is contributed to the report of "realtime" failure. It's my clumsiness. Therefore, I report about "configure" again with the recent git.
Hi mitani-san,
Please try the following patch.
-----------------------
fix configure error.
--- m4/ltp-quota.m4 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
m4/ltp-quota.m4 +2 -2
@@ -29,7 +29,7 @@ int main(void) { struct dqblk dq; return quotactl(QCMD(Q_GETINFO, USRQUOTA), (const char *) "/dev/null", geteuid(), (caddr_t) &dq); -}],[has_quotav2="yes"],[dnl END quota v2 check +}])],[has_quotav2="yes"],[dnl END quota v2 check AC_LINK_IFELSE([AC_LANG_SOURCE([ #define _LINUX_QUOTA_VERSION 1 #include <sys/types.h>
@@ -46,4 +46,4 @@ if test "x$has_quotav1" = "xyes"; then elif test "x$has_quotav2" = "xyes"; then AC_DEFINE(HAVE_QUOTAV2,1,[Define to 1 if you have quota v2]) fi -])]) +])
Signature · 1 line
1.7.0.4
Quoted 90 lines
---
"configure" failed with git "ltp-7d2055e.tar.gz":
------------<RHEL4.8 - x86>
./configure: line 8228: syntax error near unexpected tokenelif' ./configure: line 8228:elif test "x$has_quotav2" = "xyes"; then'
------------Environmants are RHEL5.5/4.8 -- x86/x86_64/ia64.
"${LTPROOT}/configure" file of "ltp-7d2055e.tar.gz" is following:
------------< RHEL4.8 - x86>
[...]cat >conftest.$ac_ext <<
_ACEOF
/*confdefs.h. */_ACEOF
catconfdefs.h>>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF---
LINE 8210
/* endconfdefs.h. */#define
_LINUX_QUOTA_VERSION2
#include <sys/types.h>
#include <sys/quota.h>
#include <unistd.h>
int main(void) {
struct dqblk dq;
return quotactl(QCMD(Q_GETINFO, USRQUOTA), (const char *)
"/dev/null",geteuid(), (caddr_t) &dq); }--- LINE 8221
if test "x$has_quotav1" = "xyes"; thencat >>confdefs.h <<\_ACEOF
--- LINE 8224
#defineHAVE_QUOTAV11_ACEOFelif test "x$has_quotav2" = "xyes"; then
cat >>confdefs.h <<\_ACEOF
#defineHAVE_QUOTAV21_ACEOFfi
_ACEOF
--- LINE 8236
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
[...]
------------The line 8210 (" 8210 cat >>conftest.$ac_ext <<
_ACEOF") is the "here document".
First "_ACEOF" which appears after this line is the line 8224. But the line 8224 is "here document", too.I think that it is syntax error.
In the line 8236, there is "
_ACEOF".
This "_ACEOF" may be just after line 8221, I think.I tried to execute "configure" after above revision, and it succeeded. After this, "make" and "make install" succeeded, too.
Regards--
-Tomonori Mitani
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Signature · 14 lines
Regards Bian Naimeng ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 41 lines · Bian Naimeng
Quoted 10 lines · Mitani
Hi,
I reported failure of "configure" on the other day.
http://www.mail-archive.com/[email protected]/msg11137.htmlBut I think that it's hard to notice because my report is contributed to the report of "realtime" failure. It's my clumsiness. Therefore, I report about "configure" again with the recent git.
Hi mitani-san,
Please try the following patch.
-----------------------
fix configure error.Signed-off-by Bian Naimeng <[email protected]>---
m4/ltp-quota.m4 | 4 ++--1 files changed, 2 insertions(+), 2 deletions(-)m4/ltp-quota.m4 +1
-1@@ -29,7 +29,7 @@ int main(void) { struct dqblk dq; return quotactl(QCMD(Q_GETINFO, USRQUOTA), (const char *) "/dev/null", geteuid(), (caddr_t) &dq); -}],[has_quotav2="yes"],[dnl END quota v2 check +}])],[has_quotav2="yes"],[dnl END quota v2 checkAC_LINK_IFELSE([AC_LANG_SOURCE([
#define_LINUX_QUOTA_VERSION1
#include <sys/types.h>m4/ltp-quota.m4 +0
-0@@ -46,4 +46,4 @@ if test "x$has_quotav1" = "xyes"; then
Quoted 80 lines
elif test "x$has_quotav2" = "xyes"; then
AC_DEFINE(HAVE_QUOTAV2,1,[Define to 1 if you have quota v2])fi
-])])
+])
--
1.7.0.4Quoted 70 lines
---
"configure" failed with git "ltp-7d2055e.tar.gz":
------------<RHEL4.8 - x86>
./configure: line 8228: syntax error near unexpected tokenelif' ./configure: line 8228:elif test "x$has_quotav2" = "xyes"; then'
------------Environmants are RHEL5.5/4.8 -- x86/x86_64/ia64.
"${LTPROOT}/configure" file of "ltp-7d2055e.tar.gz" is following:
------------< RHEL4.8 - x86>
[...]cat >conftest.$ac_ext <<
_ACEOF
/*confdefs.h. */_ACEOF
catconfdefs.h>>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF--- LINE 8210
/* endconfdefs.h. */#define
_LINUX_QUOTA_VERSION2
#include <sys/types.h>
#include <sys/quota.h>
#include <unistd.h>
int main(void) {
struct dqblk dq;
return quotactl(QCMD(Q_GETINFO, USRQUOTA), (const char *) "/dev/null",
geteuid(), (caddr_t) &dq);
}
--- LINE 8221
if test "x$has_quotav1" = "xyes"; thencat >>confdefs.h <<\_ACEOF
--- LINE 8224
#defineHAVE_QUOTAV11_ACEOFelif test "x$has_quotav2" = "xyes"; then
cat >>confdefs.h <<\_ACEOF
#defineHAVE_QUOTAV21_ACEOFfi
_ACEOF
--- LINE 8236
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
[...]
------------The line 8210 (" 8210 cat >>conftest.$ac_ext <<
_ACEOF") is the "here document".
First "_ACEOF" which appears after this line is the line 8224. But the line 8224 is "here document", too.I think that it is syntax error.
In the line 8236, there is "
_ACEOF".
This "_ACEOF" may be just after line 8221, I think.I tried to execute "configure" after above revision, and it succeeded. After this, "make" and "make install" succeeded, too.
Thanks for better pointing out the problem. I spread the autoconf
tests out so that (hopefully) the same mistake won't happen again. Cheers,
-Garrett
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 115 lines · Garrett Cooper
Quoted 114 lines · Bian Naimeng
Quoted 10 lines · Mitani
Hi,
I reported failure of "configure" on the other day.
http://www.mail-archive.com/[email protected]/msg11137.htmlBut I think that it's hard to notice because my report is contributed to the report of "realtime" failure. It's my clumsiness. Therefore, I report about "configure" again with the recent git.
Hi mitani-san,
Please try the following patch.
-----------------------
fix configure error.Signed-off-by Bian Naimeng <[email protected]>--- m4/ltp-quota.m4 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)m4/ltp-quota.m4 +2
-3@@ -29,7 +29,7 @@ int main(void) { struct dqblk dq; return quotactl(QCMD(Q_GETINFO, USRQUOTA), (const char *) "/dev/null", geteuid(), (caddr_t) &dq); -}],[has_quotav2="yes"],[dnl END quota v2 check +}])],[has_quotav2="yes"],[dnl END quota v2 check AC_LINK_IFELSE([AC_LANG_SOURCE([ #define _LINUX_QUOTA_VERSION 1 #include <sys/types.h>@@ -46,4 +46,4 @@ if test "x$has_quotav1" = "xyes"; then elif test "x$has_quotav2" = "xyes"; then AC_DEFINE(HAVE_QUOTAV2,1,[Define to 1 if you have quota v2]) fi -])]) +]) --1.7.0.4
Quoted 65 lines
---
"configure" failed with git "ltp-7d2055e.tar.gz":
------------<RHEL4.8 - x86>
./configure: line 8228: syntax error near unexpected tokenelif' ./configure: line 8228:elif test "x$has_quotav2" = "xyes"; then'
------------Environmants are RHEL5.5/4.8 -- x86/x86_64/ia64.
"${LTPROOT}/configure" file of "ltp-7d2055e.tar.gz" is following:
------------< RHEL4.8 - x86>
[...]cat >conftest.$ac_ext <<
_ACEOF
/*confdefs.h. */_ACEOF
catconfdefs.h>>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF---
LINE 8210
/* endconfdefs.h. */#define
_LINUX_QUOTA_VERSION2
#include <sys/types.h>
#include <sys/quota.h>
#include <unistd.h>
int main(void) {
struct dqblk dq;
return quotactl(QCMD(Q_GETINFO, USRQUOTA), (const char *)
"/dev/null",geteuid(), (caddr_t) &dq); }--- LINE 8221
if test "x$has_quotav1" = "xyes"; thencat >>confdefs.h <<\_ACEOF
--- LINE 8224
#defineHAVE_QUOTAV11_ACEOFelif test "x$has_quotav2" = "xyes"; then
cat >>confdefs.h <<\_ACEOF
#defineHAVE_QUOTAV21_ACEOFfi
_ACEOF
--- LINE 8236
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
[...]
------------The line 8210 (" 8210 cat >>conftest.$ac_ext <<
_ACEOF") is the "here document".
First "_ACEOF" which appears after this line is the line 8224. But the line 8224 is "here document", too.I think that it is syntax error.
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
In the line 8236, there is "
_ACEOF".
This "_ACEOF" may be just after line 8221, I think.I tried to execute "configure" after above revision, and it succeeded. After this, "make" and "make install" succeeded, too.
Thanks for better pointing out the problem. I spread the autoconf
tests out so that (hopefully) the same mistake won't happen again.
Hi Garrett,
I have reviewed your patch, it can work.
However, if you can attach your patch at this thread(not a URL) before
it committed, it's helpful to review, and can avoid new bugs, right? ^_^
Thanks
Bian
Quoted 3 lines
Cheers,
-Garrett
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list