On Mon, 6 Nov 1995, Pauline Li wrote:

> 
> A couple of AFS users here at Stanford are getting this on
> during the final steps necessary to load AFS into the kernel.
> 
>    Creating new kernel with AFS extensions...
>    Automatically reconfiguring the operating system.
>    cfe: Error: /var/sysgen/master.c, line 1106: redeclaration of 'inetdomain'; 
>    previous declaration at line 223 in file '/usr/include/netinet/in.h'
>         inetdomain(), ip_stripoptions(), in_cksum(), sysent(), syscallsw(), 
>         ^
>    lboot: cc returned 256--failed
>    ERROR: autoconfig rebuild of kernel failed.
> 
> The rtsymtab.pl script was executed. Has anyone else run into this
> problem? 
> 
> Thanks.
> 
> -- Pauline

I had the same problem around June and logged a problem with Transarc.  
Their reply follows which does work around the problem.  I would suggest 
making sure you have the most recent rtsymtab.pl script. The fix may be 
in it.

- Mike

----------------------------------------------------------------------------
Mike Burns                                                UNIX Systems Group 
[EMAIL PROTECTED]                              Center for Academic Computing 
(814) 863-5606                             The Pennsylvania State University

Michael,

I have some news about the sgi_53 ml problem. We suspect the problem
to be with ip packet filtering (which we do not use in-house). In
particular, the multiple defined symbols are located in ipfilter.o. 

Here is a note from our developer:

Verify the presence of ipfilter by:
1) grep ipfilter /var/sysgen/system/irix.sm
You must see "USE: ipfilter" or "INCLUDE: ipfilter"

2) Check for the presence of the file /var/sysgen/boot/ipfilter.o.

If both of these conditions are true then the afs_rtsymtab.pl script that
we provided does the wrong thing. To fix it, you first run the script, and
then remove the inetdomain() extern definition as explained below. If
either of the above conditions are false then our afs_rtsymtab.pl script
does the right thing. 


You remove inetdomain() from the list of external definitions added for afs
(at the top of the file we add a bunch of about 100 extern definitions
required by afs under one single "extern" declaration. 
        extern time(), vn_rele(), ........
You only need to remove this. Do not delete the reference to inetdomain()
from the rtsymtab[] array!). 

After you do this change there is NO need to do autoconfig. Simply test ml
and see if AFS 3.4 loads. If it does then all is well. 

The unfortunate side effect of the above procedure is that a new kernel is
automatically configured when the machine is rebooted. IRIX is designed
such that if any of the kernel configuration files or objects get modified
it will automatically rebuild the kernel upon the next reboot. Hence
touching rtsymtab file causes the kernel to be automatically rebuilt. As I
said before, I dont know if this is a bad thing or not. I suspect it could
cause problems at some sites. 

--
Can you please verify this is the case and at your site? If this takes
care of the problem, we can fix afs_rtsymtab.pl to check for ipfilter
and do the right thing. Please let me know.

Reply via email to