On Aug 18, 2008, at 1:22 PM, Lonny Selinger wrote:

> I was just wondering if anyone could help be debug a build?  
> Basically I'm trying to get a whack of stuff working for OTF trans- 
> coding with Mediatomb and PS3 using Fink packages (which I actually  
> use for a ton of other stuff as well). Anyway ... I was able to  
> build ffmpegthumbnailer from source (v1.2.6) but kept getting a "Bus  
> Error" when I tried to actually execute it.
>
> Compile using Fink default path:
> --------------------------------
> # ./configure --prefix=/sw/
>
> Build & install
> ---------------
> # make && make install
>
> Test binary:
> ------------
>
> # ffmpegthumbnailer
> invalid arguments
> Usage: ffmpegthumbnailer [options]
>
> Options:
>  -i<s>  : input file
>  -o<s>  : output file
>  -s<n>  : thumbnail size (default: 128)
>  -t<n>  : time to seek to (percentage) (default: 10)
>  -f     : create a movie strip overlay
>  -w     : workaround issues in old versions of ffmpeg
>  -h     : display this help
>
> Try vaild file
> --------------
> # ffmpegthumbnailer -w -i "/path/to/an/avi/file.avi" -o samp.jpg -s  
> 128
> Bus error
>
>
> I tried using gdb to give me a hint as to whats going on ... here's  
> the output (truncated)
>
> # gdb
> GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49  
> UTC 2007)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and  
> you are
> welcome to change it and/or distribute copies of it under certain  
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for  
> details.
> This GDB was configured as "i386-apple-darwin".
> (gdb) exec-file /sw/bin/ffmpegthumbnailer -w -i /Volumes/Media/Video/ 
> one_of_my_video.avi -o samp.jpg -s 128
> Reading symbols for shared libraries ....warning: Could not find  
> object file "/sw/src/fink.build/a52dec-0.7.4-2/a52dec-0.7.4/liba52/ 
> bitstream.lo" - no debug information available for "bitstream.c".
> warning: Could not find object file "/sw/src/fink.build/ 
> a52dec-0.7.4-2/a52dec-0.7.4/liba52/imdct.lo"
> warning: Could not find object file "/sw/src/fink.build/ 
> faad-2.0.0-1013/faad2/libfaad/.libs/decoder.o
> warning: Could not find object file "/sw/src/fink.build/ 
> libtheora0-1.0-0.alpha5.1002/libtheora-1.0alpha5/lib/.libs/ 
> libtheora_la-decode.o" - no debug information available for  
> "decode.c".
>
>
> etc etc .... there are a LOT of "Could not find object file" errors  
> for packages like faad, libpng, a52dec, vorbis etc. I checked the  
> build directory and there's nothing in /sw/src/fink.build so I tried  
> for rebuilding each package.

Which won't put anything in fink.build (see below).

> I'm still having no luck. Can someone kick me in the right direction  
> for getting this working? The build was fine with no errors I just  
> can't actually _run_ the app!!
>
> I'm not new to compiling (although I am new to compiling on/for OSX)  
> but I could use a kick in the right direction :-)
>
> Thanks!!
>
> --
> Lonny
>

Right.  It's not a build-time issue but a runtime one.

If you've got a package trying to find stuff in fink.build, then  
something's amiss, because that directory is intended for package  
builds, and ideally you _should_ have nothing there while you're not  
building Fink packages.  Sometimes libtool archive (.la) files from  
packages wind up pointing toward the build directory instead of where  
they're supposed to, and thereby try to point you to the wrong  
location for libraries.

One place to start would be to run the following (or something similar  
if you're on a different shell)

for file in  /sw/fink/debs*.deb ; do fink validate $file ; done
for file in /sw/var/cache/apt/archives/*.deb ; do fink validate  
$file ;done

The validator is supposed to be able to find libtool archive files  
that reference these transient directories, so it might be the case  
that there's a broken package in Fink that needs updating.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to