Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

debian 11 RC2 build gapcmon

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
vcba79
Posts: 10
Joined: 2021-04-28 12:43

debian 11 RC2 build gapcmon

#1 Post by vcba79 »

Hi, all

gapcmon is GUI frontend for APC UPS daemon. Since debian does not come
with this package, I must build it from source

Here is what I do

1. download source
2. ./configure --prefix=/usr/local
3. make "LDFLAGS=-lX11"
4. make install

Step 3 is where things go wrong. this procedure works in 10.9
I got errors like this from step 3:

mv -f .deps/gapcmon-eggtrayicon.Tpo .deps/gapcmon-eggtrayicon.Po
gcc -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DICON_DIR=\"/usr/local\" -Wall -g -O2 -lX11 -o gapcmon gapcmon-gapcmon.o gapcmon-eggtrayicon.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lharfbuzz -lfontconfig -lfreetype -lgthread-2.0 -pthread -lgconf-2 -lglib-2.0
/usr/bin/ld: gapcmon-eggtrayicon.o: undefined reference to symbol 'XFlush'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libX11.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:213: gapcmon] Error 1
make[1]: Leaving directory '/root/gapcmon-0.8.9/src'
make: *** [Makefile:289: all-recursive] Error 1

I am not a C expert. Hope someone can help me get this tool builded

Thanks,

vcba79
Posts: 10
Joined: 2021-04-28 12:43

Re: debian 11 RC2 build gapcmon

#2 Post by vcba79 »

vcba79 wrote:Hi, all

gapcmon is GUI frontend for APC UPS daemon. Since debian does not come
with this package, I must build it from source

Here is what I do

1. download source
2. ./configure --prefix=/usr/local
3. make "LDFLAGS=-lX11"
4. make install

Step 3 is where things go wrong. this procedure works in 10.9
I got errors like this from step 3:

mv -f .deps/gapcmon-eggtrayicon.Tpo .deps/gapcmon-eggtrayicon.Po
gcc -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DICON_DIR=\"/usr/local\" -Wall -g -O2 -lX11 -o gapcmon gapcmon-gapcmon.o gapcmon-eggtrayicon.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lharfbuzz -lfontconfig -lfreetype -lgthread-2.0 -pthread -lgconf-2 -lglib-2.0
/usr/bin/ld: gapcmon-eggtrayicon.o: undefined reference to symbol 'XFlush'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libX11.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:213: gapcmon] Error 1
make[1]: Leaving directory '/root/gapcmon-0.8.9/src'
make: *** [Makefile:289: all-recursive] Error 1

I am not a C expert. Hope someone can help me get this tool builded

Thanks,
After a lot of tests, The following procedure work:

1. download source
2. ./configure --prefix=/usr/local LIBS=-lX11
3. make install

Hope this helps,

Post Reply