Updating 2.7 to 2.7-current - error: __warn_references in libcompat

Updating 2.7 to 2.7-current - error: __warn_references in libcompat

Post by Steve William » Wed, 12 Jul 2000 04:00:00



Hi,

I am trying to update 2.7 to 2.7-current ( Monday July 10 ).  On the
"make build", I get an error which appears legitimate:

The system is a pretty plain Intel 486DX280 with 2 x 1 Gig IDE drives.
This system is for my "research", so I can do whatever I want to it.

I am updating the CVS as I type this in, but given that it will take
14 hours to re-compile, I thought I'd post this & see if anyone has
seen it before.

( Actually, I will check out the header files first!! )

----------------------------------------------------------------------
===> lib/libcompat
cc -O2 -DLIBC_SCCS -DSYSLIBC_SCCS -c /usr/src/lib/libcompat/4.1/gtty.c
-o gtty.o
In file included from /usr/include/sys/ioctl.h:88,
                 from /usr/include/sgtty.h:42,
                 from /usr/src/lib/libcompat/4.1/gtty.c:37:
/usr/include/sys/ioctl_compat.h:40: warning: `__warn_references'
redefined
/usr/include/machine/cdefs.h:26: warning: this is the location of the
previous d
efinition
In file included from /usr/src/lib/libcompat/4.1/gtty.c:37:
/usr/include/sgtty.h:46: warning: `struct sgttyb' declared inside
parameter list
/usr/include/sgtty.h:46: warning: its scope is only this definition or
declarati
on, which is probably not what you want.
/usr/include/sgtty.h:47: warning: `struct sgttyb' declared inside
parameter list
----------------------------------------------------------------------

In /usr/include/sys/ioctl_compat.h:40:, the entry reads:
#define __warn_references(sym, msg)

In /usr/include/machine/cdefs.h:26:, the entry reads:
#define __warn_references(sym,msg)      \
        __asm__(".stabs \"" msg "\",30,0,0,0");         \
        __asm__(".stabs \"_" #sym "\",1,0,0,0")

----------------------------------------------------------------------
Here are the steps I went through to get this going:

1.  Install OpenBSD 2.7 via ftp

2.  Installed ( untar'd ) src.tar.gz and srcsys.tar.gz

3.  Compiled GENERIC kernel and installed to ensure that the src files
    were installed properly ( and rebooted )

4.  Updated by CVS using the following steps:


    export CVS_RSH=/usr/bin/ssh
    export CVS_IGNORE_REMOTE_ROOT
    cvs -q up -PAd

5.  Compiled and Installed the gcc 2.95.3 as per the FAQ
    http://www.openbsd.org/faq/upgrade-minifaq.html#6.1

6.  Recompiled GENERIC Kernel and installed ( and rebooted )
    ( to make sure the updated C compiler worked )

7.  make build in the /usr/src directory
    - led to the error above after 14 hours <sigh>

There was one other problem prior to this, but it was so trivial to
resolve,
I am sure it isn't related.

The games/snake had a directory inside of it called snake, and when the
make
(clean?) went through trying to rm -f things, it failed on the
games/snake/snake, saying it's not a file.  I just removed it.

----------------------------------------------------------------------
===> games/snake
rm -f a.out [Ee]rrs mklog core *.core  snake snake.o move.o snscore.o
snake.
move.ln snscore.ln
rm: snake: is a directory
*** Error code 1

Stop in /usr/src/games/snake (line 114 of /usr/share/mk/bsd.prog.mk).
*** Error code 1

Stop in /usr/src/games.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src (line 79 of Makefile).
----------------------------------------------------------------------
Thanks,

        Steve Williams, Calgary, Alberta, Canada
        Genie Computer Systems Inc.