You are not logged in.
Hello, i wanted to build xfce4-sensors with libxnvctrl so i can view my GPU temperatures. I downloaded source package from: https://docs.xfce.org/panel-plugins/xfc … st_release and run
./configure --prefix=${_sysroot} --bindir=/usr/bin --with-sysroot=${_sysroot} --build=$CHOST --host=$CHOST --target=${_target} --with-gcc --with-gnu-as --with-gnu-ld --enable-shared --without-included-gettext --disable-nls --disable-debug --disable-win32-registry
(I don't know if the whole line is correct, i took it from there: https://wiki.archlinux.org/index.php/Cr … uidelines). And when i run
make
i get these errors:
make all-recursive
make[1]: Entering directory '/opt/xfce4-sensors-plugin-1.3.95'
Making all in include
make[2]: Entering directory '/opt/xfce4-sensors-plugin-1.3.95/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/opt/xfce4-sensors-plugin-1.3.95/include'
Making all in lib
make[2]: Entering directory '/opt/xfce4-sensors-plugin-1.3.95/lib'
CC libxfce4sensors_la-nvidia.lo
In file included from nvidia.c:39:
/usr/include/NVCtrl/NVCtrlLib.h:42:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
42 | Bool XNVCTRLQueryExtension (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:43:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
43 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:57:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
57 | Bool XNVCTRLQueryVersion (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:58:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
58 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:71:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
71 | Bool XNVCTRLIsNvScreen (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:72:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
72 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:92:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
92 | Bool XNVCTRLQueryTargetCount (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:93:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
93 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:118:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
118 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:141:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
141 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:159:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
159 | Bool XNVCTRLSetAttributeAndGetStatus (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:160:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
160 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:177:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
177 | Bool XNVCTRLSetTargetAttributeAndGetStatus (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:178:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
178 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:206:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
206 | Bool XNVCTRLQueryAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:207:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
207 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:230:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
230 | Bool XNVCTRLQueryTargetAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:231:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
231 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:258:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
258 | Bool XNVCTRLQueryTargetAttribute64 (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:259:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
259 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:286:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
286 | Bool XNVCTRLQueryStringAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:287:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
287 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:309:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
309 | Bool XNVCTRLQueryTargetStringAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:310:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
310 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:330:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
330 | Bool XNVCTRLSetStringAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:331:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
331 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:350:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
350 | Bool XNVCTRLSetTargetStringAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:351:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
351 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:373:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
373 | Bool XNVCTRLQueryValidAttributeValues (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:374:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
374 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:391:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
391 | Bool XNVCTRLQueryValidTargetAttributeValues (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:392:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
392 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:409:2: error: unknown type name ‘Bool’; did you mean ‘bool’?
409 | Bool XNVCTRLQueryValidTargetStringAttributeValues (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:410:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
410 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:428:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
428 | Bool XNVCTRLQueryAttributePermissions (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:429:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
429 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:443:2: error: unknown type name ‘Bool’; did you mean ‘bool’?
443 | Bool XNVCTRLQueryStringAttributePermissions (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:444:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
444 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:458:2: error: unknown type name ‘Bool’; did you mean ‘bool’?
458 | Bool XNVCTRLQueryBinaryDataAttributePermissions (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:459:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
459 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:473:2: error: unknown type name ‘Bool’; did you mean ‘bool’?
473 | Bool XNVCTRLQueryStringOperationAttributePermissions (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:474:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
474 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:531:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
531 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:554:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
554 | Bool XNVCTRLQueryGvoColorConversion (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:555:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
555 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:582:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
582 | Bool XNVCTRLQueryBinaryData (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:583:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
583 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:607:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
607 | Bool XNVCTRLQueryTargetBinaryData (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:608:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
608 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:625:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
625 | Bool XNVCTRLStringOperation (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:626:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
626 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:687:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
687 | Bool XNVCTRLBindWarpPixmapName (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:688:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
688 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:690:5: error: unknown type name ‘Pixmap’
690 | Pixmap pixmap_id,
| ^~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:709:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
709 | Bool XNVCtrlSelectNotify (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:710:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
710 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:713:5: error: unknown type name ‘Bool’; did you mean ‘bool’?
713 | Bool onoff
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:731:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
731 | Bool XNVCtrlSelectTargetNotify (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:732:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
732 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:736:5: error: unknown type name ‘Bool’; did you mean ‘bool’?
736 | Bool onoff
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:747:5: error: unknown type name ‘Bool’
747 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:748:5: error: unknown type name ‘Display’
748 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:749:5: error: unknown type name ‘Time’
749 | Time time;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:770:5: error: unknown type name ‘Bool’
770 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:771:5: error: unknown type name ‘Display’
771 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:772:5: error: unknown type name ‘Time’
772 | Time time;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:794:5: error: unknown type name ‘Bool’
794 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:795:5: error: unknown type name ‘Display’
795 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:796:5: error: unknown type name ‘Time’
796 | Time time;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:802:5: error: unknown type name ‘Bool’
802 | Bool availability;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:819:5: error: unknown type name ‘Bool’
819 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:820:5: error: unknown type name ‘Display’
820 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:821:5: error: unknown type name ‘Time’
821 | Time time;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:843:5: error: unknown type name ‘Bool’
843 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:844:5: error: unknown type name ‘Display’
844 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:845:5: error: unknown type name ‘Time’
845 | Time time;
| ^~~~
nvidia.c: In function ‘get_nvidia_value’:
nvidia.c:107:9: warning: implicit declaration of function ‘XNVCTRLQueryTargetAttribute’ [-Wimplicit-function-declaration]
107 | if (XNVCTRLQueryTargetAttribute (nvidia_sensors_display,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia.c: In function ‘read_gpus’:
nvidia.c:160:13: warning: implicit declaration of function ‘XNVCTRLQueryExtension’; did you mean ‘XQueryExtension’? [-Wimplicit-function-declaration]
160 | if (XNVCTRLQueryExtension (nvidia_sensors_display, &event, &error)) {
| ^~~~~~~~~~~~~~~~~~~~~
| XQueryExtension
nvidia.c:161:13: warning: implicit declaration of function ‘XNVCTRLQueryTargetCount’ [-Wimplicit-function-declaration]
161 | XNVCTRLQueryTargetCount (nvidia_sensors_display,
| ^~~~~~~~~~~~~~~~~~~~~~~
nvidia.c:171:13: warning: implicit declaration of function ‘XNVCTRLQueryTargetStringAttribute’ [-Wimplicit-function-declaration]
171 | if (XNVCTRLQueryTargetStringAttribute (nvidia_sensors_display,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:646: libxfce4sensors_la-nvidia.lo] Error 1
make[2]: Leaving directory '/opt/xfce4-sensors-plugin-1.3.95/lib'
make[1]: *** [Makefile:510: all-recursive] Error 1
make[1]: Leaving directory '/opt/xfce4-sensors-plugin-1.3.95'
make: *** [Makefile:440: all] Error 2Please help
Last edited by k0ss4 (2021-02-06 20:19:46)
Offline
On Arch that builds with no issues.
You are cross-compiling for another platform, but you haven’t given information on what is the target platform. What are the values of the referenced variables? Is cross-compiling for that platform working for other software? In particular GTK-based programs?
Offline
On Arch that builds with no issues.
So what arguments should i pass there in order to build for arch on arch?(the cross-compilation is just a big mistake)I tried doing just
./configure
with the same results.
Last edited by k0ss4 (2021-02-06 10:50:39)
Offline
Please edit your post(s) and use [ code ] tags (not quote tags) when posting output. This makes the output easier to read and provides a scroll box for long output.
https://gitlab.archlinux.org/archlinux/ … s-and-code
https://bbs.archlinux.org/help.php#bbcode
Offline
@mpan did you include libxnvctrl in your build?
==> Extracting sources...
-> Extracting xfce4-sensors-plugin-1.3.95.tar.bz2 with bsdtar
==> Starting build()...
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking how to print strings... printf
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.32.0
checking for XML::Parser... ok
checking for ANSI C header files... (cached) yes
checking for sensors_get_detected_chips in -lsensors... yes
checking for hddtemp... yes
checking for hddtemp path... /usr/bin/hddtemp
checking for netcat... yes
checking for nc... yes
checking for netcat path... /usr/bin/netcat
checking for /proc/acpi/info... no
checking for /sys/class/power_supply... yes
checking for /usr/include/NVCtrl... yes
checking for gethostname... yes
checking for memset... yes
checking for socket... yes
checking for strstr... yes
checking for malloc... yes
checking for bzero... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether gcc needs -traditional... no
checking for size_t... yes
checking for kstat_open in -lkstat... no
checking for kstat_open in -lnsl... no
checking for ceilf in -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk+-3.0 >= 3.20.0... 3.24.24
checking GTK_CFLAGS... -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread
checking GTK_LIBS... -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for glib-2.0 >= 2.6.0... 2.66.6
checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GLIB_LIBS... -lglib-2.0
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnotify >= 0.4... 0.7.9
checking LIBNOTIFY4_CFLAGS... -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread
checking LIBNOTIFY4_LIBS... -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnotify >= 0.7... 0.7.9
checking LIBNOTIFY7_CFLAGS... -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread
checking LIBNOTIFY7_LIBS... -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfce4ui-2 >= 4.12.0... 4.16.0
checking LIBXFCE4UI_CFLAGS... -I/usr/include/xfce4/libxfce4ui-2 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/xfce4
checking LIBXFCE4UI_LIBS... -lxfce4ui-2 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lxfce4util -lglib-2.0
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfce4panel-2.0 >= 4.12.0... 4.16.1
checking LIBXFCE4PANEL_CFLAGS... -I/usr/include/xfce4/libxfce4panel-2.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/xfce4
checking LIBXFCE4PANEL_LIBS... -lxfce4panel-2.0 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lxfce4util -lglib-2.0
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed... ar ast be bg ca cs da de el en_AU en_GB es eu fi fr gl he hr hu hy_AM hye id ie is it ja ko lt lv ms nb nl oc pl pt pt_BR pt_BR_ ru sk sl sq sr sv th tr ug uk ur ur_PK vi zh_CN zh_TW
checking for bind_textdomain_codeset... (cached) yes
checking for locales directory... /usr/share/locale
checking for additional xgettext flags... --keyword=Q_ --from-code=UTF-8
checking whether to build with debugging support... no
checking PLATFORM_LDFLAGS...
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xfce4-sensors-plugin.spec
config.status: creating src/xfce4-sensors.1
config.status: creating include/Makefile
config.status: creating lib/Makefile
config.status: creating lib/libxfce4sensors-1.0.pc
config.status: creating panel-plugin/Makefile
config.status: creating src/Makefile
config.status: creating icons/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
===============================================================
Build Configuration
===============================================================
The following sensor interfaces will be built into the plugin:
* hddtemp: /usr/bin/hddtemp (Make sure it is user-executable with UID bit set
and user member of the respective group)
netcat for hddtemp: /usr/bin/netcat on localhost:7634
* libsensors
* /proc/acpi
* /sys/class/power_supply
* NVIDIA X CTRL
Support for libnotify will be built in.
Support for libnotify >= 0.7 will be built in.
Full debug is disabled
===============================================================
make all-recursive
make[1]: Entering directory '/build/xfce4-sensors-plugin/src/xfce4-sensors-plugin-1.3.95'
Making all in include
make[2]: Entering directory '/build/xfce4-sensors-plugin/src/xfce4-sensors-plugin-1.3.95/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/build/xfce4-sensors-plugin/src/xfce4-sensors-plugin-1.3.95/include'
Making all in lib
make[2]: Entering directory '/build/xfce4-sensors-plugin/src/xfce4-sensors-plugin-1.3.95/lib'
CC libxfce4sensors_la-configuration.lo
CC libxfce4sensors_la-lmsensors.lo
CC libxfce4sensors_la-sensors-interface.lo
CC libxfce4sensors_la-middlelayer.lo
CC libxfce4sensors_la-acpi.lo
CC libxfce4sensors_la-sensors-interface-common.lo
CC libxfce4sensors_la-tacho.lo
CC libxfce4sensors_la-hddtemp.lo
CC libxfce4sensors_la-nvidia.lo
acpi.c: In function ‘get_acpi_value’:
acpi.c:1016:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1016 | fgets (buffer, sizeof(buffer), ptr_file); /* appends null-byte character at end */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from nvidia.c:39:
/usr/include/NVCtrl/NVCtrlLib.h:42:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
42 | Bool XNVCTRLQueryExtension (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:43:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
43 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:57:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
57 | Bool XNVCTRLQueryVersion (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:58:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
58 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:71:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
71 | Bool XNVCTRLIsNvScreen (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:72:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
72 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:92:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
92 | Bool XNVCTRLQueryTargetCount (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:93:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
93 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:118:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
118 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:141:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
141 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:159:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
159 | Bool XNVCTRLSetAttributeAndGetStatus (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:160:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
160 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:177:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
177 | Bool XNVCTRLSetTargetAttributeAndGetStatus (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:178:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
178 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:206:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
206 | Bool XNVCTRLQueryAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:207:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
207 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:230:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
230 | Bool XNVCTRLQueryTargetAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:231:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
231 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:258:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
258 | Bool XNVCTRLQueryTargetAttribute64 (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:259:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
259 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:286:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
286 | Bool XNVCTRLQueryStringAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:287:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
287 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:309:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
309 | Bool XNVCTRLQueryTargetStringAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:310:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
310 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:330:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
330 | Bool XNVCTRLSetStringAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:331:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
331 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:350:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
350 | Bool XNVCTRLSetTargetStringAttribute (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:351:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
351 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:373:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
373 | Bool XNVCTRLQueryValidAttributeValues (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:374:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
374 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:391:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
391 | Bool XNVCTRLQueryValidTargetAttributeValues (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:392:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
392 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:409:2: error: unknown type name ‘Bool’; did you mean ‘bool’?
409 | Bool XNVCTRLQueryValidTargetStringAttributeValues (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:410:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
410 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:428:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
428 | Bool XNVCTRLQueryAttributePermissions (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:429:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
429 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:443:2: error: unknown type name ‘Bool’; did you mean ‘bool’?
443 | Bool XNVCTRLQueryStringAttributePermissions (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:444:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
444 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:458:2: error: unknown type name ‘Bool’; did you mean ‘bool’?
458 | Bool XNVCTRLQueryBinaryDataAttributePermissions (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:459:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
459 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:473:2: error: unknown type name ‘Bool’; did you mean ‘bool’?
473 | Bool XNVCTRLQueryStringOperationAttributePermissions (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:474:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
474 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:531:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
531 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:554:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
554 | Bool XNVCTRLQueryGvoColorConversion (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:555:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
555 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:582:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
582 | Bool XNVCTRLQueryBinaryData (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:583:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
583 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:607:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
607 | Bool XNVCTRLQueryTargetBinaryData (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:608:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
608 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:625:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
625 | Bool XNVCTRLStringOperation (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:626:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
626 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:687:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
687 | Bool XNVCTRLBindWarpPixmapName (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:688:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
688 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:690:5: error: unknown type name ‘Pixmap’
690 | Pixmap pixmap_id,
| ^~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:709:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
709 | Bool XNVCtrlSelectNotify (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:710:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
710 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:713:5: error: unknown type name ‘Bool’; did you mean ‘bool’?
713 | Bool onoff
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:731:1: error: unknown type name ‘Bool’; did you mean ‘bool’?
731 | Bool XNVCtrlSelectTargetNotify (
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:732:5: error: unknown type name ‘Display’; did you mean ‘GdkDisplay’?
732 | Display *dpy,
| ^~~~~~~
| GdkDisplay
/usr/include/NVCtrl/NVCtrlLib.h:736:5: error: unknown type name ‘Bool’; did you mean ‘bool’?
736 | Bool onoff
| ^~~~
| bool
/usr/include/NVCtrl/NVCtrlLib.h:747:5: error: unknown type name ‘Bool’
747 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:748:5: error: unknown type name ‘Display’
748 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:749:5: error: unknown type name ‘Time’
749 | Time time;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:770:5: error: unknown type name ‘Bool’
770 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:771:5: error: unknown type name ‘Display’
771 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:772:5: error: unknown type name ‘Time’
772 | Time time;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:794:5: error: unknown type name ‘Bool’
794 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:795:5: error: unknown type name ‘Display’
795 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:796:5: error: unknown type name ‘Time’
796 | Time time;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:802:5: error: unknown type name ‘Bool’
802 | Bool availability;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:819:5: error: unknown type name ‘Bool’
819 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:820:5: error: unknown type name ‘Display’
820 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:821:5: error: unknown type name ‘Time’
821 | Time time;
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:843:5: error: unknown type name ‘Bool’
843 | Bool send_event; /* always FALSE, we don't allow send_events */
| ^~~~
/usr/include/NVCtrl/NVCtrlLib.h:844:5: error: unknown type name ‘Display’
844 | Display *display;
| ^~~~~~~
/usr/include/NVCtrl/NVCtrlLib.h:845:5: error: unknown type name ‘Time’
845 | Time time;
| ^~~~
nvidia.c: In function ‘get_nvidia_value’:
nvidia.c:107:9: warning: implicit declaration of function ‘XNVCTRLQueryTargetAttribute’ [-Wimplicit-function-declaration]
107 | if (XNVCTRLQueryTargetAttribute (nvidia_sensors_display,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia.c: In function ‘read_gpus’:
nvidia.c:160:13: warning: implicit declaration of function ‘XNVCTRLQueryExtension’; did you mean ‘XQueryExtension’? [-Wimplicit-function-declaration]
160 | if (XNVCTRLQueryExtension (nvidia_sensors_display, &event, &error)) {
| ^~~~~~~~~~~~~~~~~~~~~
| XQueryExtension
nvidia.c:161:13: warning: implicit declaration of function ‘XNVCTRLQueryTargetCount’ [-Wimplicit-function-declaration]
161 | XNVCTRLQueryTargetCount (nvidia_sensors_display,
| ^~~~~~~~~~~~~~~~~~~~~~~
nvidia.c:171:13: warning: implicit declaration of function ‘XNVCTRLQueryTargetStringAttribute’ [-Wimplicit-function-declaration]
171 | if (XNVCTRLQueryTargetStringAttribute (nvidia_sensors_display,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:646: libxfce4sensors_la-nvidia.lo] Error 1
make[2]: Leaving directory '/build/xfce4-sensors-plugin/src/xfce4-sensors-plugin-1.3.95/lib'
make[1]: *** [Makefile:510: all-recursive] Error 1
make[1]: Leaving directory '/build/xfce4-sensors-plugin/src/xfce4-sensors-plugin-1.3.95'
make: *** [Makefile:440: all] Error 2Edit:
https://gitlab.xfce.org/panel-plugins/x … 4e423b6018
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index b8790b4..793a666 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -10,11 +10,18 @@ arch=('x86_64')
url="https://docs.xfce.org/panel-plugins/xfce4-sensors-plugin"
license=('GPL2')
groups=('xfce4-goodies')
-depends=('xfce4-panel' 'lm_sensors' 'libnotify' 'hicolor-icon-theme')
+depends=('xfce4-panel' 'lm_sensors' 'libnotify' 'hicolor-icon-theme' 'libxnvctrl')
makedepends=('intltool' 'hddtemp' 'netcat')
optdepends=('hddtemp: for monitoring the temperature of hard drives')
-source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('83c64ae4618dd592971cfa0bc285a9b47af801a3ed856835cdb2a4c533c7846c')
+source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+ https://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/commit/fa63a854bf2f4a651260e635e8fdc34e423b6018.diff)
+sha256sums=('83c64ae4618dd592971cfa0bc285a9b47af801a3ed856835cdb2a4c533c7846c'
+ '7eb6e5729381993954ef23be09cc4ac1dec2214fcf9327402923f5a2e2275f98')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 -i ../fa63a854bf2f4a651260e635e8fdc34e423b6018.diff
+}
build() {
cd "$srcdir/$pkgname-$pkgver"See Arch_Build_System#Retrieve_PKGBUILD_source to obtain the PKGBUILD, then change it as above and test if that works.
Last edited by loqs (2021-02-06 16:19:36)
Offline
See Arch_Build_System#Retrieve_PKGBUILD_source to obtain the PKGBUILD, then change it as above and test if that works.
I got 2 PKGBUILDS. One is in the trunk folder and the other is in the repos/extra-x86_64. I edited the one in extra folder and it looks like this after the editing:
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Merk Matthias <macem@chello.at>
pkgname=xfce4-sensors-plugin
pkgver=1.3.95
pkgrel=1
pkgdesc="Sensors plugin for the Xfce panel"
arch=('x86_64')
url="https://docs.xfce.org/panel-plugins/xfce4-sensors-plugin"
license=('GPL2')
groups=('xfce4-goodies')
depends=('xfce4-panel' 'lm_sensors' 'libnotify' 'hicolor-icon-theme' 'libxnvctrl')
makedepends=('intltool' 'hddtemp' 'netcat')
optdepends=('hddtemp: for monitoring the temperature of hard drives')
source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
https://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/commit/fa63a854bf2f4a651260e635e8fdc34e423b6018.diff)
sha256sums=('83c64ae4618dd592971cfa0bc285a9b47af801a3ed856835cdb2a4c533c7846c'
'7eb6e5729381993954ef23be09cc4ac1dec2214fcf9327402923f5a2e2275f98')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../fa63a854bf2f4a651260e635e8fdc34e423b6018.diff
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--datadir=/usr/share \
--datarootdir=/usr/share \
--disable-static \
--disable-debug \
--disable-pathchecks
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}After that i do makepkg, then make and sudo make install(the last two throw errors like these in the main post)
Offline
After that i do makepkg, then make and sudo make install(the last two throw errors like these in the main post)
Why?
You have already built the package using makepkg, now all you need to do is install it with pacman.
Offline
You need to run makepkg and then install the resulting package (... or just run makepkg -i which will install upon completion of the build) and not manually run a make make install
Argh I'm slow
Last edited by V1del (2021-02-06 19:33:08)
Offline
I'm not an advanced linux user yet(It's my 1st experience with arch) so i've a lot to learn. Thank you guys, everything works perfectly now
Last edited by k0ss4 (2021-02-06 20:02:44)
Offline
Glad to hear, please mark as [SOLVED] by editing the title in your first post (might have to shorten it a little as it's quite long).
Offline
Glad to hear, please mark as [SOLVED] by editing the title in your first post (might have to shorten it a little as it's quite long).
Done
Offline
@mpan did you include libxnvctrl in your build?
I just ran ./configure and then make. Nothing else has been done.
Last edited by mpan (2021-02-06 23:11:38)
Offline