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