Package: iaxclient
Version: 0.0+svn20060729-1
Severity: wishlist

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
>  i486-kfreebsd-gnu-gcc -DHAVE_CONFIG_H -I. -I../../lib -I.. 
> -I../../lib/portaudio/pablio -I../../lib/portmixer/px_common -I/usr/include 
> -I../../lib/libiax2/src -DLIBIAX -I/usr/include -Wpointer-arith 
> -DLIBVER=\"0.0+svn20060729\" -DUSE_IAXC_RINGBUFFER_PREFIX -pthread -Wall -g 
> -D_REENTRANT --std=gnu99 -O2 -MT portmixer/px_unix_oss/px_unix_oss.lo -MD -MP 
> -MF portmixer/px_unix_oss/.deps/px_unix_oss.Tpo -c 
> ../../lib/portmixer/px_unix_oss/px_unix_oss.c -o 
> portmixer/px_unix_oss/px_unix_oss.o
> ../../lib/portmixer/px_unix_oss/px_unix_oss.c:43:48: error: 
> machine/soundcard.h: No such file or directory
> ../../lib/portmixer/px_unix_oss/px_unix_oss.c:63: error: 
> 'SOUND_MIXER_NRDEVICES' undeclared here (not in a function)
> ../../lib/portmixer/px_unix_oss/px_unix_oss.c: In function 'Px_OpenMixer':
> ../../lib/portmixer/px_unix_oss/px_unix_oss.c:134: warning: implicit 
> declaration of function 'MIXER_READ'
> [...]

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=iaxclient>.

Please find attached a patch that does *not* allow the package
successfully but helps a bit with its compilation, so that another
GNU/kFreeBSD porter can concentrate on what has to be done. That's why
I'm not setting severity to important nor tagging it with patch, as I
would have done otherwise. Feel free not to apply that patch right now.

Once applied, the build then fails on:
> if i486-kfreebsd-gnu-g++ -DHAVE_CONFIG_H -I. -I../../../simpleclient/iaxcomm 
> -I../..  -I../../../lib -I/usr/lib/wx/include/gtk2-unicode-release-2.6 
> -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 
> -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA 
> -DIAXCOMM_VERSION=\"1.1.0final\" -DXRCDIRECTORY=\"/usr/share/iaxcomm/rc\" 
> -DDATADIR=\"/usr/share/iaxcomm\"   -I/usr/include/gtk-2.0 
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo 
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
> -I/usr/include/freetype2 -I/usr/include/libpng12   
> -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
> -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA  -Wall -g -D_REENTRANT -D__UNICODE__ 
> -O2 -MT ringer.o -MD -MP -MF ".deps/ringer.Tpo" -c -o ringer.o 
> ../../../simpleclient/iaxcomm/ringer.cc; \
>         then mv -f ".deps/ringer.Tpo" ".deps/ringer.Po"; else rm -f 
> ".deps/ringer.Tpo"; exit 1; fi
> ../../../simpleclient/iaxcomm/ringer.cc:61:24: error: linux/kd.h: No such 
> file or directory
> /usr/include/wx-2.6/wx/hashmap.h: In member function 
> 'wxLongToLongHashMap_wxImplementation_HashTable::Node** 
> wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) 
> const':
> /usr/include/wx-2.6/wx/hashmap.h:705: warning: dereferencing type-punned 
> pointer will break strict-aliasing rules
> /usr/include/wx-2.6/wx/clntdata.h: In member function 
> 'wxShadowObjectMethods_wxImplementation_HashTable::Node** 
> wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) 
> const':
> /usr/include/wx-2.6/wx/clntdata.h:26: warning: dereferencing type-punned 
> pointer will break strict-aliasing rules
> /usr/include/wx-2.6/wx/clntdata.h: In member function 
> 'wxShadowObjectFields_wxImplementation_HashTable::Node** 
> wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) 
> const':
> /usr/include/wx-2.6/wx/clntdata.h:31: warning: dereferencing type-punned 
> pointer will break strict-aliasing rules
> /usr/include/wx-2.6/wx/gdicmn.h: In member function 
> 'wxStringToColourHashMap_wxImplementation_HashTable::Node** 
> wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const 
> wxString&) const':
> /usr/include/wx-2.6/wx/gdicmn.h:476: warning: dereferencing type-punned 
> pointer will break strict-aliasing rules
> /usr/include/wx-2.6/wx/image.h: In member function 
> 'wxImageHistogramBase_wxImplementation_HashTable::Node** 
> wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(const long 
> unsigned int&) const':
> /usr/include/wx-2.6/wx/image.h:123: warning: dereferencing type-punned 
> pointer will break strict-aliasing rules
> ../../../simpleclient/iaxcomm/ringer.cc: In function 'void Beep(int, int)':
> ../../../simpleclient/iaxcomm/ringer.cc:70: error: 'KDMKTONE' was not 
> declared in this scope
> ../../../simpleclient/iaxcomm/ringer.cc: At global scope:
> ../../../simpleclient/iaxcomm/ringer.cc:63: warning: 'void Beep(int, int)' 
> defined but not used
> make[4]: *** [ringer.o] Error 1
> make[4]: Leaving directory 
> `/home/kibi/y/iaxclient-0.0+svn20060729/objs/simpleclient/iaxcomm'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory 
> `/home/kibi/y/iaxclient-0.0+svn20060729/objs/simpleclient'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/kibi/y/iaxclient-0.0+svn20060729/objs'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/kibi/y/iaxclient-0.0+svn20060729/objs'
> make: *** [build-arch-stamp] Error 2

Cheers,

-- 
Cyril Brulebois
--- iaxclient-0.0+svn20060729/lib/portmixer/px_unix_oss/px_unix_oss.c	2007-03-15 21:10:51.013026000 +0100
+++ iaxclient-0.0+svn20060729/lib/portmixer/px_unix_oss/px_unix_oss.c	2007-03-15 21:11:13.000000000 +0100
@@ -37,7 +37,7 @@
 
 #if defined(__linux__)
 #include <linux/soundcard.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <sys/soundcard.h>
 #else
 #include <machine/soundcard.h> /* JH20010905 */

Reply via email to