[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

2357.0. "Question regarding V4.0/V3.2 problem" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Mon Jun 24 1996 18:36

Date Of Receipt: 	24-JUN-1996 16:48:29.42
From: 	WASTED::bagley "Dick Bagley USG"
To: 	odehelp@DEC:.zko.wasted
CC: 	bagley@DEC:.zko.wasted
Subj: 	Question regarding V4.0/V3.2 problem

Hi -

  I'm running Digital UNIX V4.0 on my workstation, and am attempting to build
  a v32de2supportos sandbox on it backed against v32de2supportos.bightly. "build
  setup" fails as shown below. "build setup" runs OK on another workstation
  running V3.2C for a sandbox backed against v32de2supportos.nightly.

  Any idea what gives ? Looks like a compiler compatability problem. Don't I
  inherit the compiler from the tools associated with the backing tree, or is
  cc run locally from my workstation (which would explain it) ? A similar
  problem must have existed during V4.0 development. Is there a simple
  workaround ?

  Thanks for any help.

- dick bagley
  UHS_IO
  1-0319

[ /kernel/src/mkdata ]
makepath mkdata/. && cd mkdata &&  exec make 'RELEASE_OPTIONS=-idfile usr/bin/cc   -EL -c  -DBSD44 -DMSG  -D__WCHAR_T_LEN=4 -Wf,-wchar32  -DMACH -DCMU -DOSF  -
Dalpha -D__alpha__ -D__alpha  -Dunix -D__unix__      -O2 -Olimit 5000    -DCMU -D_NO_PROTO -Dconst=      /usr/include  ../../../../../src/kernel/src/mkdata/mkdata.c
cc: Error: /usr/include/string.h, line 164: In the declaration of "__R", a function may not return a function type.
extern char    * __R(basename) __((char  *));
-----------------^
cc: Warning: /usr/include/string.h, line 164: In the declaration of "__R", a function declarator has an identifier list but is not p
art of a function definition.  Extraneous parameter names are ignored.
extern char    * __R(basename) __((char  *));
-----------------^
cc: Error: /usr/include/string.h, line 165: In the declaration of "__R", a function may not return a function type.
extern char    * __R(dirname) __((char  *));
-----------------^
cc: Warning: /usr/include/string.h, line 165: In the declaration of "__R", a function declarator has an identifier list but is not p
art of a function definition.  Extraneous parameter names are ignored.
extern char    * __R(dirname) __((char  *));
-----------------^
cc: Error: /usr/include/stdlib.h, line 169: In the declaration of "__R", a function may not return a function type.
extern long     __R(a64l) __((const char *));
----------------^
cc: Warning: /usr/include/stdlib.h, line 169: In the declaration of "__R", a function declarator has an identifier list but is not p
art of a function definition.  Extraneous parameter names are ignored.
extern long     __R(a64l) __((const char *));
----------------^
cc: Error: /usr/include/stdlib.h, line 170: In the declaration of "__R", a function may not return a function type.
extern char     * __R(l64a) __((long));
------------------^
cc: Warning: /usr/include/stdlib.h, line 170: In the declaration of "__R", a function declarator has an identifier list but is not p
art of a function definition.  Extraneous parameter names are ignored.
extern char     * __R(l64a) __((long));
------------------^
cc: Error: /usr/include/stdlib.h, line 171: In the declaration of "__R", a function may not return a function type.
extern int      __R(ttyslot) __((void));
----------------^
cc: Warning: /usr/include/stdlib.h, line 171: In the declaration of "__R", a function declarator has an identifier list but is not p
art of a function definition.  Extraneous parameter names are ignored.
extern int      __R(ttyslot) __((void));
----------------^
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

T.RTitleUserPersonal
Name
DateLines
2357.1Re: Question regarding V4.0/V3.2 problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckMon Jun 24 1996 18:37131
Date Of Receipt: 	24-JUN-1996 16:55:06.43
From: 	FLUME::"[email protected]" "24-Jun-1996 1653"
To: 	Dick Bagley USG <[email protected]>
CC: 	[email protected], [email protected], [email protected]
Subj: 	Re: Question regarding V4.0/V3.2 problem
Yup. And here's a summary of the problem and two solutions from Fred: 	

Needs to be fixed in all the 3.2 support pools.


__________
As you know I had trouble building a sandbox backed by hw6os.bl6 on
my workstation running V4.0. The errors were in three files:
	src/kernel/src/mkdata/mkdata.c
	src/kernel/src/mkeisadata/mkeisadata.c
	src/kernel/src/mktcdata/mktcdata.c

The errors were caused by mixing and matching problems with the string.h
header file. These error should be fixed before UHS developers convert
their workstations to V4.0 and encounter them. There are two options
for fixing this:

1) Remove the #include of string.h and stdlib.h from the above files.
   They build if these #includes are removed.

2) Modify the Makefile for the above .c files as follows:

	41c41
	< INCFLAGS              = -I/usr/include -I../../include
	---
	> INCFLAGS              = -I../../include -I/usr/include

Searching /usr/include first makes sure the compiler sees the matching
version of the header files (i.e., the ones from the build machine).
Option 2 seems cleaner to me.

Fred
___________________________






| Hi -
| 
|   I'm running Digital UNIX V4.0 on my workstation, and am attempting to build
|   a v32de2supportos sandbox on it backed against v32de2supportos.bightly. "bu
ild
|   setup" fails as shown below. "build setup" runs OK on another workstation
|   running V3.2C for a sandbox backed against v32de2supportos.nightly.
| 
|   Any idea what gives ? Looks like a compiler compatability problem. Don't I
|   inherit the compiler from the tools associated with the backing tree, or is
|   cc run locally from my workstation (which would explain it) ? A similar
|   problem must have existed during V4.0 development. Is there a simple
|   workaround ?
| 
|   Thanks for any help.
| 
| - dick bagley
|   UHS_IO
|   1-0319
| 
| [ /kernel/src/mkdata ]
| makepath mkdata/. && cd mkdata &&  exec make 'RELEASE_OPTIONS=-idfile usr/bin
/cc   -EL -c  -DBSD44 -DMSG  -D__WCHAR_T_LEN=4 -Wf,-wchar32  -DMACH -DCMU -DOSF
  -
| Dalpha -D__alpha__ -D__alpha  -Dunix -D__unix__      -O2 -Olimit 5000    -DCM
U -D_NO_PROTO -Dconst=      /usr/include  ../../../../../src/kernel/src/mkdata/
mkdata.c
| cc: Error: /usr/include/string.h, line 164: In the declaration of "__R", a fu
nction may not return a function type.
| extern char    * __R(basename) __((char  *));
| -----------------^
| cc: Warning: /usr/include/string.h, line 164: In the declaration of "__R", a 
function declarator has an identifier list but is not p
| art of a function definition.  Extraneous parameter names are ignored.
| extern char    * __R(basename) __((char  *));
| -----------------^
| cc: Error: /usr/include/string.h, line 165: In the declaration of "__R", a fu
nction may not return a function type.
| extern char    * __R(dirname) __((char  *));
| -----------------^
| cc: Warning: /usr/include/string.h, line 165: In the declaration of "__R", a 
function declarator has an identifier list but is not p
| art of a function definition.  Extraneous parameter names are ignored.
| extern char    * __R(dirname) __((char  *));
| -----------------^
| cc: Error: /usr/include/stdlib.h, line 169: In the declaration of "__R", a fu
nction may not return a function type.
| extern long     __R(a64l) __((const char *));
| ----------------^
| cc: Warning: /usr/include/stdlib.h, line 169: In the declaration of "__R", a 
function declarator has an identifier list but is not p
| art of a function definition.  Extraneous parameter names are ignored.
| extern long     __R(a64l) __((const char *));
| ----------------^
| cc: Error: /usr/include/stdlib.h, line 170: In the declaration of "__R", a fu
nction may not return a function type.
| extern char     * __R(l64a) __((long));
| ------------------^
| cc: Warning: /usr/include/stdlib.h, line 170: In the declaration of "__R", a 
function declarator has an identifier list but is not p
| art of a function definition.  Extraneous parameter names are ignored.
| extern char     * __R(l64a) __((long));
| ------------------^
| cc: Error: /usr/include/stdlib.h, line 171: In the declaration of "__R", a fu
nction may not return a function type.
| extern int      __R(ttyslot) __((void));
| ----------------^
| cc: Warning: /usr/include/stdlib.h, line 171: In the declaration of "__R", a 
function declarator has an identifier list but is not p
| art of a function definition.  Extraneous parameter names are ignored.
| extern int      __R(ttyslot) __((void));
| ----------------^
| *** Exit 1
| Stop.
| *** Exit 1
| Stop.
| *** Exit 1
| Stop.
| *** Exit 1
| Stop.

-- 

				-Grant