absolinux

Sujet : CLFS - problème de configuration du paquet udev-168
posté par Kalazann 5 messages     le  12-07-2012  à  17:20citer
Bonjour,

Je suis actuellement le livre clfs pour architecture MIPS afin de m'en inspirer pour ma carte freescale Quick Start Board i.MX53:

http://cross-lfs.org/view/svn/mips/index.html

Comme je n'ai pas les versions requisent de dépendance sur ma Debian Squeeze pour compiler udev-182 comme dans le livre, j'essaie de compiler le paquet udev-168 à la place.

Lors des commandes de configuration suivantes:

LIBS="-lpthread" \ 
BLKID_CFLAGS="-I/tools/include/blkid" BLKID_LIBS="-L/tools/lib -lblkid" \
KMOD_CFLAGS="-I/tools/include" KMOD_LIBS="-L${LQSB}/lib -lkmod" \
./configure --prefix=/usr \
--build=${LQSB_HOST} --host=${LQSB_TARGET} \
--exec-prefix="" --with-rootprefix=$LQSB \
--sysconfdir=/etc --libexecdir=/lib \
--libdir=/usr/lib --disable-introspection \
--with-usb-ids-path=no --with-pci-ids-path=no \
--disable-gtk-doc-html --disable-gudev \
--disable-keymap --disable-logging

l'erreur suivante est retournée:

configure: WARNING: unrecognized options: --with-rootprefix, --with-usb-ids-path, --disable-gudev, --disable-keymap
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-unknown-linux-gnueabi-strip... arm-unknown-linux-gnueabi-strip
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 for arm-unknown-linux-gnueabi-gcc... arm-unknown-linux-gnueabi-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-unknown-linux-gnueabi-gcc accepts -g... yes
checking for arm-unknown-linux-gnueabi-gcc option to accept ISO C89... none needed
checking dependency style of arm-unknown-linux-gnueabi-gcc... gcc3
checking how to run the C preprocessor... arm-unknown-linux-gnueabi-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking build system type... i486-cross-linux-gnu
checking host system type... arm-unknown-linux-gnueabi
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by arm-unknown-linux-gnueabi-gcc... arm-unknown-linux-gnueabi-ld
checking if the linker (arm-unknown-linux-gnueabi-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /cross-tools/bin/arm-unknown-linux-gnueabi-nm -B
checking the name lister (/cross-tools/bin/arm-unknown-linux-gnueabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i486-cross-linux-gnu file names to arm-unknown-linux-gnueabi format... func_convert_file_noop
checking how to convert i486-cross-linux-gnu file names to toolchain format... func_convert_file_noop
checking for arm-unknown-linux-gnueabi-ld option to reload object files... -r
checking for arm-unknown-linux-gnueabi-objdump... arm-unknown-linux-gnueabi-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-unknown-linux-gnueabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-unknown-linux-gnueabi-ar... arm-unknown-linux-gnueabi-ar
checking for archiver @FILE support... @
checking for arm-unknown-linux-gnueabi-strip... (cached) arm-unknown-linux-gnueabi-strip
checking for arm-unknown-linux-gnueabi-ranlib... arm-unknown-linux-gnueabi-ranlib
checking command to parse /cross-tools/bin/arm-unknown-linux-gnueabi-nm -B output from arm-unknown-linux-gnueabi-gcc object... ok
checking for sysroot... no
checking for arm-unknown-linux-gnueabi-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-unknown-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-unknown-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-unknown-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-unknown-linux-gnueabi-gcc static flag -static works... yes
checking if arm-unknown-linux-gnueabi-gcc supports -c -o file.o... yes
checking if arm-unknown-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-unknown-linux-gnueabi-gcc linker (arm-unknown-linux-gnueabi-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 gawk... (cached) gawk
checking for arm-unknown-linux-gnueabi-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for xsltproc... /usr/bin/xsltproc
checking for library containing clock_gettime... -lrt
checking for gperf... /usr/bin/gperf
checking for GLIB... yes
checking for acl_init in -lacl... no
configure: error: libacl not found
lqsb@lerhun:/media/rootfs/sources/udev-168$ libacl
bash: libacl: command not found

Pourtant le paquet libacl est installé sur ma machine hôte ainsi que le paquet de développement.

Quelqu'un pourrait-il m'aider?

Merci.
posté par Texou 271 messages     le  12-07-2012  à  17:55citer
Salut,

Il se peut qu'il faille installer le paquet libacl-dev. Essaie voir si ça suffit. Quant à l'échec de la commande libacl, j'ai tendance à croire que c'est normal car libacl est une bibliothèque, pas un exécutable. Enfin à vérifier. Si c'est un exécutable: apt-file search libacl t'aiguillera.

Je pense quand même qu'installer libacl-dev suffira.

Tiens-nous au courant.

Cordialement,


_______________________

Texou
Coadministrateur du projet absolinux
Président de l'association traduc.org
Coordinateur du projet Linux From Scratch
Coordinateur au sein du projet Trad GNU de l'April
Animateur suppléant du groupe de travail Accessibilité de l'April
posté par Kalazann 5 messages     le  12-07-2012  à  23:18citer
Salut,

Merci de ta réponse.

En fait, il ne faut pas tenir compte des deux dernières lignes:

lqsb@lerhun:/media/rootfs/sources/udev-168$ libacl
bash: libacl: command not found

Je faisais mumuse en cherchant de quoi pouvait venir mon problème et je les ai inséré par erreur.

Sinon j'avais déjà installé libacl et libacl-dev(libacl1 et libacl1-dev 2.2.49-4 sous debian) mais cela ne règle pas mon problème.

Merci.

posté par Kalazann 5 messages     le  13-07-2012  à  13:22citer
Salut,

J'ai trouvé dans le livre clfs sysroot pour arm:

http://cross-lfs.org/view/clfs-sysroot/arm/

les options de configuration suivante:

./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \

    --exec-prefix="" --sysconfdir=/etc \

    --libexecdir=/lib/udev --libdir=/usr/lib \

    --disable-extras


et en les adaptants au fait que j'ai utilisé Kmod au lieu de Module-Init-tools, j'ai effectué les commandes suivantes qui fonctionnent:

LIBS="-lpthread" \ 
BLKID_CFLAGS="-I/tools/include/blkid" BLKID_LIBS="-L/tools/lib -lblkid" \
KMOD_CFLAGS="-I/tools/include" KMOD_LIBS="-L${LQSB}/lib -lkmod" \
./configure --prefix=/usr \
--build=${LQSB_HOST} --host=${LQSB_TARGET} \
--exec-prefix="" --sysconfdir=/etc \
--libexecdir=/lib --libdir=/usr/lib \
--disable-extras


cela me donne:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-unknown-linux-gnueabi-strip... arm-unknown-linux-gnueabi-strip
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 for arm-unknown-linux-gnueabi-gcc... arm-unknown-linux-gnueabi-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-unknown-linux-gnueabi-gcc accepts -g... yes
checking for arm-unknown-linux-gnueabi-gcc option to accept ISO C89... none needed
checking dependency style of arm-unknown-linux-gnueabi-gcc... gcc3
checking how to run the C preprocessor... arm-unknown-linux-gnueabi-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking build system type... i486-cross-linux-gnu
checking host system type... arm-unknown-linux-gnueabi
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by arm-unknown-linux-gnueabi-gcc... arm-unknown-linux-gnueabi-ld
checking if the linker (arm-unknown-linux-gnueabi-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /cross-tools/bin/arm-unknown-linux-gnueabi-nm -B
checking the name lister (/cross-tools/bin/arm-unknown-linux-gnueabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i486-cross-linux-gnu file names to arm-unknown-linux-gnueabi format... func_convert_file_noop
checking how to convert i486-cross-linux-gnu file names to toolchain format... func_convert_file_noop
checking for arm-unknown-linux-gnueabi-ld option to reload object files... -r
checking for arm-unknown-linux-gnueabi-objdump... arm-unknown-linux-gnueabi-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-unknown-linux-gnueabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-unknown-linux-gnueabi-ar... arm-unknown-linux-gnueabi-ar
checking for archiver @FILE support... @
checking for arm-unknown-linux-gnueabi-strip... (cached) arm-unknown-linux-gnueabi-strip
checking for arm-unknown-linux-gnueabi-ranlib... arm-unknown-linux-gnueabi-ranlib
checking command to parse /cross-tools/bin/arm-unknown-linux-gnueabi-nm -B output from arm-unknown-linux-gnueabi-gcc object... ok
checking for sysroot... no
checking for arm-unknown-linux-gnueabi-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-unknown-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-unknown-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-unknown-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-unknown-linux-gnueabi-gcc static flag -static works... yes
checking if arm-unknown-linux-gnueabi-gcc supports -c -o file.o... yes
checking if arm-unknown-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-unknown-linux-gnueabi-gcc linker (arm-unknown-linux-gnueabi-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 gawk... (cached) gawk
checking for arm-unknown-linux-gnueabi-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for xsltproc... /usr/bin/xsltproc
checking for library containing clock_gettime... -lrt
checking for INTROSPECTION... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating udev/udev.pc
config.status: creating init/udev.service
config.status: creating init/udev-trigger.service
config.status: creating init/udev-settle.service
config.status: creating libudev/libudev.pc
config.status: creating libudev/docs/Makefile
config.status: creating libudev/docs/version.xml
config.status: creating extras/gudev/gudev-1.0.pc
config.status: creating extras/gudev/docs/Makefile
config.status: creating extras/gudev/docs/version.xml
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-usb-ids-path

udev 168
========

prefix: /usr
sysconfdir: /etc
sbindir: ${exec_prefix}/sbin
libdir: /usr/lib
rootlibdir: /usr/lib
libexecdir: /lib

datarootdir: ${prefix}/share
mandir: ${datarootdir}/man
includedir: ${prefix}/include

include_prefix:

systemdsystemunitdir:

logging: yes
debug: no
selinux: no

compiler: arm-unknown-linux-gnueabi-gcc
cflags: -g -O2
ldflags:

extras: no
gintrospection: yes

usb.ids:
pci.ids:
firmware path: \"/lib/firmware/updates/\", \"/lib/firmware/\"

xsltproc: /usr/bin/xsltproc
gperf:

la configuration ne semble pas aboutir lorsque j'utilise les options:

--with-usb-ids-path=no
--disable-gtk-doc-html
--disable-gudev
--disable-keymap
--disable-logging
--disable-introspection

La commande --with-usb-ids-path=no n'est pas reconnue et lorsque j'utilise l'une des autres options, le système me dit qu'il ne trouve pas libacl qui est pourtant installé.
J'ai également vérifié le liens symbolique dans le répertoire /lib de mon hôte et il s'appelle bien libacl.so. Le paquet libacl-dev est également installé.

Si quelqu'un à une solution à mon problème ?

Je voulais également savoir ce que signifie l'option:

--disable-extras


Merci.
posté par Texou 271 messages     le  13-07-2012  à  17:00citer
Salut,

Désolé mais là j'y comprends rien. Pourquoi un 2ème sujet dans le même titre que le premier? C'est résolu libacl? Merci d'ouvrir un autre sujet pour ton second problème. Et de nous dire ce qu'il en est pour le 1er. 2 sujets en même temps oui, mais séparés dans 2 fils différents c'est préférable.

Merci.

Cordialement,

_______________________

Texou
Coadministrateur du projet absolinux
Président de l'association traduc.org
Coordinateur du projet Linux From Scratch
Coordinateur au sein du projet Trad GNU de l'April
Animateur suppléant du groupe de travail Accessibilité de l'April
posté par Kalazann 5 messages     le  13-07-2012  à  17:23citer
Salut,

Bon apparemment je n'ai pas été suffisamment clair. C'est toujours le même sujet mais je voulais avoir votre avis sur une solution que j'ai trouvé.

En remplaçant les options de configuration :

--exec-prefix="" --with-rootprefix=$CLFS \
--sysconfdir=/etc --libexecdir=/lib \ 
--libdir=/usr/lib --disable-introspection \ 
--with-usb-ids-path=no --with-pci-ids-path=no \ 
--disable-gtk-doc-html --disable-gudev \ 
--disable-keymap --disable-logging

par:

--exec-prefix="" --sysconfdir=/etc \
--libexecdir=/lib --libdir=/usr/lib \
--disable-extras

Je n'ai plus de problèmes pour la configuration, on ne m'indique plus qu'il manque libacl.

Je voulais savoir si cette deuxième façon de configurer était viable car ce n'est pas la configuration proposée dans le livre clfs pour mips(http://cross-lfs.org/view/svn/mips/index.html).

Merci.
posté par boloco 85 messages     le  13-07-2012  à  21:13citer
salut,
Le fichier README dans udev stipule que les "extras" ont les dépendances suivantes: libacl, libglib2, libusb, usbutils, pciutils et gperf. Ces dépendances peuvent être désactivées en passant à configure l'option --disable-extras.

J'espère avoir répondu à ta question.

Respects.
posté par Kalazann 5 messages     le  13-07-2012  à  22:09citer
Salut,

Merci pour la réponse, effectivement je comprends mieux maintenant ce que signifie --disable-extras.

J'ai compilé udev avec les options de configuration suivante :

./configure --prefix=/usr \
  --exec-prefix="" --sysconfdir=/etc \
  --libexecdir=/lib/udev --libdir=/usr/lib \
  --disable-extras --disable-introspection

Comme la compilation a fonctionné, j'ai continué la suite du livre, je verrais bien au boot si j'ai un souci où pas.

Merci à tous.




répondre

http://med4treat.top