Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[mplayer] Cannot find header either inttypes.h or bitypes.h
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
lordcris
Apprentice
Apprentice


Joined: 09 Jul 2002
Posts: 248

PostPosted: Thu May 15, 2008 10:53 am    Post subject: [mplayer] Cannot find header either inttypes.h or bitypes.h Reply with quote

hello,
i get this message then i try to complie mplayer on my ppc powerbook.

Code:
>>> Emerging (1 of 1) media-video/mplayer-1.0_rc2_p26753 to /
 * mplayer-1.0_rc2_p26753.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                [ ok ]
 * checking ebuild checksums ;-) ...                                                             [ ok ]
 * checking auxfile checksums ;-) ...                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                           [ ok ]
 * checking mplayer-1.0_rc2_p26753.tar.bz2 ;-) ...                                               [ ok ]
>>> Unpacking source...
>>> Unpacking mplayer-1.0_rc2_p26753.tar.bz2 to /var/tmp/portage/media-video/mplayer-1.0_rc2_p26753/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-video/mplayer-1.0_rc2_p26753/work/mplayer-1.0_rc2_p26753 ...
Detected operating system: Linux
Detected host architecture: ppc
Checking for powerpc-unknown-linux-gnu-gcc version ... 4.2.3
Checking for host cc ... powerpc-unknown-linux-gnu-gcc
Checking for cross compilation ... no
Checking for CPU type ...  altivec
Checking for GCC & CPU optimization abilities ... none
Checking for extern symbol prefix ...
Checking for assembler support of -pipe option ... yes
Checking for compiler support of named assembler arguments ... yes
Checking for .align is a power of two ... yes
Checking for GCC AltiVec flags ... -faltivec
Checking for altivec.h ... no
Checking for -lposix ... no
Checking for -lm ... no
Checking for langinfo ... no
Checking for language ... using en (man pages: en )
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... yes
Checking for restrict keyword ... none
Checking for __builtin_expect ... no
Checking for kstat ... no
Checking for posix4 ... no
Checking for llrint ... no
Checking for lrint ... no
Checking for lrintf ... no
Checking for round ... no
Checking for roundf ... no
Checking for mkstemp ... no
Checking for nanosleep ... no
Checking for socklib ... no
Checking for inet_pton() ... no (trying inet_aton next)
Checking for inet_aton() ... no (network support disabled)
Checking for network ... no
Checking for inttypes.h (required) ... no
Checking for bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed.

Check "configure.log" if you do not understand why it failed.
 *
 * ERROR: media-video/mplayer-1.0_rc2_p26753 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2529:  Called die
 * The specific snippet of code:
 *       CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died";
 *  The die message:
 *   configure died
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/mplayer-1.0_rc2_p26753/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/mplayer-1.0_rc2_p26753/temp/environment'.
 *


this happened to anyone?
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu May 15, 2008 1:16 pm    Post subject: Reply with quote

Hi,

According to google it seems you miss some libraries, did you try revdep-rebuild?

If revdep-rebuild doesn't help, please post your 'emerge --info'
_________________
Powered by Gentoo Linux since 2003


Last edited by mamac on Thu May 15, 2008 1:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
lordcris
Apprentice
Apprentice


Joined: 09 Jul 2002
Posts: 248

PostPosted: Thu May 15, 2008 1:22 pm    Post subject: Reply with quote

revdeb-rebuild didn't help.

here is my emerge --info :

Code:
 emerge --info
Portage 2.1.5 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r3 ppc)
=================================================================
System uname: 2.6.25-gentoo-r3 ppc 7447A, altivec supported
Timestamp of tree: Thu, 15 May 2008 04:45:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r3
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.muntinternet.net/pub/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.ing.unibo.it/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
MAKEOPTS="-j7"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gnash-cvs /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl aiglx alsa altivec asf audiofile bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cups dbus dga dhcp divx divx4linux dmix dri dts dvb dvd dvdr dvdread encode faac faad fbcon fbdev ffmpeg firefox flac fortran gdbm gif glitz gmedia gphoto2 gpm gtk2 iconv icq imlib ipv6 isdnlog ithreads java javacomm jpeg kde kdexdeltas kickoff live mad matroska midi mikmod mozbranding mozdevelop mp2 mp3 mpeg mudflap musepack musicbrainz nas ncurses network nls nptl nptlonly nsplugin nsplugins nxclient obex offensive ogg oggvorbis openal opengl openmp openntpd oscar oss parse-clocks pci pcre pdf perl png ppc pppd python qt3 qt3support qt4 quicktime readline reflection rtc samba session sheep softmmu spl ssl stream svg symlink tcpd truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd vorbis wavpack wifi wma wmp wxwindows x264 xanim xcomposite xml xorg xv xvid zlib" ALSA_CARDS="powermac" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon ati"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu May 15, 2008 1:28 pm    Post subject: Reply with quote

lordcris wrote:

Code:
 emerge --info
...
ACCEPT_KEYWORDS="ppc ~ppc"
...


I'm ok when we work on stable arch but can't help with experimental stuff, sorry... :roll:
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
sno35
Guru
Guru


Joined: 15 May 2004
Posts: 334
Location: Paris, France

PostPosted: Thu May 15, 2008 7:58 pm    Post subject: come back later :/ Reply with quote

Bump, same arch, same problem. It seems it's in the ebuild, because :
when I launch configure in 26753 with the parameters from 26454-r2
it finds inttype where it can not when ebuilding.
The differences are :
in 26454-r2 : --disable-vstream --disable-faad-internal + use /tmp/mplayer-conf
in 26753 : --disable-faac-lavc --disable-x264-lavc --disable-v4l2 + use /var/tmp/portage/mplayer<version>/temp/mplayer-conf

Still searching

EDIT: I can not reproduce the working I thought I described previously :( sorry

EDIT2 : I got the configure phase to end OK, here is a quick(and dirty of course) patch for the configure script after unpack.
(I was surprised my changes were not rejected/overwritten after a checksum :) )

Code:
--- configure   2008-05-13 02:25:51.000000000 +0200
+++ somewhere/mplayer_26753_configure_pass_inttypes   2008-05-15 23:37:28.000000000 +0200
@@ -1423,8 +1423,9 @@
 fi
 
 # Checking CC version...
+if test "yes" = "yes"; then
 # Intel C++ Compilers (no autoselect, use CC=/some/binary ./configure)
-if test "`basename $_cc`" = "icc" || test "`basename $_cc`" = "ecc"; then
+ if test "`basename $_cc`" = "icc" || test "`basename $_cc`" = "ecc"; then
   echocheck "$_cc version"
   cc_vendor=intel
   cc_name=`$_cc -V 2>&1 | _head 1 | cut -d ',' -f 1`
@@ -1446,7 +1447,7 @@
       ;;
   esac
   echores "$cc_version"
-else
+ else
   for _cc in "$_cc" cc gcc ; do
     cc_name_tmp=`$_cc -v 2>&1 | _tail 1 | cut -d ' ' -f 1`
     if test "$cc_name_tmp" = "gcc"; then
@@ -1468,9 +1469,10 @@
     break
     fi
   done
-fi # icc
-test "$cc_fail" = yes && die "unsupported compiler version"
+ fi # icc
+ test "$cc_fail" = yes && die "unsupported compiler version"
 
+fi
 echocheck "host cc"
 test "$_host_cc" || _host_cc=$_cc
 echores $_host_cc
@@ -2264,6 +2266,24 @@
     _altivec=yes
   fi
 fi
+if ! x86 ; then
+  _mmx=
+  _3dnow=
+  _3dnowext=
+  _mmxext=
+  _sse=
+  _sse2=
+  _ssse3=
+  _cmov=
+fi
+if ! ppc ; then
+  _altivec=
+fi
+if ! arm ; then
+  _armv5te=
+  _armv6=
+  _iwmmxt=
+fi
 
 
 echocheck "extern symbol prefix"
@@ -2411,11 +2431,14 @@
 
 
 #FIXME: This should happen before the check for CFLAGS..
-if test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ; then
+if 1; then
+
 
+
+    if test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ; then
     # check if AltiVec is supported by the compiler, and how to enable it
-    echocheck "GCC AltiVec flags"
-    cat > $TMPC << EOF
+        echocheck "GCC AltiVec flags"
+        cat > $TMPC << EOF
 int main(void) { return 0; }
 EOF
     cc_check -maltivec -mabi=altivec \
@@ -2423,6 +2446,7 @@
         || cc_check -faltivec && _altivec_gcc_flags=-faltivec \
         || _altivec=no
     echores "$_altivec_gcc_flags"
+    fi
 
     # check if <altivec.h> should be included
     echocheck "altivec.h"


Will have to file an entry to bugs. But it's sleep time now.

Hth
Back to top
View user's profile Send private message
sno35
Guru
Guru


Joined: 15 May 2004
Posts: 334
Location: Paris, France

PostPosted: Thu May 15, 2008 9:55 pm    Post subject: Reply with quote

And then it breaks on a52 thing ;-) because it lost HAVE_ALTIVEC_H.
I hate frustration and that frustates me ;-)
A better patch that gets ALTIVEC OK.
The writer of the test was too agressive with "&&"'s and assuming an affectation is always "true", it seems.

Code:
diff -u configure configure_ok
--- configure   2008-05-16 00:21:04.000000000 +0200
+++ configure_ok        2008-05-16 00:20:56.000000000 +0200
@@ -2418,10 +2418,9 @@
     cat > $TMPC << EOF
 int main(void) { return 0; }
 EOF
-    cc_check -maltivec -mabi=altivec \
-        && _altivec_gcc_flags="-maltivec -mabi=altivec" \
-        || cc_check -faltivec && _altivec_gcc_flags=-faltivec \
-        || _altivec=no
+    cc_check -maltivec -mabi=altivec && _altivec_gcc_flags="-maltivec -mabi=altivec"
+    test "x$_altivec_gcc_flags" = "x" && cc_check -faltivec && _altivec_gcc_flags=-faltivec
+    test "x$_altivec_gcc_flags" = "x" && _altivec=no
     echores "$_altivec_gcc_flags"

     # check if <altivec.h> should be included

And then the bed is calling me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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