all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: Paul Eggert  <eggert@cs.ucla.edu>
Cc: 10677@debbugs.gnu.org
Subject: bug#10677: [Chris Leyon] Re: bug#10677: 24.0.93; missing pathmax.h on Solaris
Date: Thu, 02 Feb 2012 09:49:41 +0800	[thread overview]
Message-ID: <87obti57ii.fsf@gnu.org> (raw)
In-Reply-To: <87y5soxrwz.fsf@gnu.org>


[-- Attachment #0: Type: message/rfc822, Size: 6838 bytes --]

[-- Attachment #1.1: Type: text/plain, Size: 1261 bytes --]

On Wed, Feb 1, 2012 at 03:18, Chong Yidong <cyd@gnu.org> wrote:
> Hi Chris,
>
> Could you try the following patch (from Paul Eggert) and see if it fixes
> your problem?  Please let me know whether it works or not.
>
> (You need to run autoconf again after applying this patch.)
>
> Thanks.

The patch mostly worked.  However, autoconf gave an error about a
"possibly undefined macro" for the new symbol gl_PATHMAX.  I added a
`m4_pattern_allow' command to m4/gl-comp.m4 and that made autoconf
happy.  I am attaching my diff for gl-comp.m4.


After applying the patch & running autoconf, configure, make, the
compilation proceeds further but unfortunately now encounters an error
on the statement `verify (INT_MAX <= PTRDIFF_MAX)'.

gcc -std=gnu99 -c  -Demacs -DHAVE_CONFIG_H  -I.
-I/home/leyon/morocco/emacs-24.0.93/src -I../lib
-I/home/leyon/morocco/emacs-24.0.93/src/../lib
-I/usr/openwin/include     -I/usr/include/libxml2
-Wimplicit-function-declaration -Wold-style-definition
-Wdeclaration-after-statement  -g -O2 alloc.c
alloc.c:766: error: negative width in bit-field `_gl_verify_error_if_negative'
gmake[1]: *** [alloc.o] Error 1
gmake[1]: Leaving directory `/home/leyon/morocco/emacs-24.0.93/src'
gmake: *** [src] Error 2

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: gl-comp.m4.diff --]
[-- Type: text/x-patch; name=gl-comp.m4.diff, Size: 2342 bytes --]

diff -u /home/leyon/morocco/emacs-24.0.93/m4/gl-comp.m4.\~1\~ /home/leyon/morocco/emacs-24.0.93/m4/gl-comp.m4
--- /home/leyon/morocco/emacs-24.0.93/m4/gl-comp.m4.~1~	2011-10-13 20:40:36.000000000 -0400
+++ /home/leyon/morocco/emacs-24.0.93/m4/gl-comp.m4	2012-02-01 10:15:21.056039600 -0500
@@ -65,6 +65,8 @@
   # Code from module mktime:
   # Code from module multiarch:
   # Code from module nocrash:
+  # Code from module pathmax:
+  m4_pattern_allow([^gl_PATHMAX$])
   # Code from module pthread_sigmask:
   # Code from module readlink:
   # Code from module signal-h:
@@ -217,6 +219,7 @@
 gl_UNISTD_H
   gl_gnulib_enabled_dosname=false
   gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
+  gl_gnulib_enabled_pathmax=false
   gl_gnulib_enabled_sigprocmask=false
   gl_gnulib_enabled_stat=false
   gl_gnulib_enabled_strtoll=false
@@ -236,6 +239,13 @@
       gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
     fi
   }
+  func_gl_gnulib_m4code_pathmax ()
+  {
+    if ! $gl_gnulib_enabled_pathmax; then
+gl_PATHMAX
+      gl_gnulib_enabled_pathmax=true
+    fi
+  }
   func_gl_gnulib_m4code_sigprocmask ()
   {
     if ! $gl_gnulib_enabled_sigprocmask; then
@@ -262,6 +272,9 @@
         func_gl_gnulib_m4code_dosname
       fi
       if test $REPLACE_STAT = 1; then
+        func_gl_gnulib_m4code_pathmax
+      fi
+      if test $REPLACE_STAT = 1; then
         func_gl_gnulib_m4code_verify
       fi
     fi
@@ -326,6 +339,7 @@
   m4_pattern_allow([^gl_GNULIB_ENABLED_])
   AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname])
   AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
+  AM_CONDITIONAL([gl_GNULIB_ENABLED_pathmax], [$gl_gnulib_enabled_pathmax])
   AM_CONDITIONAL([gl_GNULIB_ENABLED_sigprocmask], [$gl_gnulib_enabled_sigprocmask])
   AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
   AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoll], [$gl_gnulib_enabled_strtoll])
@@ -502,6 +516,7 @@
   lib/md5.h
   lib/mktime-internal.h
   lib/mktime.c
+  lib/pathmax.h
   lib/pthread_sigmask.c
   lib/readlink.c
   lib/sha1.c
@@ -552,6 +567,7 @@
   m4/mktime.m4
   m4/multiarch.m4
   m4/nocrash.m4
+  m4/pathmax.m4
   m4/pthread_sigmask.m4
   m4/readlink.m4
   m4/sha1.m4

Diff finished.  Wed Feb  1 10:15:34 2012

  parent reply	other threads:[~2012-02-02  1:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-31  7:17 bug#10677: 24.0.93; missing pathmax.h on Solaris Chong Yidong
2012-02-01  6:10 ` Paul Eggert
2012-02-02  1:49 ` Chong Yidong [this message]
2012-02-02  4:52   ` bug#10677: [Chris Leyon] " Paul Eggert
2012-02-05 23:22     ` Chris Leyon
2012-02-27  9:05       ` Chong Yidong
2012-03-02 22:34         ` Chris Leyon
2012-03-03  3:29           ` Paul Eggert
2012-03-03 17:07             ` Chris Leyon
2012-03-04  2:58               ` Paul Eggert
2012-03-04  9:48                 ` Chong Yidong
2012-03-04 18:10                   ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obti57ii.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=10677@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.