[Nut-upsdev] Build error

Kjell Claesson kjell.claesson at epost.tidanet.se
Tue May 15 15:24:51 UTC 2007


Hi,

I was fooling around with the bcmxcp driver and enabling the
alarm functions. I hade tested this on some of the ups'es so
I was planning to submit it to the svn trunk.

But, as the bcmxcp is shared code for serial and usb I got a
problem.

When enabling --with-hal it halt on the build of
hald-addon-bcmxcp_usb.

--------------------------------------------------------------
gcc -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O -Wall
-Wsign-compare -o hald-addon-bcmxcp_usb bcmxcp_usb.o bcmxcp.o
nut_usb.o  ../common/libcommon.a libnuthalmain.a
-L/usr/lib /usr/lib/libusb.so /usr/lib/libhal.so /usr/lib/libdbus-glib-1.so -lnsl /usr/lib/libdbus-1.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so
bcmxcp.o: In function `upsdrv_updateinfo':
bcmxcp.c:(.text+0x1f2c): undefined reference to `alarm_init'
bcmxcp.c:(.text+0x1f59): undefined reference to `alarm_set'
bcmxcp.c:(.text+0x20dc): undefined reference to `alarm_commit'
collect2: ld returned 1 exit status
make[1]: *** [hald-addon-bcmxcp_usb] Fel 1
make[1]: Leaving directory `/home/kjell/nut/trunktest/drivers'
make: *** [all-recursive] Fel 1
-----------------------------------------------------------------

Fel 1 = Error 1

What I can see, the alarm_init e.t.c functions is defined in
dstate-hal.h but seems not to be used.

Don't think I want to mess with that code, so any suggestions?

Regards
Kjell





More information about the Nut-upsdev mailing list