[Nut-upsdev] [Fwd: Re: openSUSE 11.0 - NUT]
Arjen de Korte
nut+devel at de-korte.org
Wed Apr 30 14:40:25 UTC 2008
Stanislav Brabec wrote:
> Please note that 2.2.2-pre3 installs hald addons by default to / on
> openSUSE 11.0 beta 2 x86_64. Not a big problem.
Here is a patch, which fixes openSUSE 11.0 beta 2 x86_64:
--- m4/nut_check_libhal.m4
+++ m4/nut_check_libhal.m4
@@ -63,7 +63,7 @@
dnl As per HAL spec, §5 Callouts and §2 Device Information Files
dnl - addon install path: $libdir/hal
AC_MSG_CHECKING(for libhal Callouts path)
- if (test -d "/usr/lib/hal")
+ if (test -d "${libdir}/hal")
then
# For Debian
HAL_CALLOUTS_PATH="${libdir}/hal"
I found another problem - nut-2.2.2-pre3 is not parallel build ready and
parallel build fails in ~80% of cases. It seems that dependencies are
not complete.
Build on one processor works.
gcc -I../include -I/usr/include -O2 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -Wsign-compare -o upsc
upsc.o ../common/libcommon.a -lupsclient -lssl -lcrypto
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
cannot find -lupsclient
collect2: ld returned 1 exit status
make[1]: *** [upsc] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/upsset.Tpo .deps/upsset.Po
gcc -I../include -I/usr/include -O2 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -Wsign-compare -o upsmon
upsmon.o ../common/libcommon.a -lupsclient -lssl -lcrypto
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
cannot find -lupsclient
collect2: ld returned 1 exit status
make[1]: *** [upsmon] Error 1
mv -f .deps/upslog.Tpo .deps/upslog.Po
mv -f .deps/cgilib.Tpo .deps/cgilib.Po
mv -f .deps/upssched.Tpo .deps/upssched.Po
mv -f .deps/upsimage.Tpo .deps/upsimage.Po
upsrw.c: In function 'do_setvar':
upsrw.c:114: warning: ignoring return value of 'fgets', declared with
attribute warn_unused_result
upsrw.c:146: warning: ignoring return value of 'fgets', declared with
attribute warn_unused_result
mv -f .deps/upsrw.Tpo .deps/upsrw.Po
mv -f .deps/upsstats.Tpo .deps/upsstats.Po
upscmd.c: In function 'main':
upscmd.c:277: warning: ignoring return value of 'fgets', declared with
attribute warn_unused_result
mv -f .deps/upscmd.Tpo .deps/upscmd.Po
make[1]: Leaving directory `/usr/src/packages/BUILD/nut-2.2.2-pre3/clients'
make: *** [all-recursive] Error 1
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec at suse.cz
Lihovarská 1060/12 tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
More information about the Nut-upsdev
mailing list