zsh-users
 help / color / mirror / code / Atom feed
* Build failures on OpenIndiana 151a
@ 2011-10-15 21:15 Johann 'Myrkraverk' Oskarsson
  2011-10-16  5:24 ` Bart Schaefer
  2011-10-17 17:17 ` Danek Duvall
  0 siblings, 2 replies; 6+ messages in thread
From: Johann 'Myrkraverk' Oskarsson @ 2011-10-15 21:15 UTC (permalink / raw)
  To: Zsh Users

Hi all,

I get the following error (and lots like it) when I try to build zsh,
both 4.3.13 and 4.2.7 on OpenIndiana build 151a.

gmake[2]: Entering directory `/home/johann/build/zsh-4.3.12/Src'
cc -c -I. -I../Src -I../Src -I../Src/Zle -I. -I/usr/include/pcre
-DHAVE_CONFIG_H -m64  -o builtin.o builtin.c
"builtin.epro", line 26: invalid source character: '@'
"builtin.epro", line 26: syntax error before or at: {

Sometimes, and not always, the @{ is not changed to _(( as it should
be.  For those few lines it works to change them manually.
There are also @! to , and I think @> to )) errors.

What is wrong in the build system?  I'm sure it's a "bug" in OI but
since I'm not well versed in shell and build scripts I don't know
where to check really.  If possible I'd like to find the faulty
component in OI and fix it.


Johann


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failures on OpenIndiana 151a
  2011-10-15 21:15 Build failures on OpenIndiana 151a Johann 'Myrkraverk' Oskarsson
@ 2011-10-16  5:24 ` Bart Schaefer
  2011-10-16 13:15   ` Johann 'Myrkraverk' Oskarsson
  2011-10-17 17:17 ` Danek Duvall
  1 sibling, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 2011-10-16  5:24 UTC (permalink / raw)
  To: Johann 'Myrkraverk' Oskarsson, Zsh Users

[This type of question is better directed to the zsh-workers list, but
I'll answer on zsh-users since the question appeared here.]

On Oct 15,  9:15pm, Johann 'Myrkraverk' Oskarsson wrote:
}
} "builtin.epro", line 26: invalid source character: '@'
} "builtin.epro", line 26: syntax error before or at: {
} 
} Sometimes, and not always, the @{ is not changed to _(( as it should
} be.  For those few lines it works to change them manually.
} There are also @! to , and I think @> to )) errors.

The .epro files are generated by Src/makepro.awk, so this is probably
an incompatibility with the OpenIndiana 'awk' program.

Possibly that awk does not implement the gsub() function?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failures on OpenIndiana 151a
  2011-10-16  5:24 ` Bart Schaefer
@ 2011-10-16 13:15   ` Johann 'Myrkraverk' Oskarsson
  2011-10-16 16:52     ` Peter Stephenson
  2011-10-17 16:50     ` Oliver Kiddle
  0 siblings, 2 replies; 6+ messages in thread
From: Johann 'Myrkraverk' Oskarsson @ 2011-10-16 13:15 UTC (permalink / raw)
  To: Zsh Users

Thank you.

On Sun, Oct 16, 2011 at 5:24 AM, Bart Schaefer
<schaefer@brasslantern.com> wrote:
> } Sometimes, and not always, the @{ is not changed to _(( as it should
> } be.  For those few lines it works to change them manually.
> } There are also @! to , and I think @> to )) errors.
>
> The .epro files are generated by Src/makepro.awk, so this is probably
> an incompatibility with the OpenIndiana 'awk' program.
>
> Possibly that awk does not implement the gsub() function?

OpenIndiana comes with gawk 3.1.5.  After compiling and installing
4.0.0 and using that it works.  Trying to ./configure with
AWK=/usr/bin/awk fails in different ways.


Johann


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failures on OpenIndiana 151a
  2011-10-16 13:15   ` Johann 'Myrkraverk' Oskarsson
@ 2011-10-16 16:52     ` Peter Stephenson
  2011-10-17 16:50     ` Oliver Kiddle
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Stephenson @ 2011-10-16 16:52 UTC (permalink / raw)
  To: Zsh Users

On Sun, 16 Oct 2011 13:15:20 +0000
"Johann 'Myrkraverk' Oskarsson" <johann@myrkraverk.com> wrote:
> OpenIndiana comes with gawk 3.1.5.  After compiling and installing
> 4.0.0 and using that it works.  Trying to ./configure with
> AWK=/usr/bin/awk fails in different ways.

I'll note this:

Index: MACHINES
===================================================================
RCS file: /cvsroot/zsh/zsh/MACHINES,v
retrieving revision 1.9
diff -p -u -r1.9 MACHINES
--- MACHINES	6 Aug 2010 15:27:09 -0000	1.9
+++ MACHINES	16 Oct 2011 16:52:13 -0000
@@ -159,6 +159,11 @@ NetBSD: NetBSD 1.x
 OpenBSD: OpenBSD 2.x, 3.x
 	Should build `out-of-the-box'.
 
+OpenIndiana: OpenIndiana 151a
+	Problems have been reported with awk when used to generate
+	prototype files for building zsh.  Upgrading to gawk (GNU awk)
+	version 4.0.0 fixes this.	
+
 SIEMENS: Reliant UNIX
 	[Out of date.]
 

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failures on OpenIndiana 151a
  2011-10-16 13:15   ` Johann 'Myrkraverk' Oskarsson
  2011-10-16 16:52     ` Peter Stephenson
@ 2011-10-17 16:50     ` Oliver Kiddle
  1 sibling, 0 replies; 6+ messages in thread
From: Oliver Kiddle @ 2011-10-17 16:50 UTC (permalink / raw)
  To: Zsh Users

"Johann 'Myrkraverk' Oskarsson" wrote:
> 
> OpenIndiana comes with gawk 3.1.5.  After compiling and installing
> 4.0.0 and using that it works.  Trying to ./configure with
> AWK=/usr/bin/awk fails in different ways.

Have you tried AWK=/usr/bin/nawk.

I'm fairly sure that that solved issues on Solaris for me in the past
and is somewhat less effort than compiling gawk 4.

Oliver


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failures on OpenIndiana 151a
  2011-10-15 21:15 Build failures on OpenIndiana 151a Johann 'Myrkraverk' Oskarsson
  2011-10-16  5:24 ` Bart Schaefer
@ 2011-10-17 17:17 ` Danek Duvall
  1 sibling, 0 replies; 6+ messages in thread
From: Danek Duvall @ 2011-10-17 17:17 UTC (permalink / raw)
  To: Johann 'Myrkraverk' Oskarsson; +Cc: Zsh Users

Johann 'Myrkraverk' Oskarsson wrote:

> I get the following error (and lots like it) when I try to build zsh,
> both 4.3.13 and 4.2.7 on OpenIndiana build 151a.
> 
> gmake[2]: Entering directory `/home/johann/build/zsh-4.3.12/Src'
> cc -c -I. -I../Src -I../Src -I../Src/Zle -I. -I/usr/include/pcre
> -DHAVE_CONFIG_H -m64  -o builtin.o builtin.c
> "builtin.epro", line 26: invalid source character: '@'
> "builtin.epro", line 26: syntax error before or at: {

I can't remember if this was the problem I ran into compiling zsh on
Solaris, but our build explicitly sets LANG=C for the build because at
least my default locale of en_US.UTF-8 makes gawk go bananas.

Danek


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-17 17:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-15 21:15 Build failures on OpenIndiana 151a Johann 'Myrkraverk' Oskarsson
2011-10-16  5:24 ` Bart Schaefer
2011-10-16 13:15   ` Johann 'Myrkraverk' Oskarsson
2011-10-16 16:52     ` Peter Stephenson
2011-10-17 16:50     ` Oliver Kiddle
2011-10-17 17:17 ` Danek Duvall

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).