Package Details: libxml 1.8.17-1

Git Clone URL: https://aur.archlinux.org/libxml.git (read-only, click to copy)
Package Base: libxml
Description: The XML C parser and toolkit of Gnome. Older version.
Upstream URL: http://xmlsoft.org/
Licenses: GPL
Submitter: jonathon
Maintainer: jonathon
Last Packager: jonathon
Votes: 2
Popularity: 0.017161
First Submitted: 2018-06-20 18:53
Last Updated: 2018-06-20 18:53

Latest Comments

m2-farzan commented on 2021-05-03 09:06

Hey, thanks for the package. So I tried it today and got this error:

debugXML.c: In function 'xmlDebugDumpNamespace': debugXML.c:49:21:
error: format not a string literal and no format arguments [-Werror=format-security]
49 | fprintf(output, shift);

I'm not a C expert, but some explanation can be found here.

So as a SUPER DIRTY fix, I did this:

makepkg --nobuild
find . -type f -name "*.c" -exec sed -i "s/fprintf\([^,]*,[^,]*\));/fputs\1);/g" {} +
makepkg --noextract -i

which should find calls to fprintf with 2 params, and replaces them with fputs. This made the errors go away but there was LOADS of warnings. Now idk much C and couldn't give it more time, so this could be a horrible workaround. Anyway, just wanted to share.

P.S. In the SO page I linked, there is talk about a compiler flag that causes the error. So maybe disabling the flag would be a better workaround than modifying the old code.

jonathon commented on 2021-04-23 18:40

It builds for me in a clean chroot, so maybe try with a different helper, or without one?

cenderme commented on 2021-04-23 18:31

I get this error while installing. I couldn't understand why though. Do you happen to know why?

cc1: some warnings being treated as errors
make[2]: *** [Makefile:743: debugXML.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/HTMLparser.Tpo .deps/HTMLparser.Plo
mv -f .deps/parser.Tpo .deps/parser.Plo
mv -f .deps/parserold.Tpo .deps/parserold.Plo
make[2]: Leaving directory '/home/user/.cache/yay/libxml/src/libxml-1.8.17'
make[1]: *** [Makefile:828: all-recursive] Error 1
make[1]: Leaving directory '/home/user/.cache/yay/libxml/src/libxml-1.8.17'
make: *** [Makefile:534: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: libxml

Here's the line 743 of Makefile:

.c.lo:
    $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
    $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo

ankitrgadiya commented on 2020-11-21 20:32

The FTP Server is not reachable but I found this alternate to fetch the source. http://xmlsoft.org/sources/old/libxml-1.8.17.tar.gz

I created a patch for it: https://gist.githubusercontent.com/ankitrgadiya/a996a801a1b15963a2f28831f85603ea/raw/9251694db2b0e99995eb0213b389c0a2e16d8ba5/patch.diff