[Résolu] Erreur de compilation de PCManFM-Mod

Moderator: Mario Behling

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

[Résolu] Erreur de compilation de PCManFM-Mod

Post by DDZ »

Bonjour

J'utilise Fedora 13 LXDE et je voudrais installer PCManFM-Mod mais impossible de compiler les sources avec succès. Je n'ai pas trouvé de paquetage RPM.
Je dialogue avec son auteur mais il a aussi besoin d'aide pour pouvoir spécifier dans sa doc comment faire tourner son application dans Fedora.

Voici ce qui se passe :

J'ai installé toutes les dépendances requises. Le script configure se déroule bien en tapant :

Code: Select all

./configure --prefix=/usr
Ensuite, la compilation :

Code: Select all

make
Ce qui donne (les dernières lignes car le forum n'accepte pas tout, il y a trop de caractères) :
/usr/bin/ld: pcmanfm_mod-desktop-window.o: undefined reference to symbol 'XClearWindow'
/usr/bin/ld: note: 'XClearWindow' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.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/nomutilisateur/dossier/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1

L'auteur m'a dit d'intégrer

Code: Select all

AC_CHECK_LIB(X11, XClearWindow)
dans configure.in

puis de taper la commande :

Code: Select all

NOCONFIGURE=x ./autogen.sh
Voici ce qu'on y lit :
**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 ...
Running automake --gnu ...
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 ...
Skipping configure process.
Ensuite :

Code: Select all

./configure --prefix=/usr
Résultat :
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 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
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

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

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

Code: Select all

make
Ce qui donne (en inscrivant que les dernières lignes car cela est trop long pour la console) :
/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/nomutilisateur/dossier/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1
Je ne comprends pas ce qui se passe et ce qu'il faut faire pour y remédier. J'ai pourtant installer libtool, libtool-ltdl, libtool-ltdl-devel et tous les paquetages glibc (y compris devel).


Quelqu'un aurait-il une idée ?
Merci d'avance pour votre aide ! :-)
Last edited by DDZ on Mon Sep 20, 2010 3:24 pm, edited 2 times in total.
Lubuntu 12.10
DDZ
Posts: 34
Joined: Wed Aug 25, 2010 5:48 pm

Re: Erreur de compilation de PCManFM-Mod

Post by DDZ »

L'auteur m'a demandé cette fois ci de rajouter :

Code: Select all

AC_CHECK_LIB(m)
dans configure.in

Mêmes étapes que celles que j'ai citées ci-dessus et apparemment même problème :

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/nomutilisateur/dossier/LXDE/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1

L'auteur m'a dit qu'apparemment Fedora requiert des liens DSO explicites mais comme je ne suis pas développeur, j'ai du mal à comprendre.

Sur le forum de Fedora-fr,
Pikachu_2014 wrote: Bonjour,
puisque tu as modifié le fichier configure.in, as-tu lancé la commande « autoreconf » avant (dans le paquet autoconf) pour regénérer le script configure ainsi que les Makefile ?
Je l'ai lancé après avoir rajouté les deux lignes demandées par l'auteur dans configure.in.
Voici ce que ça donne :

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'
Une fois la compilation lancée, voici ce que ça donne :

Code: Select all

make
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/nomutilisateur/dossier/LXDE/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1
Je vais de ce pas le signaler à l'auteur.
Lubuntu 12.10
DDZ
Posts: 34
Joined: Wed Aug 25, 2010 5:48 pm

Re: Erreur de compilation de PCManFM-Mod

Post by DDZ »

L'auteur m'a ensuite demandé :

Vérifiez bien que vous avez installé les paquetages Fedora équivalent à :
libgtk2.0-dev autoconf automake m4 libtool

Ensuite, essayez :

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


Voici ce que ça donne :

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'

Puis :

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.

Ensuite :

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.

Pour finir (les dernières lignes) :

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/nomutilisateur/dossier/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: [Résolu] Erreur de compilation de PCManFM-Mod

Post by DDZ »

Pikachu_2014 sur le forum de Fedora-Fr wrote: Je crois avoir deviné la raison de l'erreur. Le diagnostic du développeur était le bon ; en revanche, sa façon d'appeler la macro AC_CHECK_LIB dans configure.in pour détecter la libm était incorrecte : en effet, celle-ci attend deux paramètres : le nom de la bibliothèque (ici « m ») et une fonction définie par cette bibiothèque (disons « pow() » puisqu'elle est requise par PCManFM-Mod).
J'ose espérer qu'après ces petites corrections, tout passera .
Mes modifications sont résumées dans le patch suivant à appliquer aux sources :
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'
Ça fonctionne enfin, un grand merci à Pikachu_2014 et à l'auteur pour votre aide. 8-)
Lubuntu 12.10
Locked