From: Filipe F. <ffe...@gm...> - 2013-01-23 16:50:18
|
Hello, I've been able to reliably build 1.3.x versions from the git repository in the past, but I can no longer build 1.4.x when I checkout git tags. I go through the normal routine.. $ autoreconf -sif $ ./configure $ make At the `make` command it complains of the following... $ make make all-am make[1]: Entering directory `/home/ffernand/src/.interest/xmlstar' CC src/trans.o version.h: #define VERSION "1.4.2" CC src/xml.o CC src/xml_C14N.o CC src/xml_depyx.o CC src/xml_edit.o CC src/xml_elem.o CC src/xml_escape.o CC src/xml_format.o CC src/xml_ls.o src/xml_ls.c: In function ‘xml_print_dir’: src/xml_ls.c:140:9: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] CC src/xml_pyx.o CC src/xml_select.o CC src/xml_trans.o CC src/xml_validate.o GEN src/usage.c CC src/usage.o GEN src/c14n-usage.c CC src/c14n-usage.o GEN src/depyx-usage.c CC src/depyx-usage.o GEN src/edit-usage.c CC src/edit-usage.o GEN src/elem-usage.c CC src/elem-usage.o GEN src/escape-usage.c CC src/escape-usage.o GEN src/format-usage.c CC src/format-usage.o GEN src/ls-usage.c CC src/ls-usage.o GEN src/pyx-usage.c CC src/pyx-usage.o GEN src/select-usage.c CC src/select-usage.o src/select-usage.c:55:233: warning: multi-character character constant [-Wmultichar] src/select-usage.c:55:1: error: stray ‘\’ in program src/select-usage.c:55:1: warning: overflow in implicit constant conversion [-Woverflow] src/select-usage.c:55:239: error: expected ‘}’ before ‘n’ src/select-usage.c:55:240: warning: missing terminating ' character [enabled by default] src/select-usage.c:55:239: error: missing terminating ' character make[1]: *** [src/select-usage.o] Error 1 make[1]: Leaving directory `/home/ffernand/src/.interest/xmlstar' make: *** [all] Error 2 I looked at line 55 of src/select-usage.c and it does contain the character '\', which I believe in C should be '\\'. src/select-usage.c appears to be auto-generated using the script usage2c.awk script. filipe |
From: Filipe F. <ffe...@gm...> - 2013-01-23 16:54:02
|
On Wed, Jan 23, 2013 at 11:50 AM, Filipe Fernandes <ffe...@gm...>wrote: > Hello, > > I've been able to reliably build 1.3.x versions from the git repository in > the past, but I can no longer build 1.4.x when I checkout git tags. > Oh... forgot to mention that I'm using Ubuntu 12.04 (64-bit). filipe |
From: Noam P. <npo...@us...> - 2013-01-24 02:31:30
|
Filipe Fernandes <ffe...@gm...> writes: > > I looked at line 55 of src/select-usage.c and it does contain the character > '\', which I believe in C should be '\\'. src/select-usage.c appears to be > auto-generated using the script usage2c.awk script. mawk wants a different number of backslashes than gawk to output a backslash in gsub(). After taking a short look at [1] I decided I really don't want to know why, so I've rewritten usage2c.awk to avoid backslashes in gsub(). Please try the latest git (e9cd8843cb1f27). [1] http://www.gnu.org/software/gawk/manual/html_node/Gory-Details.html |
From: Filipe F. <ffe...@gm...> - 2013-01-24 19:37:02
|
On Wed, Jan 23, 2013 at 9:31 PM, Noam Postavsky < npo...@us...> wrote: > > mawk wants a different number of backslashes than gawk to output a > backslash in gsub(). After taking a short look at [1] I decided I really > don't want to know why, so I've rewritten usage2c.awk to avoid > backslashes in gsub(). Please try the latest git (e9cd8843cb1f27). > > [1] http://www.gnu.org/software/gawk/manual/html_node/Gory-Details.html > Thanks Noam for the quick reply, It got me further along... but there appears to be another hiccup... $ make make all-am make[1]: Entering directory `/home/ffernand/src/.interest/xmlstar' CC src/trans.o version.h: #define VERSION "1.4.2-2-ge9cd884" CC src/xml.o CC src/xml_C14N.o CC src/xml_depyx.o CC src/xml_edit.o CC src/xml_elem.o CC src/xml_escape.o CC src/xml_format.o CC src/xml_ls.o src/xml_ls.c: In function ‘xml_print_dir’: src/xml_ls.c:140:9: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] CC src/xml_pyx.o CC src/xml_select.o CC src/xml_trans.o CC src/xml_validate.o GEN src/usage.c CC src/usage.o GEN src/c14n-usage.c CC src/c14n-usage.o GEN src/depyx-usage.c CC src/depyx-usage.o GEN src/edit-usage.c CC src/edit-usage.o GEN src/elem-usage.c CC src/elem-usage.o GEN src/escape-usage.c CC src/escape-usage.o GEN src/format-usage.c CC src/format-usage.o GEN src/ls-usage.c CC src/ls-usage.o GEN src/pyx-usage.c CC src/pyx-usage.o GEN src/select-usage.c CC src/select-usage.o GEN src/trans-usage.c CC src/trans-usage.o GEN src/unescape-usage.c CC src/unescape-usage.o GEN src/validate-usage.c CC src/validate-usage.o CCLD xml make[1]: *** No rule to make target `doc/xmlstarlet.1', needed by `all-am'. Stop. make[1]: Leaving directory `/home/ffernand/src/.interest/xmlstar' make: *** [all] Error 2 I'm taking a look myself as I try to trace through the all-am target... but I thought I'd mention it in-case it was obvious to you. thanks, filipe |
From: Noam P. <npo...@us...> - 2013-01-24 19:51:18
|
On Thu, Jan 24, 2013 at 2:36 PM, Filipe Fernandes <ffe...@gm...> wrote: > It got me further along... but there appears to be another hiccup... > > $ make > make all-am > CCLD xml > make[1]: *** No rule to make target `doc/xmlstarlet.1', needed by `all-am'. > I'm taking a look myself as I try to trace through the all-am target... but > I thought I'd mention it in-case it was obvious to you. Hmm, I think you need to pass --enable-build-docs to ./configure. I had the idea that documentation building rules should be disabled by default because they require installing Apache FOP (also it runs pretty slow). The tarball comes with the docs prebuilt, but the default build from git is broken as you have just discovered; not sure what the best fix for that is. |
From: Filipe F. <ffe...@gm...> - 2013-01-25 15:27:34
|
On Thu, Jan 24, 2013 at 2:51 PM, Noam Postavsky <npo...@us...> wrote: > > On Thu, Jan 24, 2013 at 2:36 PM, Filipe Fernandes > <ffe...@gm...> wrote: > > It got me further along... but there appears to be another hiccup... > > > > $ make > > make all-am > > > CCLD xml > > make[1]: *** No rule to make target `doc/xmlstarlet.1', needed by `all-am'. > > > I'm taking a look myself as I try to trace through the all-am target... but > > I thought I'd mention it in-case it was obvious to you. > > Hmm, I think you need to pass --enable-build-docs to ./configure. I > had the idea that documentation building rules should be disabled by > default because they require installing Apache FOP (also it runs > pretty slow). The tarball comes with the docs prebuilt, but the > default build from git is broken as you have just discovered; not sure > what the best fix for that is. Thanks! That definitely got me further along. The manpage was built, but I still had to contend with the following error... DBOOK doc/xmlstarlet.1 Note: Writing xmlstarlet.1 make[1]: *** No rule to make target `doc/xmlstarlet-ug.pdf', needed by `all-am'. Stop. make[1]: Leaving directory `/home/ffernand/src/.interest/xmlstar' make: *** [all] Error 2 I don't need the pdf, so in the auto-generated Makefile I changed the line... dist_doc_DATA = $(userguide_gen) doc/html.css $(txtguide) by removing $(userguide_gen) in order to continue with the `make install`. I was able to build and install (including manpages). Thanks for that! I know that doesn't help you much :( much appreciated, filipe |
From: Noam P. <npo...@us...> - 2013-02-09 22:35:57
|
Filipe Fernandes <ffe...@gm...> writes: > Thanks! That definitely got me further along. The manpage was built, > but I still had to contend with the following error... > > DBOOK doc/xmlstarlet.1 > Note: Writing xmlstarlet.1 > make[1]: *** No rule to make target `doc/xmlstarlet-ug.pdf', needed by > `all-am'. Stop. > make[1]: Leaving directory `/home/ffernand/src/.interest/xmlstar' > make: *** [all] Error 2 I guess you ignored the warning about not having fop installed. Maybe it should be an error since it breaks the build? On the other hand, the tarball has the pdfs so it wouldn't break the build there... |