PDA

View Full Version : using libace on Ubuntu9.10



stoval
December 22nd, 2009, 12:00 AM
Hi all,

I am trying to build an application using libace-5.6.3 but failed on Ubuntu9.10:

/usr/include/ace/OS_NS_dirent.inl:131: error: invalid conversion from 'int (*)(const void*, const void*)' to 'int (*)(const dirent**, const dirent**)'
/usr/include/ace/OS_NS_dirent.inl:131: error: initializing argument 4 of 'int scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const dirent**, const dirent**))'
/usr/include/ace/OS_NS_dirent.inl: In function 'int ACE_OS::alphasort(const void*, const void*)':
/usr/include/ace/OS_NS_dirent.inl:152: error: invalid conversion from 'const void*' to 'const dirent**'
/usr/include/ace/OS_NS_dirent.inl:152: error: initializing argument 1 of 'int alphasort(const dirent**, const dirent**)'
/usr/include/ace/OS_NS_dirent.inl:152: error: invalid conversion from 'const void*' to 'const dirent**'

I searched and found http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=552899
It said the bug has been fixed on libace-5.6.3-6

apt said I alread have the latest verson, so what's the next step?

Thanks a lot for your help!

Stoval

flyingtux
January 8th, 2010, 03:51 PM
Hi,
Same problem for me !
Can we install it from the debian testing repository or should we wait any update of the ubuntu repo !

is there a risk to include a debian repository in an ubuntu distro

regards,

Jean-Pierre

Zugzwang
January 8th, 2010, 03:53 PM
Hi,
Same problem for me !
Can we install it from the debian testing repository or should we wait any update of the ubuntu repo !

is there a risk to include a debian repository in an ubuntu distro


Don't do it. Rather, download the .deb file of the new package version directly and install it using "sudo dpkg -i yourdebfile.deb". Do the same for the "-dev" package version. You may also want to uninstall the package before the next Ubuntu upgrade.

flyingtux
January 8th, 2010, 07:53 PM
Thanks for answering,

I did :
sudo dpkg -i libace-5.6.3_5.6.3-6_i386.deb
sudo dpkg -i libace-dev_5.6.3-6_i386.deb
sudo dpkg -i libace-doc_5.6.3-6_all.deb

and it works :-)

regards,

Jean-Pierre