[comp.lang.perl] Perl under Machi386

nall@sun8.scri.fsu.edu (John Nall) (07/20/90)

Since I just got Machi386 up and running on my 386 system, and
am doing different things to check it out, one of the things I
decided to do was to ftp Perl over from the Sun (checking out
the ftp capability, among other things) and see how well it
would do under Mach.

Things seemed to go pretty well, but when it got to the point
of doing (during the "make") a "ldbm -lm -o perl" I got a couple
of error messages and and *** Exit 1 from make.

The error messages were:

seekdir.o: Undefined symbol _DONT_USE_SEEKDIR_UNDER_MACH referenced
           from text segment
telldir.o: Undefined symbol _DONT-USE-TELLDIR_UNDER_MACH referenced
	   from text segment

Just out of curiousity (in the sense that I'm not particularly
concerned whether Perl runs under Machi386 or not, since I use it
on the Sun anyway), is there an easy way around this??

--
John W. Nall		| Supercomputation Computations Research Institute
nall@sun8.scri.fsu.edu  | Florida State University, Tallahassee, FL 32306
     "Los dioses eran computadores.  ?Que otra cosa podian ser??"

jw@sics.se (Johan Widen) (08/01/90)

>>>>> In article <283@sun13.scri.fsu.edu>, nall@sun8.scri.fsu.edu (John Nall) writes:

nall> Since I just got Machi386 up and running on my 386 system, and
nall> am doing different things to check it out, one of the things I
nall> decided to do was to ftp Perl over from the Sun (checking out
nall> the ftp capability, among other things) and see how well it
nall> would do under Mach.

nall> Things seemed to go pretty well, but when it got to the point
nall> of doing (during the "make") a "ldbm -lm -o perl" I got a couple
nall> of error messages and and *** Exit 1 from make.

nall> The error messages were:

nall> seekdir.o: Undefined symbol _DONT_USE_SEEKDIR_UNDER_MACH referenced
nall>            from text segment
nall> telldir.o: Undefined symbol _DONT-USE-TELLDIR_UNDER_MACH referenced
nall> 	   from text segment

Here is how I got around the problem:

*** doio.c~	Fri Mar 30 19:43:23 1990
--- doio.c	Fri Jul  6 21:33:39 1990
***************
*** 1895,1901 ****
--- 1895,1906 ----
  #endif
  	}
  	break;
+ #if MACH
      case O_TELLDIR:
+     case O_SEEKDIR:
+         goto nope;
+ #else
+     case O_TELLDIR:
  	st[sp] = str_static(&str_undef);
  	str_numset(st[sp], (double)telldir(stio->dirp));
  	break;
***************
*** 1904,1909 ****
--- 1909,1915 ----
  	along = (long)str_gnum(st[sp+1]);
  	(void)seekdir(stio->dirp,along);
  	break;
+ #endif
      case O_REWINDDIR:
  	st[sp] = str_static(&str_undef);
  	(void)rewinddir(stio->dirp);

--
Johan Widen
SICS, PO Box 1263, S-164 28 KISTA, SWEDEN	Internet: jw@sics.se
Tel: +46 8 752 15 32	Ttx: 812 61 54 SICS S	Fax: +46 8 751 72 30

evans@decvaxdec.com (Marc Evans Ultrix Q/A) (08/02/90)

In article <283@sun13.scri.fsu.edu>, nall@sun8.scri.fsu.edu (John Nall) writes:
|> Since I just got Machi386 up and running on my 386 system, and
|> am doing different things to check it out, one of the things I
|> decided to do was to ftp Perl over from the Sun (checking out
|> the ftp capability, among other things) and see how well it
|> would do under Mach.
|> 
|> Things seemed to go pretty well, but when it got to the point
|> of doing (during the "make") a "ldbm -lm -o perl" I got a couple
|> of error messages and and *** Exit 1 from make.
|> 
|> The error messages were:
|> 
|> seekdir.o: Undefined symbol _DONT_USE_SEEKDIR_UNDER_MACH referenced
|>            from text segment
|> telldir.o: Undefined symbol _DONT-USE-TELLDIR_UNDER_MACH referenced
|> 	   from text segment

I have had simular problems under OSF/1 (snap4). I'll see if I can get the
necessary permission to pass the diffs along to this group...

- Marc

===========================================================================
Marc Evans - WB1GRH - evans@decvax.DEC.COM  | Synergytics     (603)635-8876
      Unix and X Software Contractor        | 21 Hinds Ln, Pelham, NH 03076
===========================================================================