All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
Interix perl system command?
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
Interix perl system command? - May 8, '06, 12:43:03 PM
|
|
|
jerker_back
Posts: 68
Joined: Jul. 7, '05,
From: Sweden
Status: offline
|
Anyone with perl knowledge?
Will this ever work (supported by Interix Perl) or is the command malformed?
$ perl 'system("echo foo | /bin/m4")'
$ perl -v
This is perl, v5.6.1 built for x86-interix
Related to this:
Have anyone been able to run all GNU autoconf test successfully?
I've tested GNU autoconf-2.59c with GNU m4-1.4.4 and GNU make 3.81
|
|
|
RE: Interix perl system command? - May 8, '06, 1:28:50 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Your command line is missing the "-e".
"perl -e 'system("echo foo | /bin/m4")'
|
|
|
RE: Interix perl system command? - May 8, '06, 3:20:40 PM
|
|
|
jerker_back
Posts: 68
Joined: Jul. 7, '05,
From: Sweden
Status: offline
|
Thanks Rodney
|
|
|
RE: Interix perl system command? - May 8, '06, 3:39:36 PM
|
|
|
jerker_back
Posts: 68
Joined: Jul. 7, '05,
From: Sweden
Status: offline
|
Do you have any comments on this?
GNU autoconf fails test 12 - AC_PREREQ
Tools:
Interix gcc, GNU make 3.81, GNU m4
everything else is SUA original
Paul Eggert:
quote:
12. tools.at:556: testing ...
./tools.at:559: autoupdate --version | sed 's/.*) //;q'
stdout:
2.59c
./tools.at:564: echo "AC_PREREQ(1.0)" | autoupdate -
./tools.at:567: echo "AC_PREREQ($autoupdate_version)" | autoupdate -
./tools.at:570: echo "AC_PREREQ(999.99)" | autoupdate -
stderr:
/tmp/au822.1499/stdin:1: error: Autoconf version 999.99 or higher is required
/tmp/au822.1499/stdin:1: the top level
autoupdate: failed to run /bin/m4: Invalid seek on non-seekable object
This error message comes from Perl, and makes it look like the Perl system function cannot run /bin/m4. That sounds like an error in your setup somehow. Still, it is a bit odd that the other tests succeeded, whereas this one failed. Perhaps you can investigate it more?
Perhaps Perl cannot run system("echo foo | /bin/m4")?
Yes, I know it's a bit out of context, but maybe you seen it before?
|
|
|
RE: Interix perl system command? - May 8, '06, 6:11:58 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Well, autoconf built fine.
I've just run the tests here and they error, but I don't know why.
I've used it and the results have been fine.
You can install the GNU m4 (gm4) and see if it likes it better.
|
|
|
RE: Interix perl system command? - May 9, '06, 6:57:28 AM
|
|
|
jerker_back
Posts: 68
Joined: Jul. 7, '05,
From: Sweden
Status: offline
|
GNU m4 is required to get the paket compile I believe
So, even if there are errors in the test, it is basically OK?
When you run the test, which of the components failed?
My test run came out like this:
12: autoupdating AC_PREREQ FAILED (tools.at:570)
48: Multiline command from M4 expansion expected failure (autotest.at:169)
58: Backquote in a test title expected failure (autotest.at:255)
59: Single-quote in a test title expected failure (autotest.at:256)
60: Double-quote in a test title expected failure (autotest.at:257)
86: Define a newline expected failure (torture.at:632)
278: Libtool skipped (foreign.at:32)
ERROR: 278 tests were run,
6 failed (5 expected failures).
1 test was skipped.
I have no clue how to judge or correct the failed tests.
Some thoughts of the auto* tools:
My original idea was to run the auto* tools in Fedora, mount the ext2 volumes in Windows and share common source trees between the 2 systems. Unfortunatly, the ext2 driver do not support symlinks and permissions, so it didn't work. I then used to boot into Fedora and run it there and then back in Windows do a diff to get the tree right. Not a very satisfying or safe solution, better a working set of tools in Interix. Basically, the need comes sometimes when updating sources from CVS and you need to run autoreconf, which have demands on a number of tools not present in Interix - so there is some deeds to be made to get it all working OK.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|