FreeBSD – RRDs.so: Undefined symbol “PL_sv_undef”

FreeBSD에서 MRTG에 RRDTOOL을 사용하려 할때 아래와 같은 에러가 뜰경우가 있습니다.

[root@yongbok ~]# mrtg /usr/local/etc/mrtg/ruo91.cfg

Can’t load ‘/usr/local/lib/perl5/site_perl/5.10.1/mach//auto/RRDs/RRDs.so’ for module RRDs: /usr/local/lib/perl5/site_perl/5.10.1/mach//auto/RRDs/RRDs.so: Undefined symbol “PL_sv_undef” at /usr/local/lib/perl5/5.10.1/mach/DynaLoader.pm line 200.
at /usr/local/bin/mrtg line 346
Compilation failed in require at /usr/local/bin/mrtg line 346.

이 경우 p5-RRDTool 를 재설치하면 되는데 rrdtool이 먼저 설치 되어 있을 경우 rrdtool도 지우고 설치하시면 됩니다.

[root@yongbok ~]# pkg_info | grep rrdtool
rrdtool-1.4.4       Round Robin Database Tools
[root@yongbok ~]# pkg_delete rrdtool-1.4.4

[root@yongbok ~]# cd /usr/ports/devel/p5-RRDTool-OO ; make deinstall clean ; make install clean

다시 MRTG 실행하시면 됩니다.

[root@yongbok ~]# mrtg /usr/local/etc/mrtg/ruo91.cfg
Daemonizing MRTG …

참고
http://forum.centreon.com/archive/index.php/t-4516.html