Hello, I was missing my favourite integrity checker for mp3s so I wrote an ebuild for that. Hope there is not too much errors - it worked for me :-) This is not the same as mp3_check - in fact, I consider this utility much more powerful than anything else I have seen.
Created attachment 28810 [details] mp3check-0.8.0.ebuild
Hi kavol, thanks for your submitted ebuild. It generally look quite good, but lacks dependency to at least libc. DEPEND="virtual/libc" can you also change the copyright line (1st line in your ebuild) to: # Copyright 1999-2004 Gentoo Foundation When I try to install it on my system (gcc-3.4.1, glibc-2.3.4.20040605-r0) it fails. I added the output below. Can you please have a look at these things? g++ -DHAVE_CONFIG_H -I. -I. -I. -pipe -O2 -c tstring.cc In file included from tstring.h:32, from tstring.cc:30: tvector.h: In member function `const tvector<T>& tvector<T>::operator+=(const tvector<T>&)': tvector.h:63: error: there are no arguments to `end' that depend on a template parameter, so a declaration of `end' must be available tvector.h:63: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) tvector.h: In member function `const T& tvector<T>::operator[](size_t) const': tvector.h:65: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available tvector.h:65: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available tvector.h: In member function `T& tvector<T>::operator[](size_t)': tvector.h:67: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available tvector.h:67: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available tvector.h: In member function `void tvector<T>::clear()': tvector.h:69: error: there are no arguments to `begin' that depend on a template parameter, so a declaration of `begin' must be available tvector.h:69: error: there are no arguments to `end' that depend on a template parameter, so a declaration of `end' must be available tstring.cc: In member function `void tstring::replaceUnprintable(bool)': tstring.cc:717: error: invalid initialization of non-const reference of type 'unsigned char&' from a temporary of type 'unsigned char' make: *** [tstring.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from tappconfig.h:25, from tappconfig.cc:31: tmap.h: In member function `bool tmap<K, T>::contains(const K&) const': tmap.h:57: error: there are no arguments to `end' that depend on a template parameter, so a declaration of `end' must be available tmap.h:57: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from tappconfig.h:26, from tappconfig.cc:31: tvector.h: In member function `const tvector<T>& tvector<T>::operator+=(const tvector<T>&)': tvector.h:63: error: there are no arguments to `end' that depend on a template parameter, so a declaration of `end' must be available tvector.h: In member function `const T& tvector<T>::operator[](size_t) const': tvector.h:65: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available tvector.h:65: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available tvector.h: In member function `T& tvector<T>::operator[](size_t)': tvector.h:67: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available tvector.h:67: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available tvector.h: In member function `void tvector<T>::clear()': tvector.h:69: error: there are no arguments to `begin' that depend on a template parameter, so a declaration of `begin' must be available tvector.h:69: error: there are no arguments to `end' that depend on a template parameter, so a declaration of `end' must be available make: *** [tappconfig.o] Error 1 !!! ERROR: media-sound/mp3check-0.8.0 failed. !!! Function src_compile, Line 481, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message.
As for the compile error - it works (at least) with gcc 3.3.3, but does not work with gcc 3.4.1, which is your case. It reports very similar errors on my second computer with gcc 3.4.1 while the first one with the older gcc does not report even a single warning ... Unfortunatelly, I know nearly nothing about C++ so I can hardly track the problem. As for the dependencies, the rpm .spec file says nothing, nor the website or the installation instructions ... is there any tool to find what is needed?
in portage.