LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-16-2022, 09:51 PM   #1
furrymonster
LQ Newbie
 
Registered: Jan 2012
Location: London
Distribution: Slackware
Posts: 26

Rep: Reputation: 9
libfm build error


Hi all,

When trying to build the libfm slackbuild on a fresh full install of 15.0, I get the following error:

Code:
libtool: install: /usr/bin/ginstall -c .libs/gtk-menu-trash.soT /tmp/SBo/package-libfm/usr/lib64/libfm/modules/gtk-menu-trash.so
libtool: install: strip --strip-unneeded /tmp/SBo/package-libfm/usr/lib64/libfm/modules/gtk-menu-trash.so
libtool: install: /usr/bin/ginstall -c .libs/gtk-menu-trash.lai /tmp/SBo/package-libfm/usr/lib64/libfm/modules/gtk-menu-trash.la
libtool: warning: relinking 'gtk-menu-actions.la'
libtool: install: (cd /tmp/SBo/libfm-1.3.2/src/modules; /bin/sh "/tmp/SBo/libfm-1.3.2/libtool"  --silent --tag CC --mode=relink gcc -I../../src/actions -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libpng16 -I../../src/gtk -O2 -fPIC -no-undefined -module -avoid-version -shared -export-dynamic -L/usr/lib64 -lgio-2.0 -lgthread-2.0 -pthread -lgobject-2.0 -lglib-2.0 -Wl,-z,defs -o gtk-menu-actions.la -rpath /usr/lib64/libfm/modules gtk_menu_actions_la-gtk-menu-actions.lo -lgthread-2.0 -pthread -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -latk-1.0 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lcairo ../../src/libfm-gtk3.la -ldl -lm ../../src/libfm.la -inst-prefix-dir /tmp/SBo/package-libfm)
/usr/bin/ld: .libs/gtk_menu_actions_la-gtk-menu-actions.o: in function `add_custom_action_item':
gtk-menu-actions.c:(.text+0x170): undefined reference to `fm_action_get_type'
/usr/bin/ld: gtk-menu-actions.c:(.text+0x1f3): undefined reference to `fm_action_menu_get_type'
/usr/bin/ld: gtk-menu-actions.c:(.text+0x21b): undefined reference to `fm_action_menu_get_children'
/usr/bin/ld: .libs/gtk_menu_actions_la-gtk-menu-actions.o: in function `_fm_actions_update_folder_menu_for_scheme':
gtk-menu-actions.c:(.text+0x322): undefined reference to `fm_action_get_for_location'
/usr/bin/ld: gtk-menu-actions.c:(.text+0x32d): undefined reference to `fm_action_menu_get_children'
/usr/bin/ld: .libs/gtk_menu_actions_la-gtk-menu-actions.o: in function `_fm_actions_update_file_menu_for_scheme':
gtk-menu-actions.c:(.text+0x422): undefined reference to `fm_action_get_for_context'
/usr/bin/ld: gtk-menu-actions.c:(.text+0x42d): undefined reference to `fm_action_menu_get_children'
/usr/bin/ld: .libs/gtk_menu_actions_la-gtk-menu-actions.o: in function `_fm_actions_init':
gtk-menu-actions.c:(.text+0x5c1): undefined reference to `fm_action_cache_new'
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'gtk-menu-actions.la' with the above command before installing it
make[5]: *** [Makefile:513: install-pkglibLTLIBRARIES] Error 1
make[5]: Leaving directory '/tmp/SBo/libfm-1.3.2/src/modules'
make[4]: *** [Makefile:746: install-am] Error 2
make[4]: Leaving directory '/tmp/SBo/libfm-1.3.2/src/modules'
make[3]: *** [Makefile:2901: install-recursive] Error 1
make[3]: Leaving directory '/tmp/SBo/libfm-1.3.2/src'
make[2]: *** [Makefile:3063: install] Error 2
make[2]: Leaving directory '/tmp/SBo/libfm-1.3.2/src'
make[1]: *** [Makefile:569: install-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/libfm-1.3.2'
make: *** [Makefile:883: install-strip] Error 2
This is despite recompiling lxmenu-data, menu-cache, and libfm-extra from SBo, despite using GTK=0,2,3 and even when attempting to use AlienBOB's builds of the same dependencies.

Any suggestions would be greatly appreciated!
Thank you!
 
Old 04-17-2022, 12:37 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
that's strange, I'm not able to reproduce: if I build libfm-extra, menu-cache, lxmenu-data and libfm on a fresh full install of slackware64-15.0 (with no other packages installed) everything seems to go fine here...
in the log you posted above you seem not to use the default option that is to link against gtk+2 but you used GTK=3: in any case I tried that too and it also went fine.
try removing any previously-installed versions of the above packages and rebuild them from scratch, but from the log above it might be that something else outside of libfm and dependencies is not working correctly.
 
1 members found this post helpful.
Old 04-17-2022, 03:18 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Not sure this is relevant but I had noted in the SlackBuild I used (not anymore, having replaced LXDE by LXQt):

# WARNING: remove the previous libfm before installing this one,
# otherwise build could fail
 
1 members found this post helpful.
Old 04-17-2022, 08:13 PM   #4
furrymonster
LQ Newbie
 
Registered: Jan 2012
Location: London
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 9
Thank you ponce and Didier!

You were both right on the money. All I had to do was uninstall libfm and then build it!

Thank you both so much!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] blfs 8.2 libfm-1.2.5 appears to be installed twice I'm confused Terry Coats Linux From Scratch 2 04-19-2018 11:34 AM
[SOLVED] Linux 4.4 seems to refuse to build IPv6 for the 64-bit build - 32-bit build works fine GameCodingNinja Linux From Scratch 2 02-07-2016 06:40 PM
LXer: LXDE's LXPanel Gets Enhanced, Now Uses Libfm LXer Syndicated Linux News 0 02-17-2014 06:33 AM
[SOLVED]libfm compile problem Gumboherpy Slackware 1 03-03-2013 04:53 PM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration