Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[compil] bluez-libs ne compile pas (Résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Wed Feb 18, 2009 10:12 am    Post subject: [compil] bluez-libs ne compile pas (Résolu) Reply with quote

Re bonjour à tous,
dans la série "ça compile pas", aujourd'hui net-wireless/bluez-libs-2.25 !
J'ai eu ces derniers temps pas mal de problème pour compiler un certain nombre
de paquets (wifi-radar par exemple). Voulant faire un peu de ménage, j'ai fait :
Code:
emerge -e system && emerge -e world

Le premier emerge a fonctionné sans souci particulier.
Pour le emerge -e world, il y un premier arrêt au paquet ci-dessus.
Voici la fin de la compil :
Quote:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -march=k8 -msse3 -O2 -pipe -D_FORTIFY_SOURCE=2 -MT hci.lo -MD -MP -MF .deps/hci.Tpo -c hci.c -fPIC -DPIC -o .libs/hci.o
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -march=k8 -msse3 -O2 -pipe -D_FORTIFY_SOURCE=2 -MT hci.lo -MD -MP -MF .deps/hci.Tpo -c hci.c -o hci.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -march=k8 -msse3 -O2 -pipe -D_FORTIFY_SOURCE=2 -MT sdp.lo -MD -MP -MF ".deps/sdp.Tpo" \
-c -o sdp.lo `test -f 'sdp.c' || echo './'`sdp.c; \
then mv -f ".deps/sdp.Tpo" ".deps/sdp.Plo"; \
else rm -f ".deps/sdp.Tpo"; exit 1; \
fi
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -march=k8 -msse3 -O2 -pipe -D_FORTIFY_SOURCE=2 -MT sdp.lo -MD -MP -MF .deps/sdp.Tpo -c sdp.c -fPIC -DPIC -o .libs/sdp.o
sdp.c: In function 'sdp_data_alloc_with_length':
sdp.c:426: error: 'USHRT_MAX' undeclared (first use in this function)
sdp.c:426: error: (Each undeclared identifier is reported only once
sdp.c:426: error: for each function it appears in.)
sdp.c:435: error: 'UCHAR_MAX' undeclared (first use in this function)
sdp.c: In function 'sdp_append_to_buf':
sdp.c:2348: error: 'UCHAR_MAX' undeclared (first use in this function)
make[2]: *** [sdp.lo] Erreur 1
make[2]: quittant le répertoire « /home/portage/portage/net-wireless/bluez-libs-2.25/work/bluez-libs-2.25/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/portage/portage/net-wireless/bluez-libs-2.25/work/bluez-libs-2.25 »
make: *** [all] Erreur 2
*
* ERROR: net-wireless/bluez-libs-2.25 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2165: Called _eapi0_src_compile
* ebuild.sh, line 595: Called _eapi2_src_compile
* ebuild.sh, line 629: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/home/portage/portage/net-wireless/bluez-libs-2.25/temp/build.log'.
* The ebuild environment file is located at '/home/portage/portage/net-wireless/bluez-libs-2.25/temp/environment'.
*

>>> Failed to emerge net-wireless/bluez-libs-2.25, Log file:

>>> '/home/portage/portage/net-wireless/bluez-libs-2.25/temp/build.log'

Il me semble que bluez-libs ne sert que pour le bluetooth (dont je n'ai pas besoin).
Après un :
Code:
emerge -C bluez-libs bluez-utils

il continue à vouloir les installer à nouveau.
Mon emerge --info ci dessous :
Quote:
Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Athlon-tm-_64_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Wed, 18 Feb 2009 09:15:02 +0000
ccache version 2.4 [disabled]
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python: 2.5.2-r7
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr de"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=" "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 apache2 apm audiofile avahi bcmath berkdb bluetooth bogofilter bonjour bonobo branding bzip2 cairo calendar cddb cdparanoia cdr clamav cli cracklib crypt css cups curl curlwrappers cxx daap dbus dga dri dv dvd dvdr dvdread eds emboss encode esd evo exif expat fam fbcon ffmpeg firefox firefox3 flac fontconfig foomaticdb fortran ftp gd gdbm gif gimp glut gmp gnome gnome-keyring gnuplot gnustep gnutls gphoto2 gpm graphviz gsl gstreamer gtk gtk2 gtkhtml guile hal hddtemp iconv icq idn iee1394 imagemagick imlib ipv6 isdnlog jabber jack java java5 java6 javascript jingle jpeg jpeg2k kde kdeprefix lame latex lcms ldap libburn libcaca libgda libnotify libwww lm_sensors lzo mad maildir mailwrapper matroska mbox mdnsresponder-compat memlimit mhash midi mikmod mime mjpeg mmap mmx mng modplug mono motif mozilla mp3 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql ncurses networking networkmanager nls nptl nptlonly nsplugin ogg openal openexr opengl openmp osc oscar oss pam pcre pdf perl php png posix ppds pppd prefix print pulseaudio python qt3 qt3support qt4 quicktime radius raw readline reflection rss samba scanner sdl session sndfile sockets source sox speex spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog szip taglib tcl tcpd theora threads tiff timidity tk truetype unicode usb utempter v4l v4l2 vcd vhosts vnc vorbis wavpack wmf wxwindows x264 xcomposite xface xine xinerama xml xorg xosd xpm xprint xscreensaver xulrunner xv xvid yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Preneur d'une aide encore cette fois ...

PS : je crois que ce n'est que le début car mon système me fait de nombreuses "âneries" ces derniers temps.
(plus d'affichage de mes 2 autres HD montés sur le bureau (Gnome) malgré les bonnes options dans
l'éditeur de configuration ... Le bazar vous dis-je !)
_________________
Visi pas nette, pilote à la buvette !


Last edited by lefoid on Thu Feb 19, 2009 7:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3581
Location: Belgium

PostPosted: Wed Feb 18, 2009 1:09 pm    Post subject: Re: [compil] bluez-libs ne compile pas Reply with quote

lefoid wrote:
sdp.lo -MD -MP -MF .deps/sdp.Tpo -c sdp.c -fPIC -DPIC -o .libs/sdp.o
sdp.c: In function 'sdp_data_alloc_with_length':
sdp.c:426: error: 'USHRT_MAX' undeclared (first use in this function)
sdp.c:426: error: (Each undeclared identifier is reported only once
sdp.c:426: error: for each function it appears in.)
sdp.c:435: error: 'UCHAR_MAX' undeclared (first use in this function)
sdp.c: In function 'sdp_append_to_buf':
sdp.c:2348: error: 'UCHAR_MAX' undeclared (first use in this function)

Un problème identique est signalé sur bugzilla.
Cependant, il semble être en rapport avec gcc-4.3. J'ignore si cela concerne aussi gcc-4.1 ...
En tout cas, la dernière version "testing" n'a pas ce problème.

Quote:
Il me semble que bluez-libs ne sert que pour le bluetooth (dont je n'ai pas besoin).

Fort bien mais dans ce cas, pourquoi actives-tu globalement le USEflag bluetooth ???
Enlève-le et recompile les paquets qui en dépendent ! ;)
Back to top
View user's profile Send private message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Wed Feb 18, 2009 1:29 pm    Post subject: Reply with quote

Salut ghoti,
je n'avais pas remarqué que bluetooth apparaissait sur le emerge --info.
Voici mon /etc/make.conf :
Quote:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="X a52 aac aalib acpi aim alsa apache2 apm audiofile avahi bcmath bogofilter bonjour bonobo bzip2 calendar cddb cdparano$
cdr clamav cracklib crypt css cups curl curlwrappers cxx daap dbus dga dri dv dvd dvdread encode esd evo exif expat fbcon
ffmpeg firefox firefox3 flac fontconfig foomaticdb ftp -gcj gd gdbm gif gimp glut gmp gnome gnome-keyring gnuplot
gnustep gnutls gphoto2 gpm graphviz gsl gstreamer gtk gtk2 gtkhtml guile hal hddtemp icq idn iee1394 imagemagick
imlib -innodb -ipod jabber jack java java5 java6 javascript jingle jpeg jpeg2k kdeprefix lame -laptop -lapack -lash latex
lcms ldap libburn libcaca -libedit libgda libnotify libwww lm_sensors lzo mad maildir mailwrapper matroska mbox
-mcve -mDNSResponder mdnsresponder-compat memlimit mjpeg mhash mime mmap mng modplug mono motif mozilla mp3 mpeg -mpi
mplayer msn multilib musepack musicbrainz mysql -nas ncurses networking networkmanager nptl nsplugin ogg openal
openexr opengl osc oscar oss -pda pdf perl php png -portaudio posix ppds -prelude prefix print pulseaudio python qt3 qt4
quicktime radius raw -rdesktop readline rss samba scanner sdl sndfile sockets source sox speex spell -spl sqlite
sqlite3 sse2 ssl subversion svg svga syslog szip taglib tcl tcpd theora threads tiff timidity tk truetype unicode
usb utempter v4l v4l2 vcd vhosts vnc vorbis wavpack win32codecs wmf wxwindows x264 xcomposite xface xine xinerama xml xorg
xosd xpm xprint xscreensaver xulrunner xv xvid yahoo zeroconf"
LINGUAS="fr de"
MAKEOPTS="-j1"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="radeon"
FEATURES="parallel-fetch"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
PORTAGE_TMPDIR="/home/portage"
source /usr/portage/local/layman/make.conf

Pas de bluetooth ici ...
J'ai faux où ? :?
_________________
Visi pas nette, pilote à la buvette !
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3581
Location: Belgium

PostPosted: Wed Feb 18, 2009 1:43 pm    Post subject: Reply with quote

lefoid wrote:
Pas de bluetooth ici ...
J'ai faux où ? :?

Il est défini dans le profile ... ;)
Exemple pour le destop : /usr/portage/profiles/targets/desktop/make.defaults
Quote:
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/profiles/targets/desktop/make.defaults,v 1.4 2008/12/19 11:33:35 armin76 Exp $

USE="acpi alsa branding cairo cdr dbus dvd dvdr dvdread eds emboss encode esd evo fam firefox gif gnome gpm gstreamer gtk hal jpeg kde ldap libnotify mad mikmod mp3 mpeg ogg opengl pdf png ppds qt3 qt3support qt4 quicktime sdl spell svg tiff truetype vorbis win32codecs unicode usb X xml xulrunner xv"

# This is added for GNOME/Xfce
USE="${USE} startup-notification"

# Adding this for bluetooth support
USE="${USE} bluetooth"

Donc, en fait, pour le désactiver, tu dois l'ajouter en négatif dans ton make.conf ("-bluetooth")
Back to top
View user's profile Send private message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Thu Feb 19, 2009 7:37 pm    Post subject: Reply with quote

Merci ghoti,
effectivement la compil s'est bien passée.
Celui-ci est résolu ... et j'en ouvre un nouveau car le
Code:
emerge -e world

m'a réservé une nouvelle déconvenue.
A tout de suite ...
_________________
Visi pas nette, pilote à la buvette !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum