home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / mail / mh / 1102 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  2.8 KB

  1. Path: sparky!uunet!decwrl!concert!duke!khera
  2. From: khera@cs.duke.edu (Vivek Khera)
  3. Newsgroups: comp.mail.mh
  4. Subject: Re: Problems in compiling under SunOS 4.1
  5. Message-ID: <KHERA.92Sep7102901@thneed.cs.duke.edu>
  6. Date: 7 Sep 92 14:29:01 GMT
  7. References: <STI.92Sep7021308@laphroaig.cs.hut.fi>
  8. Sender: news@duke.cs.duke.edu
  9. Distribution: comp
  10. Organization: Duke University CS Dept., Durham, NC
  11. Lines: 55
  12. Nntp-Posting-Host: thneed.cs.duke.edu
  13. In-reply-to: sti@cs.hut.fi's message of 6 Sep 92 23:13:12 GMT
  14. X-Md4-Signature: 2be37b16c61d6250c37536c2419d0108
  15.  
  16. In article <STI.92Sep7021308@laphroaig.cs.hut.fi> sti@cs.hut.fi (Sami-Jaakko Tikka) writes:
  17.  
  18.    I haven't been able to compile MH on my system.  The symptoms are
  19.    included at the end of this message.  Any help would be greately
  20.    appreciated. 
  21.  
  22.    My environment: SunOS Release 4.1.2 (LAPHROAIG) #1: Wed Jul 8 12:48:35 EET DST 1992
  23.    We have NFS and YP and would also like to run POP.  I would also like
  24.    to use shared libraries to make executables smaller.
  25.  
  26. included below is the MH config file i use on our SunOS 4.1.1 setup
  27. here.  i don't use POP, so you'll have to add that.  as for using
  28. shared libraries with gcc, you'll have to edit some of the makefile
  29. templates in the conf/makefiles directory.  basically, the Sun C
  30. compiler uses the -pic option to make position independent code, but
  31. the GNU C compiler uses the -fpic option.  find all instances of the
  32. option -pic in the template makefiles and change them.  then rerun the
  33. config to generate the actual makefiles.  you will also need to find
  34. any -Bdynamic flags used during linking and get rid of them. the
  35. default is to link dynamically (the flag is redundant), and gcc
  36. doesn't understand -Bdynamic.  of course, this all assumes that you
  37. are using gcc version 2.0 or higher.
  38.  
  39. also, since you are running SunOS 4.1.2, you'll need to apply the
  40. patch someone posted last week that fixes a problem with the new way
  41. the dynamic linker works.  i believe that involved moving one file
  42. from the uip directory to the sbr directory or something like that.
  43.  
  44.  
  45. here's my MH config file:
  46.  
  47. # @(#)$Id: MH,v 1.8 1992/08/27 19:24:01 khera Exp $
  48. # for SunOS 4.1
  49. bin    /usr/local/bin/mh
  50. etc    /usr/local/lib/mh
  51. slibdir /usr/local/lib
  52. mail    /usr/spool/mail
  53. mandir    /usr/local/man
  54. manuals    standard
  55. mts    sendmail/smtp
  56. options BSD42 BSD43 SUN40 SUN41 TYPESIG=void
  57. options MHE BIND DBM ZONEINFO ATZ
  58. options MHRC WHATNOW OVERHEAD LOCKF
  59. #only one of the following: DUMB or BERK
  60. options DUMB
  61. #options BERK
  62. sharedlib on
  63. cc gcc
  64. ccoptions -O2
  65. ldoptions -s
  66. --
  67. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  68. Vivek Khera, Gradual Student/Systems Guy  Department of Computer Science
  69. Internet:   khera@cs.duke.edu             Box 90129
  70.             (MIME mail accepted)          Durham, NC 27708-0129 (919)660-6528
  71.