$ mysqld -V
mysqld Ver 3.23.49 for pc-linux-gnu on i686
Yup. It's a box on Debian Stable (Woody).
The library compiled fine, without warning.
mysqld isn't running with --skip-grant-tables.
mysql> CREATE AGGREGATE FUNCTION median RETURNS REAL
SONAME 'udf_median.so';
ERROR 1126: Can't open shared library 'udf_median.so'
(errno: 22 /usr/lib/udf_median.so: undefined symbol: _Znwj)
Logged In: NO
Okay. Solved my own problem.
Headers needed for compilation and successful installation
under Debian Stable (Woody) are provided by:
apt-get install libstdc++2.10 libstdc++2.10-dev
libstdc++2.10-glibc2.2 libmysqlclient10-dev