porting software with Linux netlink(3)

Alexander Logvinov freebsd at akavia.ru
Tue Apr 15 08:10:34 UTC 2008


Hello!.

  I want to update palm/synce-* ports and get some problems while
  porting odccm from synce project. Is there any chance to get
  netlink(3) on FreeBSD?

  Here is some logs:

checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBSYNCE... yes
checking for GLIB... yes
checking for GNET... yes
checking for DBUS... yes
checking for HAL... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating man/Makefile
config.status: executing depfiles commands
===>  Building for synce-odccm-0.11
Making all in src
make  all-am
cc -DPACKAGE_NAME=\"odccm\" -DPACKAGE_TARNAME=\"odccm\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"odccm\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"odccm\" -DVERSION=\"0.11\" -DSTDC_HEADERS=1 -DENABLE_LEGACY_SUPPORT=1 -I.     -Wall -I/usr/local/include   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -D_REENTRANT -I/usr/local/include/gnet-2.0 -I/usr/local/lib/gnet-2.0/include/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -O2 -fno-strict-aliasing -pipe -MT odccm-device-signals-marshal.o -MD -MP -MF .deps/odccm-device-signals-marshal.Tpo -c -o odccm-device-signals-marshal.o odccm-device-signals-marshal.c
mv -f .deps/odccm-device-signals-marshal.Tpo .deps/odccm-device-signals-marshal.Po
cc -DPACKAGE_NAME=\"odccm\" -DPACKAGE_TARNAME=\"odccm\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"odccm\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"odccm\" -DVERSION=\"0.11\" -DSTDC_HEADERS=1 -DENABLE_LEGACY_SUPPORT=1 -I.     -Wall -I/usr/local/include   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -D_REENTRANT -I/usr/local/include/gnet-2.0 -I/usr/local/lib/gnet-2.0/include/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -O2 -fno-strict-aliasing -pipe -MT odccm-device-manager-signals-marshal.o -MD -MP -MF .deps/odccm-device-manager-signals-marshal.Tpo -c -o odccm-device-manager-signals-marshal.o odccm-device-manager-signals-marshal.c
mv -f .deps/odccm-device-manager-signals-marshal.Tpo .deps/odccm-device-manager-signals-marshal.Po
cc -DPACKAGE_NAME=\"odccm\" -DPACKAGE_TARNAME=\"odccm\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"odccm\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"odccm\" -DVERSION=\"0.11\" -DSTDC_HEADERS=1 -DENABLE_LEGACY_SUPPORT=1 -I.     -Wall -I/usr/local/include   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -D_REENTRANT -I/usr/local/include/gnet-2.0 -I/usr/local/lib/gnet-2.0/include/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -O2 -fno-strict-aliasing -pipe -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
mv -f .deps/util.Tpo .deps/util.Po
cc -DPACKAGE_NAME=\"odccm\" -DPACKAGE_TARNAME=\"odccm\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"odccm\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"odccm\" -DVERSION=\"0.11\" -DSTDC_HEADERS=1 -DENABLE_LEGACY_SUPPORT=1 -I.     -Wall -I/usr/local/include   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -D_REENTRANT -I/usr/local/include/gnet-2.0 -I/usr/local/lib/gnet-2.0/include/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -O2 -fno-strict-aliasing -pipe -MT odccm-errors.o -MD -MP -MF .deps/odccm-errors.Tpo -c -o odccm-errors.o odccm-errors.c
mv -f .deps/odccm-errors.Tpo .deps/odccm-errors.Po
cc -DPACKAGE_NAME=\"odccm\" -DPACKAGE_TARNAME=\"odccm\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"odccm\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"odccm\" -DVERSION=\"0.11\" -DSTDC_HEADERS=1 -DENABLE_LEGACY_SUPPORT=1 -I.     -Wall -I/usr/local/include   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -D_REENTRANT -I/usr/local/include/gnet-2.0 -I/usr/local/lib/gnet-2.0/include/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -O2 -fno-strict-aliasing -pipe -MT odccm-connection-broker.o -MD -MP -MF .deps/odccm-connection-broker.Tpo -c -o odccm-connection-broker.o odccm-connection-broker.c
mv -f .deps/odccm-connection-broker.Tpo .deps/odccm-connection-broker.Po
cc -DPACKAGE_NAME=\"odccm\" -DPACKAGE_TARNAME=\"odccm\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"odccm\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"odccm\" -DVERSION=\"0.11\" -DSTDC_HEADERS=1 -DENABLE_LEGACY_SUPPORT=1 -I.     -Wall -I/usr/local/include   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -D_REENTRANT -I/usr/local/include/gnet-2.0 -I/usr/local/lib/gnet-2.0/include/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -O2 -fno-strict-aliasing -pipe -MT odccm-device.o -MD -MP -MF .deps/odccm-device.Tpo -c -o odccm-device.o odccm-device.c
mv -f .deps/odccm-device.Tpo .deps/odccm-device.Po
cc -DPACKAGE_NAME=\"odccm\" -DPACKAGE_TARNAME=\"odccm\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"odccm\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"odccm\" -DVERSION=\"0.11\" -DSTDC_HEADERS=1 -DENABLE_LEGACY_SUPPORT=1 -I.     -Wall -I/usr/local/include   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -D_REENTRANT -I/usr/local/include/gnet-2.0 -I/usr/local/lib/gnet-2.0/include/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -O2 -fno-strict-aliasing -pipe -MT odccm-device-manager.o -MD -MP -MF .deps/odccm-device-manager.Tpo -c -o odccm-device-manager.o odccm-device-manager.c
odccm-device-manager.c:25:27: error: linux/netlink.h: No such file or directory
odccm-device-manager.c: In function 'udev_read_cb':
odccm-device-manager.c:744: warning: passing argument 2 of 'g_io_channel_read' from incompatible pointer type
odccm-device-manager.c: In function 'init_udev':
odccm-device-manager.c:792: error: storage size of 'snl' isn't known
odccm-device-manager.c:798: error: invalid application of 'sizeof' to incomplete type 'struct sockaddr_nl' 
odccm-device-manager.c:799: error: 'AF_NETLINK' undeclared (first use in this function)
odccm-device-manager.c:799: error: (Each undeclared identifier is reported only once
odccm-device-manager.c:799: error: for each function it appears in.)
odccm-device-manager.c:803: warning: implicit declaration of function 'socket'
odccm-device-manager.c:803: error: 'PF_NETLINK' undeclared (first use in this function)
odccm-device-manager.c:803: error: 'SOCK_DGRAM' undeclared (first use in this function)
odccm-device-manager.c:803: error: 'NETLINK_KOBJECT_UEVENT' undeclared (first use in this function)
odccm-device-manager.c:810: warning: implicit declaration of function 'bind'
odccm-device-manager.c:811: error: invalid application of 'sizeof' to incomplete type 'struct sockaddr_nl' 
odccm-device-manager.c:792: warning: unused variable 'snl'
*** Error code 1


-- 
WBR



More information about the freebsd-ports mailing list