develooper Front page | perl.perl5.porters | Postings from April 2000

5.6.0 fails to build on OS/2

Thread Next
From:
Rocco Caputo
Date:
April 27, 2000 15:28
Subject:
5.6.0 fails to build on OS/2
Message ID:
200004272225.SAA20521@mail.netrus.net
-------------------
My configure steps:
-------------------

patch -p1 < os2\diff.configure

sh Configure prefix=d:/usr/lib/perl560 -Dusethreads -Duse5005threads -Duselargefiles

--- Flags That Aren't Default ---

[Ignore the gnupatch and gpatch not found messages in ./hints/os2.sh]

Build a threading perl?  y

Use interpreter-based threads?  n

What libraries to use?  $* -lgdbm -ldb -lcrypt

What optimizer/debugger flag should be used?  $* -g

Any additional cc flags?  $* -DDEBUGGING_MSTATS

Installation prefix to use?  /usr

Any special flags to pass to gcc to create a dynamically loaded library?  $* -g

What is your e-mail address?  troc@netrus.net

Try to use long doubles if available?  y

What pager is used on your system?  /usr/bin/less
File /usr/bin/less doesn't exist.  Use that name anyway?  y

Edit config.sh (signals were not correctly detected):

sig_count='21'
sig_name='ZERO HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM USR1 USR2 CHLD BREAK WINCH '
sig_name_init='"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "EMT", "FPE", "KILL", "BUS", "SEGV", "SYS", "PIPE", "ALRM", "TERM", "USR1", "USR2", "CHLD", "BREAK", "WINCH", 0'
sig_num='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 21 28 '
sig_num_init='0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 28, 0'

-------------------------------------------------------------------
The configure is a little bumpy, but everything was worked around
easily enough.  `make depend` occurs uneventfully.  `make` proceeds
amazingly cleanly up until:
-------------------------------------------------------------------

gcc -DPERL_CORE -c -Zmt -Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. \
  -D_EMX_CRT_REV_=62 -DDEBUGGING -I/usr/local/include \
  -DDEBUGGING_MSTATS -O2 -fomit-frame-pointer -malign-loops=2 \
  -malign-jumps=2 -malign-functions=2 -s -g -Zdll os2.c

os2.c: In function `result':
os2.c:392: `thr' undeclared (first use in this function)
os2.c:392: (Each undeclared identifier is reported only once
os2.c:392: for each function it appears in.)
os2.c: In function `do_spawn_ve':
os2.c:499: `thr' undeclared (first use in this function)
os2.c: In function `do_spawn3':
os2.c:910: `thr' undeclared (first use in this function)
os2.c: In function `do_aspawn':
os2.c:967: `thr' undeclared (first use in this function)
os2.c: In function `Perl_do_exec':
os2.c:1007: argument `thr' doesn't match prototype
proto.h:224: prototype declaration
os2.c: In function `my_syspopen':
os2.c:1037: `thr' undeclared (first use in this function)
os2.c: In function `mod2fname':
os2.c:1307: `thr' undeclared (first use in this function)
os2.c: In function `os2_execname':
os2.c:1389: `thr' undeclared (first use in this function)
os2.c: In function `Xs_OS2_init':
os2.c:2043: `thr' undeclared (first use in this function)

--------------------------------------------------------------------

I've traced the error back through a twisty maze of #defines.  dTHR
is defined as dNOOP at perl.h line 182.  Other macros want something
to declare thr, but it isn't in os2.c.  I can't find the reason why
this isn't a problem for the other source files, but I know it must
be there.

-- Rocco Caputo / troc@netrus.net



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About