在nas上Make  Unrealircd 3.2.8.1時..最後會出現這個

/opt/arm-none-linux-gnueabi/lib/libpthread.so.0: undefined reference to `__default_sa_restorer_v2@GLIBC_PRIVATE’
/opt/arm-none-linux-gnueabi/lib/libpthread.so.0: undefined reference to `__default_rt_sa_restorer_v2@GLIBC_PRIVATE’
/opt/arm-none-linux-gnueabi/lib/libpthread.so.0: undefined reference to `__default_rt_sa_restorer_v1@GLIBC_PRIVATE’
/opt/arm-none-linux-gnueabi/lib/libpthread.so.0: undefined reference to `__default_sa_restorer_v1@GLIBC_PRIVATE’

根據Synology 官方論壇的描述好像是ipkg所提供的pthread libraries  有錯誤

解決方法

1.backup the pthread libraries found in /opt/arm-none-linux-gnueabi/lib/ :


mkdir /opt/arm-none-linux-gnueabi/lib_disabled
mv /opt/arm-none-linux-gnueabi/lib/libpthread* /opt/arm-none-linux-gnueabi/lib_disabled

2.Copy the pthread libraries found in /opt/lib

cp /lib/libpthread.so.0 /opt/arm-none-linux-gnueabi/lib/
cd /opt/arm-none-linux-gnueabi/lib/
ln -s libpthread.so.0 libpthread.so
ln -s libpthread.so.0 libpthread-2.5.so

做好後再重新make一次即可


1.修改src/modules/m_nick.c 第150行左右

if ((IsServer(cptr) && !do_remote_nick_name(nick)) || (!IsServer(cptr) && !do_nick_name(nick)))   <-這行remark掉
改為 if (!do_remote_nick_name(nick))

2.修改src/charsys.c 第150行左右

const char *illegalnickchars = “\xA0!+%@&~#$:’\”?*,.”;

改為

const char *illegalnickchars = “\xA0!+%&~#$:’\”?*,.”;