zsh-workers
 help / color / mirror / code / Atom feed
* Zsh 4.2.3 and 4.2.4 are built improperly on AMD64 Gentoo Linux version 2005.0
@ 2005-02-11 23:43 Barry.Schwartz
  2005-02-12  0:13 ` Clint Adams
  2005-02-14 13:52 ` Peter Stephenson
  0 siblings, 2 replies; 3+ messages in thread
From: Barry.Schwartz @ 2005-02-11 23:43 UTC (permalink / raw)
  To: zsh-workers

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

Zsh 4.2.3 and 4.2.4 are built improperly on AMD64 Gentoo Linux,
profile 2005.0.  Here's what the configure script shows:

checking where the RLIMIT macros are located... configure: WARNING: RLIMIT MACROS NOT FOUND:  please report to developers
/dev/null
checking if rlim_t is longer than a long... no
checking if the rlim_t is unsigned... yes
checking for rlim_t... yes
checking for limit RLIMIT_AIO_MEM... no
checking for limit RLIMIT_AIO_OPS... no
checking for limit RLIMIT_AS... yes
checking for limit RLIMIT_LOCKS... yes
checking for limit RLIMIT_MEMLOCK... yes
checking for limit RLIMIT_NPROC... yes
checking for limit RLIMIT_NOFILE... yes
checking for limit RLIMIT_PTHREAD... no
checking for limit RLIMIT_RSS... yes
checking for limit RLIMIT_SBSIZE... no
checking for limit RLIMIT_TCACHE... no
checking for limit RLIMIT_VMEM... no
checking for limit RLIMIT_SIGPENDING... yes
checking for limit RLIMIT_MSGQUEUE... yes
checking if RLIMIT_VMEM and RLIMIT_RSS are the same... no
checking if RLIMIT_VMEM and RLIMIT_AS are the same... no


My little workaround is to apply the following patch and run
autoconf.  This doesn't really fix the problem, it just gets zsh built
for me.

--- ORIG/configure.ac   2005-01-12 10:55:06.000000000 +0000
+++ zsh-4.2.3/configure.ac      2005-01-22 06:09:38.567302976 +0000
@@ -1273,6 +1273,7 @@
                    /usr/include/sys/resource.h       dnl
                    /usr/include/bits/resource.h      dnl
                    /usr/include/resourcebits.h       dnl
+                   /usr/include/asm-x86_64/resource.h dnl
                    /dev/null;
 do
   test -f $RESOURCE_H && \




-- 
Barry.Schwartz@chemoelectric.org    http://www.chemoelectric.org
"I have directed that in the future I sign each letter." -- Rumsfeld

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Zsh 4.2.3 and 4.2.4 are built improperly on AMD64 Gentoo Linux version 2005.0
  2005-02-11 23:43 Zsh 4.2.3 and 4.2.4 are built improperly on AMD64 Gentoo Linux version 2005.0 Barry.Schwartz
@ 2005-02-12  0:13 ` Clint Adams
  2005-02-14 13:52 ` Peter Stephenson
  1 sibling, 0 replies; 3+ messages in thread
From: Clint Adams @ 2005-02-12  0:13 UTC (permalink / raw)
  To: Barry.Schwartz; +Cc: zsh-workers

> Zsh 4.2.3 and 4.2.4 are built improperly on AMD64 Gentoo Linux,
> profile 2005.0.  Here's what the configure script shows:

What version of glibc is this?


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

* Re: Zsh 4.2.3 and 4.2.4 are built improperly on AMD64 Gentoo Linux version 2005.0
  2005-02-11 23:43 Zsh 4.2.3 and 4.2.4 are built improperly on AMD64 Gentoo Linux version 2005.0 Barry.Schwartz
  2005-02-12  0:13 ` Clint Adams
@ 2005-02-14 13:52 ` Peter Stephenson
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2005-02-14 13:52 UTC (permalink / raw)
  To: zsh-workers

This uses the same trick for the resource file as for the signal names,
passing the main header through cpp and looking for file names.  It
should make finding the definitions more reliable.

Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.27
diff -u -r1.27 configure.ac
--- configure.ac	4 Feb 2005 16:59:31 -0000	1.27
+++ configure.ac	14 Feb 2005 13:47:51 -0000
@@ -1275,13 +1275,26 @@
 dnl -----------------------------------------------------
 dnl CALL FOR MORE (FEWER?) LOCATIONS:  I've just copied the signal checking.
 AC_CACHE_CHECK(where the RLIMIT macros are located,zsh_cv_path_rlimit_h,
-[for RESOURCE_H in /usr/include/bsd/sys/resource.h   dnl
-                   /usr/include/asm/resource.h	     dnl
-                   /usr/include/linux/resource.h     dnl
-                   /usr/include/sys/resource.h       dnl
-                   /usr/include/bits/resource.h      dnl
-                   /usr/include/resourcebits.h       dnl
-                   /dev/null;
+[dnl Look at the output from the preprocessor.
+dnl Copied from the search for the signal names above.
+echo "#include <sys/resource.h>" >restmp.c
+resourcefile_list="`$CPP restmp.c |
+sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
+       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
+sed 's/\\\\\\\\/\//g' |
+$AWK '{ if (\$1 ~ \"resource\") files[[\$1]] = \$1 }
+  END { for (var in files) print var }'`"
+rm -f restmp.c
+if test -z "$resourcefile_list"; then
+  dnl No list: look at standard places.
+  resourcefile_list="/usr/include/bsd/sys/resource.h
+/usr/include/asm/resource.h
+/usr/include/linux/resource.h
+/usr/include/sys/resource.h
+/usr/include/bits/resource.h
+/usr/include/resourcebits.h"
+fi
+for RESOURCE_H in $resourcefile_list /dev/null;
 do
   test -f $RESOURCE_H && \
   grep '#[ 	]*define[ 	][ 	]*RLIMIT_[A-Z]*[ 	]*[0-9A-Z][0-9]*' $RESOURCE_H > /dev/null && \

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


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

end of thread, other threads:[~2005-02-14 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 23:43 Zsh 4.2.3 and 4.2.4 are built improperly on AMD64 Gentoo Linux version 2005.0 Barry.Schwartz
2005-02-12  0:13 ` Clint Adams
2005-02-14 13:52 ` Peter Stephenson

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