First Alexander and Daniel, thanks ... comments in line
----- "Alexander Hansen" <[EMAIL PROTECTED]> wrote:
> 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).
the -k on the rebuild helped gdb stop complaining ... the saga continues ...
> > 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
I had nothing in archives but I did validation against all the deb's, with a
lot of errors :(
> 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.
So I appear to have two problems ... one is a lot of errors from Fink regarding
packages:
<some examples>
Error: package contains the shared library
/sw/lib/libavdevice.52.0.0.dylib
but the corresponding install_name and compatibility_version
%p/lib/libavdevice.52.dylib 51.1.0
are not listed in the Shlibs field. See the packaging manual.
Validating .deb file /sw/fink/debs/ghostscript_8.61-3_darwin-i386.deb...
Error: File installed outside of /sw
Offending file: /private/
Offending file: /private/etc/
Offending file: /private/etc/cups/
Offending file: /private/etc/cups/pstoraster.convs
Offending file: /usr/
Offending file: /usr/libexec/
Offending file: /usr/libexec/cups/
Error: Shlibs field says compatibility version for /sw/lib/libpcap.0.dylib is
0.9.5, but it is actually 0.9.8.
Error: Shlibs field says compatibility version for /sw/lib/libtheora.0.dylib is
2.0.0, but it is actually 3.0.0.
Error: package contains the shared library
/sw/lib/libusbpp-0.1.4.4.4.dylib
but the corresponding install_name and compatibility_version
%p/lib/libusbpp-0.1.4.dylib 9.0.0
are not listed in the Shlibs field. See the packaging manual.
Error: Shlibs field says compatibility version for /sw/lib/liblber-2.3.0.dylib
is 2.0.0, but it is actually 3.0.0.
Error: Shlibs field says compatibility version for /sw/lib/libldap-2.3.0.dylib
is 2.0.0, but it is actually 3.0.0.
Error: Shlibs field says compatibility version for
/sw/lib/libldap_r-2.3.0.dylib is 2.0.0, but it is actually 3.0.0.
</some examples>
There are more but the email is getting long already ;-)
And my second problem is from the ffmpegthumbnailer app itself, now from gdb I
get this error:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x969721e5 in strtol_l ()
And I can't seem to step past it *sigh* ... all this for easy thumbnails
through medaitombs transcoding stanzas lol
I understand this is not really fink related, I'm just trying to get this
working and you've both been helpful so I'm not going to push it, but ...
should I try rebuilding every package that issues and error? I'd like to get my
Fink installation clean, maybe that will help my other problems.
thanks guys,
Lonny
-------------------------------------------------------------------------
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