Subject: Re: compiling config
To: Simon Burge <simonb@wasabisystems.com>
From: Kamal R Prasad <kamalrpr@in.ibm.com>
List: tech-kern
Date: 05/07/2003 07:06:36
------------------------------------------------------------------------------

Kamal R. Prasad
AIX Support & Test, IBM India Software Labs
Golden Enclave, Airport Road, Bangalore-560017, India
Phone : +91-80-5094963,  Internal Ext   : 2963




                                                                                                           
                      Simon Burge                                                                          
                      <simonb@wasabisys        To:       Kamal R Prasad/India/IBM@IBMIN                    
                      tems.com>                cc:       tech-userlevel@netbsd.org, tech-kern@netbsd.org   
                      Sent by:                 Subject:  Re: compiling config                              
                      tech-kern-owner@n                                                                    
                      etbsd.org                                                                            
                                                                                                           
                                                                                                           
                      05/07/2003 06:52                                                                     
                      AM                                                                                   
                                                                                                           



"Kamal R Prasad" wrote:

> Hello,
>  Im trying to compile /usr/sbin/config on AIX 4.3.
> I am using native C compiler, and am getting errors and Im inclined to
> believe its the compiler type but not the code that is causing the
errors.
> does that mean I need gcc to build /usr/sbin/config (as also the kernel)?
> sounds like a rather striongent requirement. if it had been just ANSI C
> compliant -that would have been better,
> I prefer to use the native C compiler because it has better optimizations
> for the target hw.
> thanks

>How are you trying to compile it?  Using build.sh should build a config
>binary (it'll be called nbconfig) and put it on your TOOLDIR.

I have changed Makefile.boot to Makefile (suppose thats what a non-netbsd
platform should do). There is no build.sh in here. I downloaded
config.tar.gz for netbsd-1.6-release.$tar -tvf config.tar gives:-
-----------------------------------------------------------------
drwxr-xr-x 234 125       0 May 30 06:22:42 2002 src/usr.sbin/config
drwxr-xr-x 234 125       0 Dec 19 17:55:03 2002 src/usr.sbin/config/CVS
-rw-rw-r-- 234 125      12 May 03 00:27:10 2003 src/usr.sbin/config/CVS/Tag
-rw-rw-r-- 234 125     947 Jun 02 04:32:05 2002
src/usr.sbin/config/CVS/Entries
-rw-r--r--   0 125      20 Dec 19 17:55:03 2002
src/usr.sbin/config/CVS/Reposito
ry
-rw-r--r-- 234 125      36 Apr 14 04:57:16 2000
src/usr.sbin/config/CVS/Root
-rw-r--r-- 234 125     529 Mar 06 13:26:04 2002
src/usr.sbin/config/Makefile
-rw-r--r-- 234 125    1133 Jan 30 12:06:36 2002
src/usr.sbin/config/Makefile.boo
t
-rw-r--r-- 234 125    5604 Dec 15 12:21:41 2001
src/usr.sbin/config/config.8
-rw-r--r-- 234 125   18317 Feb 13 12:37:47 2002 src/usr.sbin/config/defs.h
-rw-r--r-- 234 125   12898 Jan 30 12:06:37 2002 src/usr.sbin/config/files.c
-rw-r--r-- 234 125   15456 Jan 30 12:06:37 2002 src/usr.sbin/config/gram.y
-rw-r--r-- 234 125    7690 Jan 30 12:06:38 2002 src/usr.sbin/config/hash.c
-rw-r--r-- 234 125   27605 Feb 01 12:21:04 2002 src/usr.sbin/config/main.c
-rw-r--r-- 234 125   10019 Feb 13 12:37:48 2002
src/usr.sbin/config/mkheaders.c
-rw-r--r-- 234 125   11804 Feb 13 12:37:48 2002
src/usr.sbin/config/mkioconf.c
-rw-r--r-- 234 125   12610 Feb 13 12:37:48 2002
src/usr.sbin/config/mkmakefile.c
-rw-r--r-- 234 125    4948 Feb 13 12:37:48 2002
src/usr.sbin/config/mkswap.c
-rw-r--r-- 234 125   14165 Jan 30 12:06:39 2002 src/usr.sbin/config/pack.c
-rw-r--r-- 234 125    7309 Jan 30 12:06:40 2002 src/usr.sbin/config/scan.l
-rw-r--r-- 234 125   27917 Jan 30 12:06:40 2002 src/usr.sbin/config/sem.c
-rw-r--r-- 234 125    3368 Jan 12 18:09:33 2001 src/usr.sbin/config/sem.h
-rw-r--r-- 234 125     407 Jan 12 18:09:33 2001
src/usr.sbin/config/strerror.c
-rw-r--r-- 234 125    7044 Jan 30 12:06:40 2002 src/usr.sbin/config/util.c
------------------------------------------------------------------------
If you can list the procedure to get this working(assuming its not
documented somewhere), that would be great. Also, I managed to build bmake
(BSD make) thinking it is a prerequisite. But  Im missing sys.mk and
bsd.prog.mk. if its available for download somewhere,  pl. let me know.
thanks
-kamal

>Simon.
>--
>Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/