Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
motion-2.3.9 strange configure error [ SOLVED ]
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
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 867

PostPosted: Fri Dec 21, 2007 1:31 pm    Post subject: motion-2.3.9 strange configure error [ SOLVED ] Reply with quote

i'm trying to compile media-video/motion-3.2.9 on one of my boxes and this error appears (which is strange because it compiles on all my other boxes):

==SNIP==
checking for V42L support... yes
checking for short int... yes
checking size of short int... configure: error: cannot compute sizeof (short int)
See `config.log' for more details.
==SNIP==

a similar error is described in the motion wiki:
http://www.lavrsen.dk/twiki/bin/view/Motion/FrequentlyAskedQuestions#I_got_this_message_when_i_tried

but i can see no relation to the error on my system because i don't use db-support at all.


FYI:
Code:
emerge --info
Portage 2.1.4_rc10 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r4 i686)
=================================================================
System uname: 2.6.23-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Fri, 21 Dec 2007 01:47:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.4.4-r4, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r2, 2.17, 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/sha
re/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-
rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"


any ideas?
_________________
DUMM KLICKT GUT.


Last edited by DawgG on Mon Jan 07, 2008 12:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Sun Dec 23, 2007 7:32 am    Post subject: Reply with quote

You need to look for errors in config.log like the message suggests.
Post the errors here if it's still not obvious what you're missing.
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 867

PostPosted: Thu Dec 27, 2007 10:46 am    Post subject: ffmpeg? Reply with quote

this error apears twice in config.log

Code:
configure:3181: i686-pc-linux-gnu-gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:3187: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>


which seems to have sth to do with ffmpeg/faac (re-emerged both of those, but the error is still there)

Code:

configure:5355: i686-pc-linux-gnu-gcc -c -I/usr/include/ffmpeg  conftest.c >&5
configure:5361: $? = 0
configure:5376: result: yes
configure:5383: checking size of short int
configure:5685: i686-pc-linux-gnu-gcc -o conftest -I/usr/include/ffmpeg    conftest.c -lm  -lpthread -ljpeg -
lmjpegutils -llavjpeg -L/usr/lib -lavformat -lavcodec -lm -lz >&5
/usr/lib/libavcodec.so: undefined reference to `faacDecOpen'
/usr/lib/libavcodec.so: undefined reference to `faacDecGetCurrentConfiguration'
/usr/lib/libavcodec.so: undefined reference to `faacDecDecode'
/usr/lib/libavcodec.so: undefined reference to `faacDecInit'
/usr/lib/libavcodec.so: undefined reference to `faacDecSetConfiguration'
/usr/lib/libavcodec.so: undefined reference to `faacDecInit2'
/usr/lib/libavcodec.so: undefined reference to `faacDecClose'
/usr/lib/libavcodec.so: undefined reference to `faacDecGetErrorMessage'
collect2: ld returned 1 exit status
configure:5688: $? = 1
configure: program exited with status 1


and some lines below this the error from my initial post appears.

all other apps depending on ffmpeg (seem to) work fine. i tried to compile motion on a couple of different boxes and on some this error appeared, on some it did not.

UPDATE:
with
Code:
USE="-ffmpeg"
it compiles fine.

maybe you can find sth, but be sure to rest during the holidays ;)
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Thu Dec 27, 2007 9:54 pm    Post subject: Reply with quote

It looks like the motion configure script is not taking into account libraries that ffmpeg requires (such as faac).

In configure, tbere is a section that implements a debian-specific method

Code:

# weird hack to fix debian problem TO BE REMOVED

    if test -f /usr/bin/ffmpeg-config; then
        FFMPEG_LIBS_DEB="`ffmpeg-config --libs avformat`"
        FFMPEG_CFLAGS_DEB="`ffmpeg-config --cflags`"


This doesn't help on gentoo since we don't have ffmpeg-config script.

How about filing a bug report on this problem? https://bugs.gentoo.org
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 867

PostPosted: Mon Jan 07, 2008 12:39 pm    Post subject: Reply with quote

it's solved now.
other apps using libavcodec.so refused to compile, too.
i re-emerged faac, faad2 and then ffmpeg (in this order), and now motion and the other apps compile.

THX FOR UR HELP.
(the ebuild works fine in spite of the deb-specific method.)
_________________
DUMM KLICKT GUT.
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