Re: [dev] [9base] compile problem on solaris

From: pancake <pancake_AT_youterm.com>
Date: Fri, 09 Oct 2009 16:18:14 +0200

pancake_AT_suntinel:~$ ggrep -re TIOCNOTTY /usr/include/
/usr/include/sys/ttold.h:#define TIOCNOTTY (tIOC|113)
/* void tty association */
/usr/include/sys/termios.h:#define TIOCNOTTY (tIOC|113)
/* void tty association */

missing include?

didnt check yet..but sys/termios.h is not included from havefork.c

stanio_AT_cs.tu-berlin.de wrote:
> Hi,
>
> For a long time I've wanted to have some lightweight way to publish web
> content (raw/markdown/html) and did some bash/perl stuff in the past, which
> basically worked, but it was pretty ugly ... Werc seems to be exactly what
> I need, so I decided to give it a try. And for that I need to get at least
> 9base to work in the Solaris environment here.
>
> This is what I get from gmake:
>
> % gmake
> [...]
> built mk
> gmake[1]: Leaving directory `/home/stanio/build/9base/mk'
> gmake[1]: Entering directory `/home/stanio/build/9base/rc'
> make[2]: Entering directory `/home/stanio/build/9base/rc'
> CC havefork.c
> cc: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=sparcvis which generates code that does not run on pre UltraSPARC processors
> "havefork.c", line 53: undefined symbol: TIOCNOTTY
> cc: acomp failed for havefork.c
> *** Error code 2
> The following command caused the error:
> cc -fast -xtarget=ultra -D__sun__ -c -I. -DPREFIX="\"/home/pub/share/plan9\"" -I../lib9 -I/home/pub/share/plan9/include -I../lib9 havefork.c
> make: Fatal error: Command failed for target `havefork.o'
> Current working directory /home/stanio/build/9base/rc
> gmake[1]: *** [all] Error 1
> gmake[1]: Leaving directory `/home/stanio/build/9base/rc'
> gmake: *** [all] Error 2
>
> % uname -a
> SunOS hostname 5.10 Generic_141414-10 sun4v sparc SUNW,Sun-Blade-T6320
>
> % cc -V
> cc: Sun C 5.9 SunOS_sparc 2007/05/03
>
> % gmake -v
> GNU Make 3.80
>
> I appreciate any suggestions.
>
>
>
Received on Fri Oct 09 2009 - 14:18:14 UTC

This archive was generated by hypermail 2.2.0 : Fri Oct 09 2009 - 14:24:02 UTC