Solaris 8 and gcc Hints
I have installed the MailScanner on a new Solaris 8 system, using gcc.
Fortunately, most of it is painless, however...
Syntax errors when running autoupdate
It will complain about now having run h2ph. However, doing this
merely generates a new (syntax error) message.
As root, do
# cd /usr/include
# /usr/perl5/bin/h2ph -r -l .
Then edit the file /usr/perl5/site_perl/5.005/sun4-solaris/_h2ph_pre.ph
and comment out line 2, which is the first line in the file starting with the word
unless.
Compilation errors installing MIME::Base64
These are due to using gcc instead of the Sun compilers.
- Ensure that your path does contain /usr/local/bin and
/usr/ccs/bin.
- Ensure that your path does not contain /usr/ucb.
- Run the usual perl Makefile.PL command.
- Edit the resulting Makefile:
- Change the definition of CC to be gcc
instead of cc
- Change the definition of LD to be gcc
instead of cc
- Change the definition of CCCDLFLAGS to be -fPIC
instead of -KPIC
- Change the definition of OPTIMIZE to be -O2
instead of -xO3 -xdepend
- Run make, make test and make install.
|