svn 2454 search for .a .la files

Hi folx , my builds fail with this error, .a .la files are no longer shiped in rpm packages ( I'm talking about mandriva, rosa ,unity a.s.o)

libtool: link: cannot find the library `/usr/lib/libstdc++.la' or unhandled argument `/usr/lib/libstdc++.la'
make[3]: *** [libmodplug_decoder.la] Error 1
make[3]: Leaving directory `/home/build/rpmbuild/BUILD/trunk/decoder_plugins/modplug'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/build/rpmbuild/BUILD/trunk/decoder_plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/build/rpmbuild/BUILD/trunk'
make: *** [all] Error 2

any help would be very useful
Thx

Some people argue that .la files should be dropped and some distributions are doing that, but I would have thought they'd have made sure things still worked first. My understanding is that libtool still requires them for linking (rightly or wrongly) and certainly the .la files on my machine say:

# Please DO NOT delete this file!
# It is necessary for linking the library.

I'll have to investigate if I can work around it in MOC, but in the meantime if you're not actually using ModPlug you can configure it out with the '--without-modplug' option to configure. (Of course, it may still die for lack of another decoder's .la file requirement.)

I reproduced your error on my system then I did the following:

1. Removed libstdc++.la
2. Rebuilt libmodplug
3. Removed libmodplug.la
4. Rebuilt MOC

The ModPlug decoder built without error (although the SIDPlay decoder failed with the same problem).

Therefore, I conclude that the ModPlug you installed on your system was built on a system having a libstdc++.la file and needs to be rebuilt. I suggest you refer the problem to whomever built your ModPlug package.

If it does turn out to be a MOC problem after all, please let me know.

I'll try this , repack modplug without a& la files and try if moc builds , I'll let you know , keep in touch
Thank you for your time.

LE:
you got it right , as I can see on the file-devel secion looks like the packager forgot to delete a la files :
%files -n %develname
%defattr(-,root,root)
%doc AUTHORS TODO ChangeLog
%{_libdir}/libmodplug.la
%{_libdir}/libmodplug.so
%{_includedir}/libmodplug/
%_libdir/pkgconfig/*.pc

here again :
desabled modplug it builds , :
https://abf.rosalinux.ru/build_lists/637705

now I'll repack modpluglib and re enable it keep in touch.

as you said it was the modplug-libs wrong packaging, I've repack modplug without .a .la files , and moc builds like a charm
Is not moc faults and please excuse me for the trouble I've caused, and thank you for your help.
I have clean builds on mdv 2011.0,rosa 2012.0lts and 2012.1 thanks to you.
Greetings.