zsh-users
 help / color / mirror / code / Atom feed
* configure: error: ERROR MACROS NOT FOUND:  please report to developers [PATCH]
@ 2006-05-27 23:02 ` Johann 'Myrkraverk' Oskarsson
  2006-05-28 19:11   ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Johann 'Myrkraverk' Oskarsson @ 2006-05-27 23:02 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

Hi,

Since I'm subscribed to the users mailing list, I'm posting this here.

I've fixed the following configure error on zeta, see:

http://www.yellowtab.com/products/

with the following patch agains 4.2.5.  The RE *may* need or warrant
some further tweakig, but it happens that on Zeta (BeOS) as well as
Haiku, error codes are defined like the following:

#define ESIGPARM                (B_POSIX_ERROR_BASE + 15)

And at least on Haiku, the following can also be seen:

#define ENOMEM             B_NO_MEMORY


Have fun, and I hope you'll incorporate it,


Johann -- working on further tweaks to port zsh

-- 
johann myrkraverk com (you know the drill with the @ and .)
I classify Outlook mail as spam, use something else.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Zeta patch for ZSH --]
[-- Type: text/x-patch, Size: 1387 bytes --]

Common subdirectories: zsh-4.2.5/Completion and zsh-4.2.5-zeta1/Completion
Common subdirectories: zsh-4.2.5/Config and zsh-4.2.5-zeta1/Config
Common subdirectories: zsh-4.2.5/Doc and zsh-4.2.5-zeta1/Doc
Common subdirectories: zsh-4.2.5/Etc and zsh-4.2.5-zeta1/Etc
Common subdirectories: zsh-4.2.5/Functions and zsh-4.2.5-zeta1/Functions
Common subdirectories: zsh-4.2.5/Misc and zsh-4.2.5-zeta1/Misc
Common subdirectories: zsh-4.2.5/Src and zsh-4.2.5-zeta1/Src
Common subdirectories: zsh-4.2.5/StartupFiles and zsh-4.2.5-zeta1/StartupFiles
Common subdirectories: zsh-4.2.5/Test and zsh-4.2.5-zeta1/Test
Common subdirectories: zsh-4.2.5/Util and zsh-4.2.5-zeta1/Util
Common subdirectories: zsh-4.2.5/autom4te.cache and zsh-4.2.5-zeta1/autom4te.cache
diff -uN --exclude-from=zsh-diff-exclude zsh-4.2.5/configure.ac zsh-4.2.5-zeta1/configure.ac
--- zsh-4.2.5/configure.ac	Mon Apr  4 02:48:58 2005
+++ zsh-4.2.5-zeta1/configure.ac	Sat May 27 22:30:41 2006
@@ -1289,7 +1289,7 @@
   dnl Try to make sure it doesn't get confused by files that don't
   dnl have real error definitions in.  Count definitions to make sure.
   nerrs=`test -f $ERRNO_H && \
-  grep '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*[0-9][0-9]*' $ERRNO_H | \
+  grep '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(*[_A-Z0-9][_A-Z0-9]*' $ERRNO_H | \
   wc -l | sed 's/[ 	]//g'`
   test "x$nerrs" != x && test "$nerrs" -ge 7 && break
 done

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

* Re: configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH]
  2006-05-27 23:02 ` configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH] Johann 'Myrkraverk' Oskarsson
@ 2006-05-28 19:11   ` Peter Stephenson
  2006-05-28 21:05     ` Johann 'Myrkraverk' Oskarsson
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2006-05-28 19:11 UTC (permalink / raw)
  To: zsh-users, pws

"Johann 'Myrkraverk' Oskarsson" wrote:
> I've fixed the following configure error on zeta, see:
> 
> http://www.yellowtab.com/products/
> 
> with the following patch agains 4.2.5.  The RE *may* need or warrant
> some further tweakig, but it happens that on Zeta (BeOS) as well as
> Haiku, error codes are defined like the following:
> 
> #define ESIGPARM                (B_POSIX_ERROR_BASE + 15)
> 
> And at least on Haiku, the following can also be seen:
> 
> #define ENOMEM             B_NO_MEMORY
>...
> '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(*[_A-Z0-9][_A-Z0-9]*'

[line stripped to patternt to fit without wrapping.

The current code (4.3) uses an egrep pattern, 

'#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO \()?[0-9]+\)?'

so it looks like yours isn't good enough any more.  Also, since there's
no $ anchor (difficult in general since there may be comments at the end
of the line) the last [_A-Z0-9]* doesn't have any effect on the match,
and it's not clear turning the * into a + would make much difference.

The following covers both cases, but may be too general:

'#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO )?\(?[_A-Z0-9]'

Any further tweaks (from any system)?

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


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

* Re: configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH]
  2006-05-28 19:11   ` Peter Stephenson
@ 2006-05-28 21:05     ` Johann 'Myrkraverk' Oskarsson
  0 siblings, 0 replies; 3+ messages in thread
From: Johann 'Myrkraverk' Oskarsson @ 2006-05-28 21:05 UTC (permalink / raw)
  To: ZSH Users

Peter Stephenson <p.w.stephenson@ntlworld.com> writes:

> The following covers both cases, but may be too general:
>
> '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO )?\(?[_A-Z0-9]'
>

I haven't tried compiling 4.3 (yet) but that RE seems to work on Zeta.

Thank you,

Johann


P.S. The sources on http://zsh.sunsite.dk/Arc/cvs.html are *way* too
old, afaik -- from 2006/06/15.

-- 
johann myrkraverk com (you know the drill with the @ and .)
I classify Outlook mail as spam, please use something else for
private messages.


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

end of thread, other threads:[~2006-05-28 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <johann@myrkraverk.com>
2006-05-27 23:02 ` configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH] Johann 'Myrkraverk' Oskarsson
2006-05-28 19:11   ` Peter Stephenson
2006-05-28 21:05     ` Johann 'Myrkraverk' Oskarsson

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).