Compiling perl-5.003 on a SCO 3.2 ODT 5 machine 
Author Message
 Compiling perl-5.003 on a SCO 3.2 ODT 5 machine

Hello,

any hints on compiling perl-5.003 on an SCO 3.2 ODT 5 machine? I can
compile miniperl, but it breaks with different error messages,
depending on whether I am using dynamic libraries or not and
some other things.

Please don't suggest using precompiled binaries: I am busily
developing Perl extensions in C and want to be able to run
gdb right from the sources.

Thanks very much,

Jochen



Sat, 27 Mar 1999 03:00:00 GMT  
 Compiling perl-5.003 on a SCO 3.2 ODT 5 machine

: any hints on compiling perl-5.003 on an SCO 3.2 ODT 5 machine? I can
: compile miniperl, but it breaks with different error messages,
: depending on whether I am using dynamic libraries or not and
: some other things.

For openers, use gcc, not the standard SCO cc.  I've never been able
to get perl to pass all its tests using cc.

: Please don't suggest using precompiled binaries: I am busily
: developing Perl extensions in C and want to be able to run
: gdb right from the sources.

You might want to pull the perl-5.003 binaries from our site,
ftp.celestial.com and look at the configuration files.  Building perl
is always an interesting challenge, and a great compiler test.

Bill
--

UUCP:              camco!bill   2835 82nd Avenue S.E. S-100
FAX:           (206) 232-9186   Mercer Island, WA 98040; (206) 947-5591
http://www.celestial.com/
SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?



Sat, 27 Mar 1999 03:00:00 GMT  
 Compiling perl-5.003 on a SCO 3.2 ODT 5 machine

Quote:

> Hello,

> any hints on compiling perl-5.003 on an SCO 3.2 ODT 5 machine?

Use either -O2 for optimization, or none at all.

If you want to use dynamic loading, try the following as a substitute
for the hints/sco.sh

Bill

# sco_3_2_5.sh
#
##############################################################################

# 11 September 1996
#
# This hints files configure dynamic loading for SCO OpenServer Release
5
#  uname -X
#       System = SCO_SV
#       Node = ????????
#       Release = 3.2v5.0.0
#       KernelID = 95/08/08
#       Machine = i80486
#       BusType = ISA
#       Serial = ???????????????
#       Users = 5-user
#       OEM# = 0
#       Origin# = 1
#       NumCPU = 1
#
#
# This file is a modification of sco.sh supplied with Perl 5.003 and had
# the following intro...

#     Additional SCO version info from

#     Last revised
#     Tue Feb 13 09:09:10 EST 1996
#
##############################################################################

# To use gcc, use     sh Configure -Dcc=gcc

# figure out what SCO version we are:
case `uname -X | egrep '^Release'` in
*3.2v4.2) scorls=3 ;;
*3.2v5.*) scorls=5 ;;
*) scorls=3 ;; # this probabaly shouldn't happen
esac

# Try to use libintl.a since it has strcoll and strxfrm
libswanted="intl $libswanted"
# Try to use libdbm.nfs.a since it has dbmclose.
#
if test -f /usr/lib/libdbm.nfs.a ; then
    libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'`
fi
set X $libswanted
shift
libswanted="$*"

# We don't want Xenix cross-development libraries
glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 !
!'`
xlibpth=''

case "$cc" in
gcc)
        ccflags="$ccflags -U M_XENIX"
        optimize="$optimize -O2"
        ;;
scocc)  ;;

*)      # Apparently, SCO's cc gives rather verbose warnings
        # Set -w0 to turn them off.
        case $scorls in
        3) ccflags="$ccflags -W0 -quiet -U M_XENIX" ;;
        5) ccflags="$ccflags -w0 -U M_XENIX" ;;
        esac
        ;;
esac
i_varargs=undef

# If you want to use nm, you'll probably have to use nm -p.  The
# following does that for you:
nm_opt='-p'

# I have received one report that you can't include utime.h in
# pp_sys.c.  Uncomment the following line if that happens to you:
# i_utime=undef

##############################################################################
# Set up dynamic loading - Paul Mahoney
# SCO OpenServer Release 5 only I'm afraid. Don't know about 3.2.4.2

case $scorls in
    3)
        ;;

    5)  ccflags="$ccflags -belf"
        d_dlerror=define
        d_dlopen=define
        usedl=define
        dlsrc=dl_dlopen.xs
        ccdlflags='-W l,-Bexport'
        lddlflags='-G'
        ;;
esac

# Miscellaneous defaults I found to work - Paul Mahoney

case $scorls in
    3)
        ;;

    5)  optimize='-O0'  # I found -O caused perl to dump core!
        case `uname -X | egrep '^Machine'` in
            *386*)      ccflags="$ccflags -Ki386"       ;;
            *486*)      ccflags="$ccflags -Ki486"       ;;
            *pentium*)  ccflags="$ccflags -Kpentium"    ;;
        esac
        ;;
esac



Sun, 28 Mar 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help with compiling perl 4.0.36 under SCO Unix 3.2

2. Compiling on SCO 3.2/4.2

3. Compiling Perl on SCO ODT 3.0

4. Problem compiling perl and oraperl on SCO ODT 5.0

5. HELP: Compiling perl5.003 on SCO OpenServer 5

6. Perl on SCO 3.2

7. Problem building Perl 4.036 on SCO 3.2

8. lib/big failure, Perl 4.035, SCO Unix 3.2 V4

9. Perl Binary wanted (SCO Unix, Rel: 3.2, Ver: 4.2)

10. Failures building 4.perl 036 on SCO 3.2 2

11. Reference problem in perl-4.036 under SCO 3.2 2

12. perl on sco 3.2

 

 
Powered by phpBB® Forum Software