pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38864: textproc/xmlrpc-c doesn't compile in DragonFly (and probably others)



>Number:         38864
>Category:       pkg
>Synopsis:       textproc/xmlrpc-c doesn't compile in DragonFly (and probably 
>others)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 05 07:40:00 +0000 2008
>Originator:     Hasso Tepper
>Release:        DragonFly
>Organization:
>Environment:
DragonFly
>Description:
c++ -c -o value.o -Iblddir/include -Isrcdir/include -Iblddir 
-Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef 
-Woverloaded-virtual -Wsynth -g   value.cpp
value.cpp: In constructor 'xmlrpc_c::value_datetime::value_datetime(const 
xmlrpc_c::timeval&)':
value.cpp:384: error: invalid use of undefined type 'const struct 
xmlrpc_c::timeval'
blddir/include/xmlrpc-c/base.hpp:124: error: forward declaration of 'const 
struct xmlrpc_c::timeval'
gmake[2]: *** [value.o] Error 1

The code includes <time.h>, but it's not enough to use timeval structure in 
systems conforming to SUSv3 - sys/time.h is needed for that. In NetBSD 
sys/time.h is included from time.h, that's why it works there - probably just 
by accident. 
>How-To-Repeat:

>Fix:
The patch to fix the problem is available at
http://leaf.dragonflybsd.org/~hasso/pkgsrc-textproc-xmlrpc-c.patch



Home | Main Index | Thread Index | Old Index