On Mon, Dec 03, 2007, Wilson Jason wrote: > Trying to build rrdtool-1.2.26-20071120 on Solaris 10 and getting an > error with not having 'POSIX_MADV_RANDOM' undeclared. > > Manually applied http://oss.oetiker.ch/rrdtool-trac/changeset/1242 and > appears to move past this problem. > Now got a 'error: invalid pre-processing directive #undefine' - so > changed line 247 in the patchset to be back to '#undef' and it got > further. > > Now get to linking problems with libart. It seems that the first > 'configure' correctly uses lart_lgpl, but then the 'make' re-runs > configure and this time it uses lart_lgpl_2. This causes problems as > Solaris 10 has are_lgpl_2, but openpkg uses art_lgpl - and the two have > different symbols. > > Anyway, to work around this I changed the first bit of the rrdtool.spec > %build section to do: > > %build > # configure package > %{l_shtool} subst \ > -e 's;lart_lgpl_2;lart_lgpl;g' \ > -e 's;art_lgpl_2;art_lgpl;g' \ > configure configure.ac > > I am sure this is not the most 'elegant' solution, but it does work for > me (and is probably not portable).
Ok, building now fixed under Solaris 10, based on those changes. Thanks for your feedback. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org