Issue379

Title make buildworld fails with up-to-date sourcecode from HEAD
Priority bug Status resolved
Superseder Nosy List schlesinger
Assigned To Keywords

Created on 2006-11-12.12:22:02 by schlesinger, last changed by justin.

Messages
msg1613 (view) Author: justin Date: 2006-11-19.02:27:44
Permanently fixed in:
http://leaf.dragonflybsd.org/mailarchive/commits/2006-11/msg00068.html
msg1579 (view) Author: schlesinger Date: 2006-11-12.16:34:00
Sephe,

thanks, that fixed it ;-)

Thomas
msg1578 (view) Author: swildner Date: 2006-11-12.13:25:01
This seems to happen when you do a buildworld with MACHINE == pc32 
followed by an installworld with MACHINE == i386. 
/usr/include/machine/param.h with the necessary definition doesn't seem 
to get installed then.

I'll commit a check to installworld similar to that done for buildworld 
to ensure that this can't happen.

A quick-and-dirty fix would be to edit makewhatis.c to define MACHINE 
temporarily (see patch). It can be removed then after a successful 
{build,install}world.

Index: makewhatis.c
===================================================================
RCS file: /home/dcvs/src/usr.sbin/makewhatis/makewhatis.c,v
retrieving revision 1.2
diff -u -u -r1.2 makewhatis.c
--- makewhatis.c        16 Jan 2005 04:59:53 -0000      1.2
+++ makewhatis.c        12 Nov 2006 13:13:50 -0000
@@ -1021,6 +1021,10 @@
         whatis_proto = new_sbuf();
         whatis_final = new_sbuf();

+#ifndef MACHINE
+#define MACHINE "pc32"
+#endif
+
         if ((machine = getenv("MACHINE")) == NULL)
                 machine = MACHINE;

Sascha
msg1577 (view) Author: sepherosa Date: 2006-11-12.13:17:00
I assume you have failed to installworld before this compiling error.
If my assuming is correct then add following lines after last #include
... in src/usr.sbin/makewhatis/makewhatis.c:
#ifndef MACHINE
#define MACHINE "pc32"
#endif

Don't forget to nuke it once you have "a whole new world" :-)

BTW, before you installworld, please make sure to:
export MACHINE=pc32
Thank Sascha for this tip :-)

Best Regards,
sephe
msg1576 (view) Author: schlesinger Date: 2006-11-12.12:22:01
Hi,

make buildworld fails with this error message:

mkdep -f .depend -a      /usr/src/usr.sbin/makewhatis/makewhatis.c
echo 
makewhatis: /usr/obj/usr/src/btools_i386/usr/lib/libc.a /usr/obj/usr/src/btools_i386/usr/lib/libz.a 
>> .depend
cc -O -pipe -mtune=pentiumpro   -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls  -c /usr/src/usr.sbin/makewhatis/makewhatis.c
/usr/src/usr.sbin/makewhatis/makewhatis.c: In function `main':
/usr/src/usr.sbin/makewhatis/makewhatis.c:1025: error: `MACHINE' undeclared 
(first use in this function)
/usr/src/usr.sbin/makewhatis/makewhatis.c:1025: error: (Each undeclared 
identifier is reported only once
/usr/src/usr.sbin/makewhatis/makewhatis.c:1025: error: for each function it 
appears in.)
*** Error code 1

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

This is the machine/cpu/arch part of my kernel configuration file:

machine         pc32
machine_arch    i386
cpu             I686_CPU

Thomas
History
Date User Action Args
2006-11-19 02:27:45justinsetpriority: bug
status: chatting -> resolved
messages: + msg1613
2006-11-12 16:34:00schlesingersetmessages: + msg1579
2006-11-12 13:25:01swildnersetmessages: + msg1578
2006-11-12 13:17:00sepherosasetstatus: unread -> chatting
messages: + msg1577
2006-11-12 12:22:02schlesingercreate