|
Home > Archive > Red Hat General > April 2004 > id3lib and fedora
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| imalone 2004-03-13, 5:35 pm |
| I'm trying to build Audio Tag Tool (ATT)
<http://pwp.netcabo.pt/paol/tagtool/>
on FC1. My problem is that it requires id3lib. I can compile
and install id3lib without any complaints, and the examples
work, but doing ./configure for ATT results in:
checking for main in -lid3... no
configure: error: Missing required library. Ensure that id3lib package
is
installed.
The test it's doing is basically:
-- test.c --
int
main ()
{
main ();
;
return 0;
}
--
$gcc test.c
When I do this manually it results in a stack of undefined reference
complaints:
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libid3.so: undefined
reference to `std::__default_alloc_template<(bool)1,
(int)0>::allocate(unsigned)'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libid3.so: undefined
reference to `VTT for std::basic_ifstream<char, std::char_traits<char>
>'
(There are over twenty of these, I'll post them all if anyone
thinks it's useful)
I've tried the source tar from id3lib.sourceforge.net and the
Fedora binary packages from freshrpms.net with the same outcome.
I've installed id3lib in the past on RH9 with no difficulty, can
anyone give me a pointer?
--
"You have viruses, but I have resistance, and I am alive, and you-
are dead." Ken Macleod The Star Fraction
| |
|
| Hi,
I solved it using
export LDFLAGS="-lstdc++ $LDFLAGS"
prior to compiling/building the package.
César
i.malone@ntlworld.com (imalone) wrote in message news:<1de3686c.0403131411.143589d4@posting.google.com>...
> I'm trying to build Audio Tag Tool (ATT)
> <http://pwp.netcabo.pt/paol/tagtool/>
> on FC1. My problem is that it requires id3lib. I can compile
> and install id3lib without any complaints, and the examples
> work, but doing ./configure for ATT results in:
> checking for main in -lid3... no
> configure: error: Missing required library. Ensure that id3lib package
> is
> installed.
>
> The test it's doing is basically:
> -- test.c --
> int
> main ()
> {
> main ();
> ;
> return 0;
> }
> --
> $gcc test.c
>
> When I do this manually it results in a stack of undefined reference
> complaints:
>
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libid3.so: undefined
> reference to `std::__default_alloc_template<(bool)1,
> (int)0>::allocate(unsigned)'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libid3.so: undefined
> reference to `VTT for std::basic_ifstream<char, std::char_traits<char>
>
> (There are over twenty of these, I'll post them all if anyone
> thinks it's useful)
>
> I've tried the source tar from id3lib.sourceforge.net and the
> Fedora binary packages from freshrpms.net with the same outcome.
> I've installed id3lib in the past on RH9 with no difficulty, can
> anyone give me a pointer?
| |
| imalone 2004-04-16, 8:34 am |
| On 10 Apr 2004 07:24:32 -0700, Cesar <capspam@iespana.es> wrote:
> Hi,
>
> I solved it using
>
> export LDFLAGS="-lstdc++ $LDFLAGS"
>
> prior to compiling/building the package.
>
> César
>
Sorry for the delay, just got back to my computer yesterday.
I tried your suggestion and it worked straight away. Seeing
I've been bitten by stdc++ before you'd have thought I would
have figured it out myself, but no.
Anyway, thanks for your help. For anyone else having the same
problem I should point out there was a further hitch running
the application, it couldn't find libid3 to dynamically link.
Quick fixed by:
#ln -s /usr/local/lib/libid3-3.8.so.3 /usr/lib/libid3-3.8.so.3
I'm sure there's a better way than putting symlinks everywhere,
but I'll ask on the Fedora mailing list before I mess anything
up. Small correction to my original post below.
> i.malone@ntlworld.com (imalone) wrote in message
> news:<1de3686c.0403131411.143589d4@posting.google.com>...
<snip>
[vbcol=seagreen]
What I meant was:
$gcc test.c -lid3 -lz
Although:
$gcc test.c -lid3
Which I used, is enough to reproduce the errors in the original
post.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
|
|
|
|
|