home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / mail / mh / 1100 < prev    next >
Encoding:
Text File  |  1992-09-08  |  4.4 KB  |  137 lines

  1. Newsgroups: comp.mail.mh
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!news.cs.hut.fi!cs.hut.fi!sti
  3. From: sti@cs.hut.fi (Sami-Jaakko Tikka)
  4. Subject: Still it won't compile
  5. Message-ID: <STI.92Sep7145744@tahma.cs.hut.fi>
  6. X-Md4-Signature: bbea8715db4db7022a2898ad0db16842
  7. Lines: 123
  8. Sender: usenet@cs.hut.fi (Uutis Ankka)
  9. Reply-To: Sami.Tikka@hut.fi
  10. Organization: Helsinki University of Technology, Finland
  11. Distribution: comp
  12. Date: Mon, 7 Sep 1992 11:57:50 GMT
  13.  
  14.  
  15. First of all, thank you!
  16.  
  17. Couple of kind people pointed out to me that compiling MH with shared
  18. libraries on SunOS requires it to be compiled with /bin/cc, not with
  19. gcc.  The reason being that gcc doesn't grok -pic -option.
  20.  
  21. So now I have the shared library built all right but the problems
  22. start after that.  I get a lot of errors because of undefined symbols.
  23. For example linking mts.o leaves symbol _main undefined.  I tried to
  24. grep the file mts.c for a string 'main' but didn't come up with a
  25. function named main.  Do I have a corrupted distribution or have I
  26. done the configuration wrong?
  27.  
  28. Here are again my conf/MH-configuration file,
  29. conf/config/mtstailor-file and compilation symptoms:
  30.  
  31. (BTW what is the meaning of the 'servers:' line in mtstailor?  Do I
  32. have it ok now?)
  33.  
  34. # For Sun OS 4.* with SendMail, running Yellow Pages, and /etc/named.
  35. # MH will post mail through an SMTP connection to the localhost's
  36. # SendMail daemon.  Be sure to set "servers" in your mtstailor file.
  37. #
  38. #bin    /usr/new/mh
  39. bin     /v/MH-6.7.2/bin
  40. #etc    /usr/new/lib/mh
  41. etc     /v/MH-6.7.2/mh
  42. mail    /usr/spool/mail
  43. manuals    new
  44. editor    prompter
  45. mts    sendmail/smtp
  46. options    BSD42 BSD43 SUN40 SUN41 TYPESIG=void
  47. options    DBM
  48. options BIND
  49. curses    -lcurses -ltermcap
  50. #cc      gcc
  51. ccoptions -O 
  52. ranlib    on
  53. ldoptions -s -O
  54. sharedlib on
  55. slibdir   /usr/lib
  56. #
  57. # include "bbc" support to read NetNews via the NNTP.
  58. #
  59. bboards    nntp
  60. bbdelivery on
  61. bbhome /v/MH-6.7.2/bboards
  62. pop    on
  63. #
  64. # These are optional: 
  65. #
  66. # DUMB      restricts some address defaulting
  67. # RPATHS  don't throw away UNIX "From " lines
  68. # MHE      for Emacs/MH interface
  69. # SBACKUP change to "#" instead of ","
  70. # MSGPROT default messages to 0600 protection mode
  71. #
  72. options    DUMB 
  73. options    RPATHS
  74. options    MHE 
  75. options    SBACKUP='"\\043"'
  76. options    MSGPROT='"0600"'
  77. options FOLDPROT='"0700"'
  78. options ATTVIBUG
  79. options ISI
  80. options LOCKF
  81. options MHRC
  82. options POP2
  83. options UK
  84.  
  85. servers:    localhost \01localnet
  86.  
  87. mmdfldir:    @(MHDROPATH)
  88. mmdflfil:    @(MHDROPFIL)
  89. uucpldir:    /usr/spool/mail
  90. uucplfil:    
  91. mmdelim1:    \001\001\001\001\n
  92. mmdelim2:    \001\001\001\001\n
  93. mmailid:    0
  94. umincproc:
  95. lockldir:
  96.  
  97. hostable:    @(MHETCPATH)/hosts
  98. sendmail:    /usr/lib/sendmail
  99.  
  100. And here is an excerpt from the compilation, after it started to emit
  101. errors:
  102.  
  103. ar r sendmts.a hosts.o smail.o; ranlib sendmts.a
  104. Creating archive file `sendmts.a'
  105. rm -f ../libmts.a
  106. ln sendmts.a ../libmts.a
  107. rm -f ../llib-lmts
  108. ln llib-lsendmail ../llib-lmts
  109. -rw-r--r--   2 sti      user        12518 Sep  7 14:36 sendmts.a
  110. SendMail/SMTP-MTS library built normally
  111. for d in mts bboards tws mf; do (cd $d; make DESTDIR= -k all); done
  112. /bin/cc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -I..   -c mts.c -o mts.o
  113. /bin/cc -s -O  mts.o    -o mts
  114. ld: Undefined symbol 
  115.    _main 
  116. make[2]: *** [mts] Error 2
  117. /bin/cc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -I..   -c lock.c -o lock.o
  118. /bin/cc -s -O  lock.o    -o lock
  119. ld: Undefined symbol 
  120.    _main 
  121.    _lockstyle 
  122.    _lockldir 
  123.    _mts_init 
  124. make[2]: *** [lock] Error 2
  125. /bin/cc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -I..   -c client.c -o client.o
  126. /bin/cc -s -O  client.o    -o client
  127. ld: Undefined symbol 
  128.    _main 
  129.    _servers 
  130. make[2]: *** [client] Error 2
  131. make[2]: Target `all' not remade because of errors.
  132. --
  133. Sami.Tikka@hut.fi                                  "Live Long and Prosper!"
  134. ---------------------------------------------------------------------------
  135. "I think there's a world market for about 5 computers."
  136.         - Thomas J. Watson, Chairman of the Board, IBM (around 1948)
  137.