-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manpage building failed with asciidoc #86
Comments
verbose output a2x --format manpage --verbose compton.1.asciidoc
a2x: args: ['--format', 'manpage', '--verbose', 'compton.1.asciidoc']
a2x: executing: /usr/local/bin/asciidoc.py --backend docbook --doctype manpage --verbose --out-file /usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.xml /usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.asciidoc
asciidoc: reading: /usr/local/etc/asciidoc/asciidoc.conf
asciidoc: reading: /usr/local/etc/asciidoc/asciidoc.conf
asciidoc: reading: /usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.asciidoc
asciidoc: reading: /usr/local/etc/asciidoc/docbook45.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/code/code-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/music/music-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/graphviz/graphviz-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/latex/latex-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/source/source-highlight-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/lang-en.conf
asciidoc: writing: /usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.xml
a2x: executing: xmllint --nonet --noout --valid /usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.xml
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
/usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
^
/usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.xml:5: validity error : Validation failed: no DTD found !
<refentry lang="en">
^
a2x: ERROR: xmllint --nonet --noout --valid /usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.xml returned non-zero exit status 4 So is this my network problem ? |
The DocBook DTD should be installed locally instead of being fetched from Internet. Installing Another problem I discover is FreeBSD |
thanks all problem fixed ^^ I already test the richardgv-dev branch and works fine. the install not support -D argument problem I patch by freebsd ports mechanism. thanks richardgv compton is port to freebsd https://github.com/DachiChang/arkports-9.1/tree/master/compton my test port, not complete, but it's works :) |
|
https://github.com/DachiChang/arkports-9.1/tree/master/compton is just test for me ( the category will be in x11-wm/compton not arkports/compton ), I know the issue which you point out 2, 3, 4. I will make all building options with menu that user can chose for them-self. thank you for your advice, I will adjust compton port to adopt your recommend, but I need some time. thanks again for your hard work that compton can run in freebsd :) |
I checkout to richardgv-dev branch and got compiling error. In file included from src/c2.c:11:
src/c2.h:41: warning: declaration does not declare anything
src/c2.h:50: error: unknown field 'l' specified in initializer
src/c2.h:50: warning: excess elements in struct initializer
src/c2.h:50: warning: (near initialization for 'C2_PTR_NULL')
src/c2.h: In function 'c2_ptr_isempty':
src/c2.h:212: error: 'c2_ptr_t' has no member named 'b'
src/c2.h:212: error: 'c2_ptr_t' has no member named 'l'
src/c2.h: In function 'c2h_comb_tree':
src/c2.h:231: error: unknown field 'b' specified in initializer
src/c2.h:232: warning: excess elements in struct initializer
src/c2.h:232: warning: (near initialization for 'p')
src/c2.h:234: error: 'c2_ptr_t' has no member named 'b'
src/c2.h:235: error: 'c2_ptr_t' has no member named 'b'
src/c2.h:236: error: 'c2_ptr_t' has no member named 'b'
src/c2.c: In function 'c2_parse':
src/c2.c:22: error: unknown field 'l' specified in initializer
src/c2.c:22: warning: excess elements in struct initializer
src/c2.c:22: warning: (near initialization for 'result')
src/c2.c:37: error: unknown field 'l' specified in initializer
src/c2.c:37: warning: excess elements in struct initializer
src/c2.c:37: warning: (near initialization for 'lptr_def.ptr')
src/c2.c: In function 'c2_parse_grp':
src/c2.c:99: error: unknown field 'l' specified in initializer
src/c2.c:99: warning: excess elements in struct initializer
src/c2.c:99: warning: (near initialization for 'eles[0]')
src/c2.c:99: error: unknown field 'l' specified in initializer
src/c2.c:99: warning: excess elements in struct initializer
src/c2.c:99: warning: (near initialization for 'eles[1]')
src/c2.c:172: error: 'struct <anonymous>' has no member named 'b'
src/c2.c:196: error: 'c2_ptr_t' has no member named 'l'
src/c2.c:206: error: 'c2_ptr_t' has no member named 'b'
src/c2.c:206: error: 'c2_ptr_t' has no member named 'b'
src/c2.c:208: error: 'c2_ptr_t' has no member named 'l'
src/c2.c:208: error: 'c2_ptr_t' has no member named 'l'
src/c2.c: In function 'c2_parse_target':
src/c2.c:264: error: 'c2_ptr_t' has no member named 'l'
src/c2.c:265: error: 'c2_ptr_t' has no member named 'l'
src/c2.c:268: error: 'c2_ptr_t' has no member named 'l'
src/c2.c: In function 'c2_parse_op':
src/c2.c:453: error: 'c2_ptr_t' has no member named 'l'
src/c2.c: In function 'c2_parse_pattern':
src/c2.c:518: error: 'c2_ptr_t' has no member named 'l'
src/c2.c: In function 'c2_parse_legacy':
src/c2.c:665: error: 'c2_ptr_t' has no member named 'l'
src/c2.c: In function 'c2_free':
src/c2.c:826: error: 'c2_ptr_t' has no member named 'b'
src/c2.c:837: error: 'c2_ptr_t' has no member named 'l'
src/c2.c: In function 'c2_dump_raw':
src/c2.c:902: error: 'c2_ptr_t' has no member named 'b'
src/c2.c:925: error: 'c2_ptr_t' has no member named 'l'
src/c2.c: In function 'c2_match_once':
src/c2.c:1209: error: 'c2_ptr_t' has no member named 'b'
src/c2.c:1241: error: 'c2_ptr_t' has no member named 'l'
src/c2.c:1266: error: 'c2_ptr_t' has no member named 'b'
src/c2.c:1266: error: 'c2_ptr_t' has no member named 'l'
gmake: *** [c2.o] Error 1 my gcc version Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD] use gcc46 fixed the issue above, but need dependency on gcc46 port for compiling, gcc46 port must building up for more than one hour. can compton support freebsd base compiler (gcc version 4.2.1) ? |
The issue is caused by a bug in <gcc-4.6 that unnamed union members cannot be used in initializer. (The funny thing is, although the first report came on 2003, it's only fixed in gcc-4.6.) I use unnamed union in
|
patch from union to struct make compling fine. I know what difference between union and struct, use union can reduce more memory consumption. In 3. I know not everbody use gcc-4.2 and freebsd will use clang as default compiler. freebsd ports system is for all freebsd 7.2 ~ 9.1 so use clang to compiling compton is fine, but in out date version of freebsd is not support. |
- Make Makefile compatible with BSD install, by dropping -D. - Make CFG independent in Makefile, to allow people to specify CFLAGS as a parameter to make. - Correct location of .clang_complete.
I'm also having the exact same error occur when trying to compile. I'm using a Pkgfile to build. I have the latest docbook-xml installed as well as asciidoc.
My Pkgfile: build () {
echo -e "Starting make..."
} Any suggestions or help would be appreciated! I tried looking for textproc/docbook-xml-450 but it seems to be a bsd port. |
In ArchLinux may be install https://www.archlinux.org/packages/extra/any/docbook-xml/ will solve your problem. :) |
I'm actually using Crux Linux, and have the latest docbook-xml installed already. Thanks for the suggestion though. |
I'm afraid I have no more disk space to install yet another system. I have 6 operating systems installed now, and many are installed solely because people reported bugs of compton on those systems. Firstly, feel free to replace In case you haven't, please run Asciidoc uses DocBook 4.5 And your pkgfile is probably misusing |
Thanks for the reply, I ended up cloning the repository, making the --no-xmllint change to the Makefile, and tar'ing it. I also downgraded from DocBook 5.0, back to 4.5. With those changes, and removing the prefix made the package compile. I haven't noticed any weird things with adding that flag, so so far, so good. I wasn't able to get that other command in there, but since it was successful I'm sure it wasn't needed. Thanks for taking the time to respond to my issue, and the suggestion. I'm a huge fan of compton, and just couldn't bring myself to go back to xcompmgr. :) |
i need a workaround for compiling in gcc 4.2 for mini distros, i not able to use gcc 4.6 due its not cheap .. i using a AMD K6-II and install gcc 4.6 will cause to update several times many packages.. please, the workaround for union/struc will work on linux also? |
i need a workaround for compiling in gcc 4.2 for mini distros, i not able to use gcc 4.6 due its not cheap .. i using a AMD K6-II and install gcc 4.6 will cause to update several times many packages.. please, the workaround for union/struc will work on linux also? |
umm i'll try to made a macro for detecting gcc but dosent work... som help? |
Hi mckaygerhard, You can try this patch https://github.com/DachiChang/compton/blob/master/files/patch-c2.h , it's will make compton compiled by gcc 4.2. try it :) |
i solved , and made a pull request to able compile in any vesion of gcc, On Wed, Feb 27, 2013 at 11:57 AM, Chi-Hung Chang
Lenz McKAY Gerardo (PICCORO) |
my pull request are avble to detect gcc version |
Every time you "@" somebody, they probably will get a notification. When you "@" somebody that is unconcerned about a problem (MeisterLinux apparently is entirely unrelated to your issue), they will possibly get their mailbox spammed with useless notifications. Posting duplicate replies also has a similar effect on those subscribed to the issue / repo. The first page of my inbox is filled with notifications about your messages this morning. I would personally suggest you to be a little bit more cautious when you post things here, mckaygerhard. By the way, my reply is on #92. @DachiChang: Thanks for helping. :-) |
Make buffer age not glx specific
I use asciidoc-8.6.4 and asciidoc-8.6.6 in freebsd amd64 r9.1 to build compton. compiling is fine, but building manpage with asciidoc is failed when install target.
error message
a2x --format manpage compton.1.asciidoc
a2x: ERROR: xmllint --nonet --noout --valid /usr/home/dachichang/arkports/compton/chjj-compton-e8d854b/man/compton.1.xml returned non-zero exit status 4
I have already try use 8.6.4 and 8.6.6 the same result. but when i add argument "--no-xmllint" asciidoc goes fine. so is something wrong ?
The text was updated successfully, but these errors were encountered: