[I'm not subscribed, please Cc: me on any replies]

Aspell 0.60.3 uses several math-related functions (log, sqrt, floor), but
doesn't check to see if an external library (e.g. libm) is required to
satisfy those symbols.  This results in undefined symbols when creating or
linking against the shared library.

The fix is easy -- have configure check to see if libm is needed to satisfy
any of these symbols:


--- aspell-0.60.3.orig/configure.ac     2005-06-27 04:50:48.000000000 -0500
+++ aspell-0.60.3/configure.ac  2005-10-04 18:23:40.000000000 -0500
@@ -167,6 +167,26 @@

 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 #                                                                 #
+#                           math function checks / libm           #
+#                                                                 #
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+
+# several platforms put math-related functions in libm
+AC_CHECK_FUNCS(sqrt)
+if test X"$ac_cv_func_sqrt" != X"yes" ; then
+       AC_CHECK_LIB(m,sqrt)
+fi
+AC_CHECK_FUNCS(floor)
+if test X"$ac_cv_func_floor" != X"yes" ; then
+       AC_CHECK_LIB(m,floor)
+fi
+AC_CHECK_FUNCS(log)
+if test X"$ac_cv_func_log" != X"yes" ; then
+       AC_CHECK_LIB(m,log)
+fi
+
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+#                                                                 #
 #                           Posix tests                           #
 #                                                                 #
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


Tim
--
Tim Mooney                              [EMAIL PROTECTED]
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


_______________________________________________
Aspell-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/aspell-devel

Reply via email to