[Mailman-Users] Mailman 2.1.[56] installation problem w/ KoreanCodecs

Frank Cusack fcusack at fcusack.com
Sat Jan 6 18:16:40 CET 2007


Hi, found this message back from 2005/11/28:

> "make install" dies with
>     (cd ./$p ; umask 02 ; PYTHONPATH=/home/mailman/2.1.5/pythonlib
> /usr/local/bin/python setup.py --quiet install --install-lib
> /home/mailman/2.1.5/pythonlib  --install-purelib
> /home/mailman/2.1.5/pythonlib  --install-data
> /home/mailman/2.1.5/pythonlib); \
> done
> /usr/local/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence'
> distribution option is deprecated; use 'license'
>   warnings.warn(msg)
> src/hangul.c:33: error: syntax error before numeric constant
> src/hangul.c:34: error: syntax error before numeric constant
> error: command 'gcc' failed with exit status 1
> *** Error code 1
>
> This happens with either 2.1.5 or 2.1.6, various versions of
> Python as well.  It's on Solaris 10 with Sun's bundled gcc
> (/usr/sfw/bin/gcc).
>
> Rather furstrating.  Is there an easy way to just skip these
> codecs i have no use for?

I came across the same problem with mailman 2.1.9 and thought I'd
share my solution.

This is due to a bug in Solaris 10 headers.  <signal.h> includes
<sys/regset.h> which pollutes the macro "namespace" (if you will)
with definitions for x86 registers, like GS and SS.  This is only
on Solaris/x86; Solaris/sparc doesn't have this error.

Before running configure, I do this:

# work around solaris bug
# http://forum.java.sun.com/thread.jspa?threadID=5074551
gtar zxf misc/KoreanCodecs-2.0.5.tar.gz
perl -i -pe 's/GS, N/MYGS, N/; s/CODE.GS./CODE(MYGS)/;
             s/SS, N/MYSS, N/; s/CODE.SS./CODE(MYSS)/;' \
  KoreanCodecs-2.0.5/src/hangul.c
gtar zcf misc/KoreanCodecs-2.0.5.tar.gz KoreanCodecs-2.0.5

The tarball has to be unpacked and repacked because 'make' unpacks
it.  If you unpack it and patch it, without repacking it, 'make'
will overwrite your changes when it unpacks it again.

-frank


More information about the Mailman-Users mailing list