pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bootstraping fails on Solaris 10 (newbie question)



> you're missing the SUNWhea package.
> 
> The list of packages that's necessary to bootstrap and compile stuff on
> my Solaris 10 x86 box is here http://files.erineya.org/sol10x86.txt with
> sun studio 12.
> 
> also had to set up correct paths for the linker and shell.
> 
> # crle -c /var/ld/ld.config -l
> /usr/pkg/lib:/usr/lib:/usr/local/lib:/usr/ccs/lib
> and
> 
> PATH=$PATH:/usr/pkg/bin:/usr/pkg/sbin:/usr/ccs/bin:/usr/local/bin
> export PATH

> > "/usr/include/sys/byteorder.h", line 60: syntax error before or at: 
in_port_t
> > 
> > "/usr/include/sys/byteorder.h", line 65: syntax error before or at: 
in_addr_t
> > 
> > "/usr/include/sys/int_types.h", line 73: identifier redeclared: uint16_t
> > 
> >     current : unsigned short
> > 
> >     previous: int : "/usr/include/sys/byteorder.h", line 60
> > 
> > "/usr/include/sys/int_types.h", line 74: identifier redeclared: uint32_t
> > 
> >     current : unsigned int
> > 
> >     previous: int : "/usr/include/sys/byteorder.h", line 65


Besides checking SUNWhea package, make sure you include in your .c file the 
following files in the order listed below:
#include <sys/int_types.h>
#include <sys/byteorder.h>

If you put byteorder.h first you will get a syntax error before in_port_t and 
in_addr_t error plus an error about redeclaring uint16_t and uint32_t like you 
indicated.

Karla



Home | Main Index | Thread Index | Old Index