Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 182314

Summary: app-pda/libopensync-0.22 fail compilation on Gentoo/FreeBSD
Product: Gentoo/Alt Reporter: MT <toffanin.mauro>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 178853    
Attachments: libopensync-0.22-fbsd.patch

Description MT 2007-06-17 11:25:18 UTC
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 MT 2007-06-17 11:26:00 UTC
Created attachment 122313 [details, diff]
libopensync-0.22-fbsd.patch
Comment 2 MT 2007-06-17 12:06:25 UTC
patch reported upstream
Comment 3 Piotr JaroszyƄski (RETIRED) gentoo-dev 2007-06-17 12:32:14 UTC
Thanks, commited.