mhコンパイルのページ


まずはソースの展開

% gtar xzvf mh-6.8.3-JP.2c.tar.gz

% cd mh-6.8.3(=$MH)

% gzcat ../MH.6.8.4.patch.gz | patch -p1

% cd ..

% ln -s mh-6.8.3 mh-6.8.3-JP.2c

% gzcat mh-6.8.3+-jp2c+-1.02.patch.gz | patch -p1

いくつかrejファイルができましたが,とりあえず,無視.

% cd $MH/conf/examples

% cp solaris2.sun.com solaris2.sun.com.orig

% vi solaris2.sun.com

% cd ..

% vi Makefile

% make sys5

% ./mhconfig examples/solaris2.sun.com

% cd $MH/

% make clean

% make >& log_make

whatnowsbr.c: In function `sendit':
whatnowsbr.c:810: duplicate case value
whatnowsbr.c:800: this is the first entry for that value
make[1]: *** [whatnowsbr.o] Error 1

% cd uip

% vi whatnowsbr.c(comment out line:810)

% make

mhn.c: In function `user_content':
mhn.c:5913: structure has no member named `mhnsi_init'
mhn.c:5954: structure has no member named `mhnsi_init'
make: *** [mhn.o] Error 1

% vi mhn.c ( change mhnsi_init --> si_int)

% cd $MH

% make

popser.c: In function `apop':
popser.c:739: `LOCK_SH' undeclared (first use this function)
popser.c:739: (Each undeclared identifier is reported only once
popser.c:739: for each function it appears in.)
make: *** [popser.o] Error 1

% cd $MH/support/pop/

LOCKF optionsをつけて,mhconfigしなおし.

% cd $MH/conf/examples/

% vi solaris2.sun.com

% cd $MH/conf/

% make sys5

% ./mhconfig examples/solaris2.sun.com

% cd $MH

% make clean

% make >& log_make2

send.c: In function `main':
send.c:330: duplicate case value
send.c:320: this is the first entry for that value
make[1]: *** [send.o] Error 1

% cd uip

% vi send.c(comment out line 330)

% cd $MH

% make

slocal.c: In function `check_msgid':
slocal.c:1387: `F_LOCK' undeclared (first use this function)
slocal.c:1387: (Each undeclared identifier is reported only once
slocal.c:1387: for each function it appears in.)
make[1]: *** [slocal.o] Error 1

% cd uip

% vi slocal.c( comment out from 1387 to 1380)

% cd $MH

% make

LD_LIBRARY_PATH=../sbr gcc -s -o xmsh msh.o mshcmds.o vmhsbr.o \ picksbr.o scansbr.o dropsbr.o mhlsbr.o trmsbr.o \ ../config/config.o -lmh ../mts/libmts.a ../zotnet/libzot.a ../config/version.o -lnsl -lsocket -lcrypt -lcurses
Undefined first referenced
symbol in file
pop_top msh.o
pop_stat msh.o
response msh.o
pop_list msh.o
pop_set msh.o
pop_retr msh.o
pop_done msh.o
ld: fatal: Symbol referencing errors. No output written to xmsh
make[1]: *** [xmsh] Error 1

これは無視

% make install >& make_install_log

ホームページへ