Subject: Re: xmlrpc-c on NetBSD : build error
To: Asmodehn Shade <>
From: Chavdar Ivanov <>
List: pkgsrc-users
Date: 04/05/2007 15:47:31
On 05/04/07, Asmodehn Shade <> wrote:
> Hi everyone,
> I am trying to get xmlrpc-c to build on NetBSD, primarily because it s a dependency of cmake...
> It didnt build for quite a while now, and I looked at it a little bit into it.
> At some point, the build process tried to :
>  cc -c -I/usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00 -I/usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/include -I/usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/lib/util/include -I/usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/lib/abyss/src -I/usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/lib/curl_transport -I/usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/lib/libwww_transport -I/usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/lib/expat/xmlparse -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_server_abyss.c -o xmlrpc_server_abyss.o >/dev/null 2>&1
> /usr/pkg/bin/gmake -C /usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/lib/abyss/src/ -f /usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/lib/abyss/src/Makefile \
>             libxmlrpc_abyss.shlibledummy
> gmake[2]: Entering directory `/usr/pkgsrc/textproc/xmlrpc-c/work/xmlrpc-c-1.09.00/lib/abyss/src'
> gmake[2]: *** No rule to make target `libxmlrpc_abyss.shlibledummy'.  Stop.
> Having a look in Makefile.config, it seems these target *.shlibledummy are set when the HOST_OS is not recognized.

Same with -current i386 and -current pkgsrc.

> Having a look into, I found out that :
> 1) my HOST_OS in Makefile.config after using make in pkgsrc/textproc/xmlrpc-c is :
> HOST_OS = netbsdelf
> 2) the patch-ab changed like that :
> -ifeq ($(findstring netbsd,$(HOST_OS)),FIND)
> +ifeq ($(HOST_OS),netbsd)

I 'patched' the patch as you suggested and it compiled correctly.

> along with adding dragonfly support..
> 3) I spotted a similar Makefile.config in lib/libutil/srcdir/ still with the old version for netbsd HOST_OS checks and some others in lib/abyss/src/srcdir, lib/abyss/blddir, etc.
> But I wonder if I am the only one having this problem...

Seems no.

> Is there some stuff I should have upgraded in pkgsrc, that would changed my HOST_OS somehow ?
> Or did the patch really break the build on NetBSD platforms ?
> I am also not familiar with the inside of pkgsrc build process.
> I dont know how I can passby all the checks to change this line and test it...

'make patch' apparently does not honour NO_CHECKSUM=yes ; even when I
updated the sha1 sum in the distfiles, it still would not play game
and refuse to use patch-ab; I had to manually patch the source (make
extract; make patch ; cd work/xml*; patch < ../../patches/patch-ab; cd
..; touch .patch_done ; cd ..; make )

> so I am not sure that is the reason why it fails, although it seems very likely to be related ;)
> Thank you for your help and advises ;)
> --
> Asmodehn
Chavdar Ivanov