PCManFM Mod - User-Definable Commands And More

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
DDZ
Posts: 34
Joined: Wed Aug 25, 2010 5:48 pm

Re: PCManFM Mod - User-Definable Commands And More

Post by DDZ »

I added

Code: Select all

AC_CHECK_LIB(m)
to configure.in

It seems there is the same problem :

Code: Select all

make
/usr/bin/ld: pcmanfm_mod-exo-icon-view.o: undefined reference to symbol 'pow@@GLIBC_2.0'
/usr/bin/ld: note: 'pow@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [pcmanfm-mod] Erreur 1
make[1]: quittant le répertoire « /home/username/folder/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1

On the Fedora-fr forum,
Pikachu_2014 wrote: Hello,
the configure.in file has been modified, so did you run the « autoreconf » command before the configure script and make to recreate the makefile ?
With

Code: Select all

AC_CHECK_LIB(X11, XClearWindow)
AC_CHECK_LIB(m)
added to configure.in

I run :

Code: Select all

autoreconf
Here is the result :
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
data/Makefile.am:50: `%'-style pattern rules are a GNU make extension
src/Makefile.am:18: compiling `mime-type.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.in'
I run

Code: Select all

./configure --prefix=/usr
then

Code: Select all

make
Here is the result :
libtool: Version mismatch error. This is libtool 2.2.10, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.10
libtool: and run autoconf again.
make[1]: *** [pcmanfm-mod] Erreur 63
make[1]: quittant le répertoire « /home/username/folder/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1
I sent an email to IgnorantGuru with all these explanations.
Lubuntu 12.10
DDZ
Posts: 34
Joined: Wed Aug 25, 2010 5:48 pm

Re: PCManFM Mod - User-Definable Commands And More

Post by DDZ »

The author wrote :

Make sure you have the Fedora equivalent of the following installed :
libgtk2.0-dev autoconf automake m4 libtool

Then try :

rm aclocal.m4
autoreconf
NOCONFIGURE=x ./autogen.sh
./configure --prefix=/usr/bin
make
sudo make install


Here are the results :

Code: Select all

autoreconf
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
data/Makefile.am:50: `%'-style pattern rules are a GNU make extension
src/Makefile.am:18: compiling `mime-type.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.in'

Then :

Code: Select all

NOCONFIGURE=x ./autogen.sh
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

processing .
Creating ./aclocal.m4 ...
Running glib-gettextize... Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Making ./aclocal.m4 writable ...
Running intltoolize...
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Running aclocal ...
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
Running automake --gnu ...
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
data/Makefile.am:50: `%'-style pattern rules are a GNU make extension
src/Makefile.am:18: compiling `mime-type.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.in'
Running autoconf ...
configure.in:6: warning: AC_LANG_CALL: no function given
../../lib/autoconf/lang.m4:259: AC_LANG_CALL is expanded from...
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2628: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2645: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
configure.in:6: the top level
Skipping configure process.

Then :

Code: Select all

./configure --prefix=/usr/bin
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 for XClearWindow in -lX11... yes
checking for in -lm... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
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 build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
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... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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 ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -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 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... no
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) 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 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 NLS is requested... yes
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.10.1
checking for XML::Parser... ok
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for SN... yes
checking whether /usr/bin/ld accepts --as-needed... yes
checking whether /usr/bin/ld accepts -O1... yes
checking whether /usr/bin/ld accepts -Bsymbolic-functions... yes
checking for HAL... yes
checking fam.h usability... yes
checking fam.h presence... yes
checking for fam.h... yes
checking for FAMOpen in -lfam... yes
checking for FAMNoExists... yes
checking for euidaccess... yes
checking for eaccess... yes
checking for statvfs... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
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... af ar da ca cs de es et eu fa fi fr gl he hr hu id it ja ko lt ml ms nb nl nn pl ps pt pt_BR ru sk sl sv tr uk ur ur_PK vi zh_CN zh_TW
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating data/Makefile
config.status: creating data/pcmanfm-mod.desktop
config.status: creating data/pcmanfm-mod-find.desktop
config.status: creating data/pcmanfm-mod-folder-handler.desktop
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

PCManFM-Mod File Manager..................... : Version 1.1.1

Prefix....................................... : /usr/bin
Linux HAL support............................ : yes
Linux inotify support (currently broken)..... : no
64-bit Large file support.................... : yes
Show warnings if run as super user........... : yes
Desktop icon integration..................... : yes

The binary will be installed in /usr/bin/bin

http://igurublog.wordpress.com/downloads/mod-pcmanfm/

Please read README carefully if you are packaging PCManFM-Mod.

Finally (the last lines) :

Code: Select all

make
/usr/bin/ld: pcmanfm_mod-exo-icon-view.o: undefined reference to symbol 'pow@@GLIBC_2.0'
/usr/bin/ld: note: 'pow@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [pcmanfm-mod] Erreur 1
make[1]: quittant le répertoire « /home/username/folder/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1

:(
Lubuntu 12.10
DDZ
Posts: 34
Joined: Wed Aug 25, 2010 5:48 pm

Re: PCManFM Mod - User-Definable Commands And More

Post by DDZ »

Pikachu_2014 on the Fedora-Fr forum wrote: I think I understand where is the problem. The author diagnostic was good but libm requires two parameters : the name ("m") and the function ("pow()") required by PCManfm-Mod.
I just created a patch to modifiy the configure.in :
pcmanfm-mod-1.1.1-DSO.patch

Code: Select all

patch configure.in < pcmanfm-mod-1.1.1-DSO.patch
autoreconf
NOCONFIGURE=x ./autogen.sh
./configure --prefix=/usr
make
su -c 'make install'
It works fine, thank you very much Pikachu_2014 and IgnorantGuru for your help. 8-)
Lubuntu 12.10
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: PCManFM Mod - User-Definable Commands And More

Post by IgnorantGuru »

PCManFM-Mod v1.1.3 is available. This update adds the command line switches --desktop, --profile, and --desktop-pref for compatibility with PCManFM 0.9. This will help LXDE users to use pcmanfm-mod as a desktop management replacement for pcmanfm, without the need to change LXDE's startup files. Right-clicking on the LXDE desktop and selecting "Desktop Settings" will now work with pcmanfm-mod (providing it is installed as "/usr/bin/pcmanfm").

This update also provides a workaround for a dbus error produced by Roxterm when running pcmanfm-mod as root.

As a reminder, there are two Arch Linux AUR packages for pcmanfm-mod:

The pcmanfm-mod package does not provide pcmanfm and can thus be installed concurrently with other versions of pcmanfm.

The pcmanfm-mod-prov package is identical to pcmanfm-mod except that it provides pcmanfm and thus conflicts with other versions of pcmanfm. This package is primarily intended for LXDE users who want pcmanfm-mod to manage their desktop. Alternatively, LXDE users who want the newer version of pcmanfm to manage their desktop, and want to run pcmanfm-mod as a file manager only, can install the normal pcmanfm-mod AUR package.

LXDE users who want more control over desktop management may also want to consult /etc/xdg/lxsession/ If that folder is copied to the user's home as ~/.config/lxsession, those config files may be edited on a per-user basis to control pcmanfm startup.

Regarding the Fedora build issues, according to feedback those are corrected in pcmanfm-mod 1.1.2 and later.

http://igurublog.wordpress.com/downloads/mod-pcmanfm/
Locked