SUMMARY: Solaris 2.6 and tcpwrappers 7.6

From: Brown, Melissa (BrownM@fhu.disa.mil)
Date: Mon Aug 23 1999 - 14:23:23 CDT


The error
"/opt/FSFgcc/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/param.h:187:
warning: `NBBY' redefined" was trying to alert me to the fact that my make
was using an old version of gcc for solaris 2.5.1
I got an upgrade from the www.sunfreeware.com <http://www.sunfreeware.com> ,
already compiled, and added the package, and I still got the error when I
did the:
# make REAL_DAEMON_DIR=/usr/sbin sunos5
 
Here was my "real" fix (it's always the little things that count!):
The original gcc installation for solaris 2.5.1 had been moved to another
disk when the system was upgraded to sol2.6 and a symbolic link from
/opt/FSFgcc was pointing to it.
The make for the tcpwrappers errored, finding because it was using the gcc
for 2.5.1, even when I had the full path name for the make!
I deleted the link and make another one, pointed the new gcc at /opt/GCC281.
The make for tcpwrappers worked without problems!!
 
I got some great email from people who obviously knew what they were talking
about.
Comments from my rescuers are listed below.
Thanks again, for your time and help. I really do appreciate it.
 
Melissa
 
-----Original Message-----
From: Brown, Melissa
Sent: Friday, August 20, 1999 9:27 AM
To: 'sun-managers@sunmanagers.ececs.uc.edu'
<mailto:'sun-managers@sunmanagers.ececs.uc.edu'>
Subject: Solaris 2.6 and tcpwrappers 7.6
Importance: Low

Is anyone using tcp_wrappers 7.6 on Solaris 2.6/Ultra?
I've searched the archives and can't find anything on it...
 
This is what I'm getting when I do the make:
 
# make REAL_DAEMON_DIR=/usr/sbin sunos5
cc -O -DFACILITY=LOG_MAIL -DHOSTS_ACCESS -DPARANOID -DNETGROUP
-DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
-DSOLARIS_24_GETHOSTBYNAME_BUG -DDAEMON_UMASK=022
-DREAL_DAEMON_DIR=\"/usr/sbin\" -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10
-DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\" -DTLI
-DALWAYS_HOSTNAME -c tcpd.c
In file included from tcpd.c:20:
/opt/FSFgcc/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/param.h:187:
warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous
definition
In file included from /usr/include/sys/stream.h:26,
                 from /usr/include/netinet/in.h:38,
                 from tcpd.c:23:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
*** Error code 1
make: Fatal error: Command failed for target `tcpd.o'
Current working directory /root/tcp_wrappers_7.6
*** Error code 1
make: Fatal error: Command failed for target `sunos5'
 
I'll definately summarize.
Thanks!!!!
Melissa

--------------------------------
tcp_wrappers 7.6 works perfectly on Solaris 2.6. You have a problem with
your
gcc installation. Rebuild gcc and it works. I assume you have the FSF
package
installed and according to the error message the package is compiled for
Solaris 2.5.
--------------------------------
(You are usign a 2.5 gcc for 2.6, this doesn't work)
The solaris FAQ says:
5.9) Why do I get __builtin_va_alist or __builtin_va_arg_incr undefined?
You're using gcc without properly installing the gcc fixed
include files. Or you ran fixincludes after installing gcc
w/o moving the gcc supplied varargs.h and stdarg.h files
out of the way and moving them back again later. This often
happens when people install gcc from a binary distribution.
If there's a tmp directory in gcc's include directory, fixincludes
didn't complete. You should have run "just-fixinc" instead.
Another possible cause is that you're using ``gcc -I/usr/include.''
Reinstall gcc or upgrade to gcc 2.8.0 or later, which doesn't
require a reinstallation after every OS upgrade, if you
run Solaris 2.5 or later.
5.10) When compiling, I get "No DATAMODEL_NATIVE specified"?
There are two typical causes for this; one is compiling with
a bad install of gcc (See 5.9). The other possible cause
is installing BIND 4.x or 8.x header files, e.g., by running
"make install". You can check this with "pkgchk SUNWhea"; if
this returns any errors, you need to recover the damaged include
file from the original installation media.
--- end of excerpt from the FAQ
The most recently posted version of the FAQ is available from
<http://www.wins.uva.nl/pub/solaris/solaris2/>

 
--------------------------------
I've compiled it on Solaris 2.5.1, 2.6, and 7 with no probelms. I am using
gcc
2.8.1 tho, where I see you are using 2.7.2. May want to upgrade gcc and try
again.
--------------------------------
this is the old gcc for solaris 2.5, but you're running on solaris 2.6.
upgrade your gcc to a 2.6, or re-run the fixincludes script in gcc.
--------------------------------
Did you try and configure with the generic unix instead?
is /usr/ccs/bin and /usr/ucb/bin in your path?
--------------------------------
you are using an old version of gcc built for 2.5, get an updated package
for 2.6 from http://www.sunfreeware.com
--------------------------------

Looks like you need to update your gcc version to one that is
compiled for solaris 2.6 ( www.sunfreeware.com <http://www.sunfreeware.com>
).
--------------------------------
Re-install gcc for 2.6.
--------------------------------
any version works but after an OS upgrade you need to run the fix-includes
program (up to 2.7 gcc version).
Since you're upgrading everything, just grab the latest gcc (2.8.1 I think).
--------------------------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:25 CDT