Package Details: libxml 1.8.17-4

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: None
Last Packager: AchmadFathoni
Votes: 4
Popularity: 0.000000
First Submitted: 2018-06-20 18:53 (UTC)
Last Updated: 2021-09-24 08:48 (UTC)

Pinned Comments

AchmadFathoni commented on 2021-09-24 08:37 (UTC)

@Nihiii0, I suggest use more up to date libxml2 https://aur.archlinux.org/packages/libxml2-git/ instead.

Latest Comments

« First ‹ Previous 1 2

eschwartz commented on 2021-06-01 02:49 (UTC)

There's no use reporting bugs to the old version of libxml2, which was released in 2002 and since then superseded by the 2.x line of development.

It builds for me in a clean chroot

clean chroots use the devtools makepkg.conf, not the one from the host machine. That's not synced yet.

Consider these reports to be a prediction of future problems once the devtools implement https://gitlab.archlinux.org/archlinux/rfcs/-/merge_requests/3

jonathon commented on 2021-06-01 02:22 (UTC)

Please report upstream.

robo_ag commented on 2021-05-27 10:25 (UTC) (edited on 2021-05-27 10:46 (UTC) by robo_ag)

Hi, i had the same problem of m2-farzan. I tried to temporarily disable the warning flag in /etc/makepkg.conf and everything worked.

m2-farzan commented on 2021-05-03 09:06 (UTC) (edited on 2021-05-03 09:14 (UTC) by m2-farzan)

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 (UTC)

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 (UTC) (edited on 2021-04-23 18:34 (UTC) by cenderme)

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 (UTC)

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