Compiling on DG-UX. 5.001 
Author Message
 Compiling on DG-UX. 5.001

Just downloaded Perl-5.001, ran configure -d and make:

        `sh  cflags libperl.a pp_sys.o`  pp_sys.c
          CCCMD =  gcc -c -D_POSIX_SOURCE -D_DGUX_SOURCE -O
pp_sys.c: In function `dooneliner':
pp_sys.c:2341: `sys_nerr' undeclared (first use this function)
pp_sys.c:2341: (Each undeclared identifier is reported only once
pp_sys.c:2341: for each function it appears in.)

Hmm... defined sys_nerr in pp_sys.c to 1:

  #define sys_nerr 1

Make again...

        gcc   -o miniperl miniperlmain.o libperl.a -ldgc -lnsl -ldbm -ldl -lld
-lc -lposix -lcrypt -lPW
undefined                       first referenced
 symbol                             in file
_pow                                libperl.a[pp.o]
_atan2                              libperl.a[pp.o]
_sin                                libperl.a[pp.o]
_cos                                libperl.a[pp.o]
_exp                                libperl.a[pp.o]
_log                                libperl.a[pp.o]
_sqrt                               libperl.a[pp.o]
_do_aspawn                          libperl.a[pp_sys.o]
_do_spawn                           libperl.a[pp_sys.o]
ld fatal: Symbol referencing errors. No output written to miniperl
*** Error code 1

Stop.

Oh... It looks like it want a  -lm  too:

        gcc   -o miniperl miniperlmain.o libperl.a -ldgc -lnsl -ldbm -ldl -lld
-lc -lposix -lcrypt -lPW -lm

undefined                       first referenced
 symbol                             in file
_do_aspawn                          libperl.a[pp_sys.o]
_do_spawn                           libperl.a[pp_sys.o]
ld fatal: Symbol referencing errors. No output written to miniperl

Well, it _helped_ but it didn't quite solve the matter. In pp_sys.c it
appears as if DG-UX does not have fork, which cannot be true (Is it
UNIX or is it not?). So I defined  HAS_FORK  in config.h:

#define HAS_FORK                /**/  

(BTW. I also tried using the VFORK)

Now make again:

[...]
        sh mv-if-diff tmp lib/Config.pm
File lib/Config.pm not changed.
        AutoSplitting perl library
AutoSplitting Text::ParseWords (lib/auto/Text/ParseWords)
Unsupported directory function "opendir" called at lib/AutoSplit.pm
line 195.
*** Error code 2

Stop.

NOW I am stuck.

For you info:

  uname -a

  dgux ngs460 5.4R3.10 generic AViiON mc88110

The compilation also complains about:

pp_sys.c:2942: warning: passing arg 1 of `time' from incompatible pointer type

This goes for all kinds of  time  structs.


/Ole

--
Someday the moon will be owned by MD.
                                     -- me



Fri, 09 Jan 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. 5.001 won't compile on hp-ux

2. Help!!! DG/UX Compile Problem

3. Anyone Successfully compiled 5.004_4 on DG/UX?

4. DG/UX perl5.004_4 compile problem

5. Problem Compiling Perl5.001n on DG-UX

6. HP-UX Perl 5.001 installation problem

7. Perl 5.001 on HP-UX, AutoSplit crash

8. Help: perl 5.001 on HP-UX

9. perl ships with DG/UX 5.4R3.00

10. Diffs for DG/UX

11. sybperl installation problem on DG/UX

12. problems with perl under dg/ux

 

 
Powered by phpBB® Forum Software