[augeas-devel] re-write testToXml in test-api.c for RHEL 5 compatibility (libxml2-2.6)

Roland McIntosh roland at securelink.com
Wed Jan 25 19:31:46 UTC 2017


Hello,

I'm trying to create an RPM file for EL5 platforms but am having trouble
with "make check" in the "tests" directory.   Augeas compiles fine
otherwise on EL5 platforms.  I'd love if if you could consider modifying
test-api.c function testToXml to use libxml2-2.6 APIs (rather than
libxml2-2.7).

I could modify my spec file to skip "make check" when 0%{?rhel} == 5, but
I'd rather not do that if possible.

Here is the error:

test-api.c: In function ‘testToXml’:
test-api.c:531: warning: implicit declaration of function
‘xmlFirstElementChild’
test-api.c:531: warning: nested extern declaration of ‘xmlFirstElementChild’
test-api.c:531: warning: assignment makes pointer from integer without a
cast
test-api.c:540: warning: assignment makes pointer from integer without a
cast
test-api.c:551: warning: assignment makes pointer from integer without a
cast
  CCLD     test-api
test-api.o: In function `testToXml':
/home/rss/src/augt/augeas-1.7.0/tests/test-api.c:531: undefined reference
to `xmlFirstElementChild'
/home/rss/src/augt/augeas-1.7.0/tests/test-api.c:540: undefined reference
to `xmlFirstElementChild'
/home/rss/src/augt/augeas-1.7.0/tests/test-api.c:551: undefined reference
to `xmlFirstElementChild'
collect2: ld returned 1 exit status
make[1]: *** [test-api] Error 1
make[1]: Leaving directory `/home/rss/src/augt/augeas-1.7.0/tests'
make: *** [check-am] Error 2
[rgm at rgm.dev.lan tests]$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20170125/c99b64d2/attachment.htm>


More information about the augeas-devel mailing list