Bug 182314 - app-pda/libopensync-0.22 fail compilation on Gentoo/FreeBSD
Bug#: 182314 Product:  Gentoo/Alt Version: unspecified Platform: AMD64
OS/Version: FreeBSD Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: bsd@gentoo.org Reported By: toffanin.mauro@gmail.com
Component: FreeBSD
URL: 
Summary: app-pda/libopensync-0.22 fail compilation on Gentoo/FreeBSD
Keywords:  
Status Whiteboard: 
Opened: 2007-06-17 11:25 0000
Description:   Opened: 2007-06-17 11:25 0000
on Gentoo/FreeBSD libopensync fail compilation:

cc1: warnings being treated as errors
vformat.c: In function '_read_attribute_value_add':
vformat.c:242: warning: passing argument 2 of 'libiconv' from incompatible
pointer type
vformat.c:270: warning: passing argument 2 of 'libiconv' from incompatible
pointer type
gmake[3]: *** [vformat.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[2]: *** [all-recursive] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2

the problem is around an #ifdef specific for Solaris making g/fbsd fallback to
a generic #ifdef statement not suitable for *BSD userland. Attached there is a
patch that change the #ifdef declaration in something usable for
Solaris/FreeBSD/NetBSD.

Reproducible: Always

------- Comment #1 From Toffanin [Gentoo/FreeBSD AT] 2007-06-17 11:26:00 0000 -------
Created an attachment (id=122313) [details]
libopensync-0.22-fbsd.patch

------- Comment #2 From Toffanin [Gentoo/FreeBSD AT] 2007-06-17 12:06:25 0000 -------
patch reported upstream

------- Comment #3 From Piotr JaroszyƄski 2007-06-17 12:32:14 0000 -------
Thanks, commited.