compile UNP source code under SunOS 5.6

compile UNP source code under SunOS 5.6

Post by outsid » Wed, 04 Aug 1999 04:00:00



I got the following errors:

gcc -g -O2 -D_REENTRANT -Wall -D__EXTENSIONS__  -c  connect_nonb.c
In file included from /usr/include/sys/turnstile.h:12,
                 from /usr/include/sys/t_lock.h:20,
                 from /usr/include/sys/vnode.h:37,
                 from /usr/include/sys/stream.h:21,
                 from /usr/include/netinet/in.h:38,
                 from unp.h:17,
                 from connect_nonb.c:1:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/param.h:185:
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 unp.h:17,
                 from connect_nonb.c:1:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
*** Error code 1
make: Fatal error: Command failed for target `connect_nonb.o'

Anybody has done this before?

Thanks.

LJ

 
 
 

compile UNP source code under SunOS 5.6

Post by Frank Pilhof » Thu, 05 Aug 1999 04:00:00



> /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/param.h:185:
> warning: `NBBY' redefined
> /usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"

> Anybody has done this before?

 It's not a problem with the code but with your compiler setup. You
compiled gcc for Solaris 2.4 and then upgraded to Solaris 2.6, and
now there are header file clashes. You need to reinstall gcc.

        Frank

--

 |                                      http://www.uni-frankfurt.de/~fp/ |
 +---- Life would be a very great deal less weird without you.  - DA ----+

 
 
 

compile UNP source code under SunOS 5.6

Post by outsid » Thu, 05 Aug 1999 04:00:00


/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/param.h:185:

Quote:>> warning: `NBBY' redefined
>> /usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"

>> Anybody has done this before?

> It's not a problem with the code but with your compiler setup. You
>compiled gcc for Solaris 2.4 and then upgraded to Solaris 2.6, and
>now there are header file clashes. You need to reinstall gcc.

> Frank

Well actually I did not do that. I am not the administrator and I believe
the administrator do not want to reinstall gcc. Giving the situation as
mine, is there any way to compile the UNP code ?

Thanks.

LiJia Jin

 
 
 

1. SunOs 5.6 - Compiling Pre-ANSI code in C++

I am on SunOS 5.6. I am compiling some C++ code which includes many
header files having function declarations in pre-ANSI style. The C++
compiler is not accepting these and gives errors. Is there an option
which makes the compiler accept these function declarations.

Regards,
Mohan.

2. Line gone ?????

3. NCFTP compiled for SUNOS 5.6

4. Can't boot from reiserfs root fs

5. Problems compiling Apache under SunOS 5.6

6. i486 I/O access

7. rsh won't work on SunOS 5.5.1 to SunOS 5.6

8. Problem linking NetHack

9. CDE: 1.0.1 (SunOS 5.5.1) vs 1.1 (SunOS 5.6)

10. Reading "raw" Disks w/ Gnat on SunOS 5.6

11. Log Files SunOS 5.6

12. buffer overflow in sparc sunOS 5.6

13. SunOS 5.6 - resource limits and question about ISS patch