! Mac OS X で courier-imap rin@kahori[/usr/pkgsrc/mail/courier-imap]% sudo bmake install clean : ../soxwrap/soxwrap.h:9: warning: `soxwrapproto_h_rcsid' defined but not used ../random128/random128.h:12: warning: `random128_h_rcsid' defined but not used rfc1035_res.h:17: warning: `rfc1035_res_rcsid' defined but not used testlookup.c:19: warning: `rcsid' defined but not used Linking testlookup ld: Undefined symbols: _rfc1035_default_resolver gnumake[3]: *** [testlookup] Error 1 gnumake[2]: *** [all] Error 2 gnumake[1]: *** [all-recursive] Error 1 gnumake: *** [all] Error 2 *** Error code 2 Stop. bmake: stopped in /usr/pkgsrc/mail/courier-imap ===> ===> There was an error during the ``build'' phase. ===> Please investigate the following for more information: ===> * log of the build ===> * /Volumes/NetBSD/pkgsrc/mail/courier-imap/work/.work.log ===> *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/mail/courier-imap えーとなにそれ。 ごそごそ。 これか。 rin@kahori[/usr/pkgsrc/mail/courier-imap]% cd work/courier-imap-4.0.4/rfc1035/ rin@kahori[/usr/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/rfc1035]% grep rfc1035_default_resolver * Binary file librfc1035.a matches rfc1035.h:extern struct rfc1035_res rfc1035_default_resolver; rfc1035_res.c:struct rfc1035_res rfc1035_default_resolver; rfc1035_res.h:extern struct rfc1035_res rfc1035_default_resolver; Binary file rfc1035_res.o matches spf.c: if (rfc1035_resolve_cname(&rfc1035_default_resolver, spf.c: (n=rfc1035_replysearch_an(&rfc1035_default_resolver, spf.c: n=rfc1035_replysearch_an(&rfc1035_default_resolver, spf.c: for (o=n; (o=rfc1035_replysearch_an(&rfc1035_default_resolver, spf.c: rc=rfc1035_a(&rfc1035_default_resolver, ptr, spf.c: if (rfc1035_ptr_x(&rfc1035_default_resolver, &pinfo.addr, spf.c: rc=rfc1035_a(&rfc1035_default_resolver, spf.c: rc=rfc1035_mxlist_create_x(&rfc1035_default_resolver, spf.c: rc=rfc1035_a(&rfc1035_default_resolver, spf.c: if (rfc1035_resolve_cname(&rfc1035_default_resolver, spf.c: (n=rfc1035_replysearch_an(&rfc1035_default_resolver, Binary file spf.o matches testlookup.c: rfc1035_init_ns(&rfc1035_default_resolver, ia, i); testlookup.c: rc=rfc1035_ptr(&rfc1035_default_resolver, testlookup.c: rc=rfc1035_a(&rfc1035_default_resolver, q_name, testlookup.c: replyp=rfc1035_resolve(&rfc1035_default_resolver, Binary file testlookup.o matches rin@kahori[/usr/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/rfc1035]% extern を外す。 rin@kahori[/usr/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/rfc1035]% diff -u rfc1035_res.h.src rfc1035_res.h --- rfc1035_res.h.src Fri Aug 12 15:19:34 2005 +++ rfc1035_res.h Fri Aug 12 15:19:28 2005 @@ -40,7 +40,7 @@ unsigned randptr; } ; -extern struct rfc1035_res rfc1035_default_resolver; +struct rfc1035_res rfc1035_default_resolver; #ifdef __cplusplus } rin@kahori[/usr/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/rfc1035]% !! 再度 rin@kahori[/usr/pkgsrc/mail/courier-imap]% sudo bmake install clean : test -z "/Volumes/NetBSD/pkg/man/man1" || mkdir -p -- "/Volumes/NetBSD/pkg/man/man1" /usr/bin/install -c -o root -g wheel -m 444 './couriertcpd.1' '/Volumes/NetBSD/pkg/man/man1/couriertcpd.1' test -z "/Volumes/NetBSD/pkg/man/man8" || mkdir -p -- "/Volumes/NetBSD/pkg/man/man8" /usr/bin/install -c -o root -g wheel -m 444 './courierimapd.8' '/Volumes/NetBSD/pkg/man/man8/courierimapd.8' /usr/bin/install -c -o root -g wheel -m 444 './courierpop3d.8' '/Volumes/NetBSD/pkg/man/man8/courierpop3d.8' /usr/bin/install -c -o root -g wheel -m 444 './mkimapdcert.8' '/Volumes/NetBSD/pkg/man/man8/mkimapdcert.8' /usr/bin/install -c -o root -g wheel -m 444 './mkpop3dcert.8' '/Volumes/NetBSD/pkg/man/man8/mkpop3dcert.8' for f in couriertcpd.1 courierimapd.8 courierpop3d.8 mkimapdcert.8 mkpop3dcert.8; do chmod a+r /Volumes/NetBSD/pkg/man/*/$f; done Do not forget to run make install-configure test -z "/Volumes/NetBSD/pkg/share/courier" || mkdir -p -- "/Volumes/NetBSD/pkg/share/courier" /usr/bin/install -c -o root -g wheel -m 555 'mkimapdcert' '/Volumes/NetBSD/pkg/share/courier/mkimapdcert' /usr/bin/install -c -o root -g wheel -m 555 'mkpop3dcert' '/Volumes/NetBSD/pkg/share/courier/mkpop3dcert' /usr/bin/install -c -o root -g wheel -m 555 'imapd.rc' '/Volumes/NetBSD/pkg/share/courier/imapd' /usr/bin/install -c -o root -g wheel -m 555 'imapd-ssl.rc' '/Volumes/NetBSD/pkg/share/courier/imapd-ssl' /usr/bin/install -c -o root -g wheel -m 555 'pop3d.rc' '/Volumes/NetBSD/pkg/share/courier/pop3d' /usr/bin/install -c -o root -g wheel -m 555 'pop3d-ssl.rc' '/Volumes/NetBSD/pkg/share/courier/pop3d-ssl' /usr/bin/install -d -o root -g wheel -m 755 /Volumes/NetBSD/pkg/share/examples/courier /usr/bin/install -d -o root -g wheel -m 755 /Volumes/NetBSD/pkg/share/doc/courier/imap /usr/bin/install -c -o root -g wheel -m 444 /Volumes/NetBSD/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/imap/BUGS.html /Volumes/NetBSD/pkg/share/doc/courier/imap /usr/bin/install -c -o root -g wheel -m 444 /Volumes/NetBSD/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/imap/README.html /Volumes/NetBSD/pkg/share/doc/courier/imap /usr/bin/install -c -o root -g wheel -m 444 /Volumes/NetBSD/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/imap/README.proxy.html /Volumes/NetBSD/pkg/share/doc/courier/imap /usr/bin/install -c -o root -g wheel -m 444 /Volumes/NetBSD/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/imap/imapd.pam /Volumes/NetBSD/pkg/share/examples/courier/imap.pam /usr/bin/install -c -o root -g wheel -m 444 /Volumes/NetBSD/pkgsrc/mail/courier-imap/work/courier-imap-4.0.4/imap/pop3d.pam /Volumes/NetBSD/pkg/share/examples/courier/pop3.pam =========================================================================== Installing files needed by courier-imap-4.0.4: /Volumes/NetBSD/pkg/etc/courier/imapd [/Volumes/NetBSD/pkg/share/examples/courier/imapd.dist] /Volumes/NetBSD/pkg/etc/courier/imapd-ssl [/Volumes/NetBSD/pkg/share/examples/courier/imapd-ssl.dist] /Volumes/NetBSD/pkg/etc/courier/imapd.cnf [/Volumes/NetBSD/pkg/share/examples/courier/imapd.cnf] /Volumes/NetBSD/pkg/etc/courier/pop3d [/Volumes/NetBSD/pkg/share/examples/courier/pop3d.dist] /Volumes/NetBSD/pkg/etc/courier/pop3d-ssl [/Volumes/NetBSD/pkg/share/examples/courier/pop3d-ssl.dist] /Volumes/NetBSD/pkg/etc/courier/pop3d.cnf [/Volumes/NetBSD/pkg/share/examples/courier/pop3d.cnf] =========================================================================== =========================================================================== The following files should be created for courier-imap-4.0.4: /etc/rc.d/courierpops (m=0755) [/Volumes/NetBSD/pkg/share/examples/rc.d/courierpops] /etc/rc.d/courierpop (m=0755) [/Volumes/NetBSD/pkg/share/examples/rc.d/courierpop] /etc/rc.d/courierimaps (m=0755) [/Volumes/NetBSD/pkg/share/examples/rc.d/courierimaps] /etc/rc.d/courierimap (m=0755) [/Volumes/NetBSD/pkg/share/examples/rc.d/courierimap] =========================================================================== ===> Registering installation for courier-imap-4.0.4 Full pathname symlink `/Volumes/NetBSD/pkg/share/courier/imapd' is target of `/Volumes/NetBSD/pkg/sbin/imapd' - adjusting to `../share/courier/imapd' Full pathname symlink `/Volumes/NetBSD/pkg/share/courier/imapd-ssl' is target of `/Volumes/NetBSD/pkg/sbin/imapd-ssl' - adjusting to `../share/courier/imapd-ssl' Full pathname symlink `/Volumes/NetBSD/pkg/share/courier/mkimapdcert' is target of `/Volumes/NetBSD/pkg/sbin/mkimapdcert' - adjusting to `../share/courier/mkimapdcert' Full pathname symlink `/Volumes/NetBSD/pkg/share/courier/mkpop3dcert' is target of `/Volumes/NetBSD/pkg/sbin/mkpop3dcert' - adjusting to `../share/courier/mkpop3dcert' Full pathname symlink `/Volumes/NetBSD/pkg/share/courier/pop3d' is target of `/Volumes/NetBSD/pkg/sbin/pop3d' - adjusting to `../share/courier/pop3d' Full pathname symlink `/Volumes/NetBSD/pkg/share/courier/pop3d-ssl' is target of `/Volumes/NetBSD/pkg/sbin/pop3d-ssl' - adjusting to `../share/courier/pop3d-ssl' courier-imap-4.0.4 requires installed package courier-authlib-0.57 courier-imap-4.0.4 requires installed package courier-maildir-0.51.0 ===> Cleaning for courier-imap-4.0.4 rin@kahori[/usr/pkgsrc/mail/courier-imap]%