unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Smith, William" <William.Smith@global360.com>
Subject: emacs 22.0.91 Compile/Build bugs on HP-UX 11.23
Date: Wed, 22 Nov 2006 21:34:32 -0600	[thread overview]
Message-ID: <B221FFBE53802D4EB697EE59D657E70B527094@MAILSTORE.corp.ad> (raw)


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

Please do not post my email address!!!

 

I've found several issues when building 22.0.91 on HP-UX 11.23 using
HP's 6.0 ANSI C compiler.  Hope to test Solaris 6 through 10, AIX 4.3
through 5.3, and HP-UX 11.0 soon.

 

The file src/strftime.c has a typo that causes the following compilation
failure:

 

        cc -c  -Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I.
-I/bigfs/emacs/emacs-22.0.91/src       -I/usr/include/X11R6
-I/usr/contrib/X11R6/include    -I/usr/include/X11R6
-I/usr/include/X11R5 -I/usr/include/Motif1.2
-I/usr/contrib/X11R6/include -I/usr/contrib/X11R5/include     -O
strftime.c

cpp: "./s/hpux9.h", line 63: warning 2001: Redefinition of macro
HAVE_PSTAT_GETDYNAMIC.

cc: "strftime.c", line 84: error 1000: Unexpected symbol:
"mbstate_zero".

cc: "strftime.c", line 671: error 1000: Unexpected symbol: "mbstate".

cc: "strftime.c", line 671: error 1588: "mbstate" undefined.

cc: "strftime.c", line 671: error 1588: "mbstate_zero" undefined.

*** Error exit code 1

 

The fix would be:

 

*** strftime.c~ Wed Nov 22 21:28:27 2006

--- strftime.c  Wed Nov 22 21:28:51 2006

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

*** 69,75 ****

  #if DO_MULTIBYTE

  # if HAVE_MBRLEN

  #  include <wchar.h>

! #   ifdef HAVE_SYS__MBSTATE_H /* previously tested __hpux */

  #     include <sys/_mbstate_t.h>

  #   endif

  #  if !defined (mbsinit) && !defined (HAVE_MBSINIT)

--- 69,75 ----

  #if DO_MULTIBYTE

  # if HAVE_MBRLEN

  #  include <wchar.h>

! #   ifdef HAVE_SYS__MBSTATE_T_H       /* previously tested __hpux */

  #     include <sys/_mbstate_t.h>

  #   endif

  #  if !defined (mbsinit) && !defined (HAVE_MBSINIT)

 

 

As you can see above the define HAVE_PSTAT_GETDYNAMIC is defined twice
and always gives a warning as shown here:

 

Creating lib-src/Makefile

cpp: "../src/s/hpux9.h", line 63: warning 2001: Redefinition of macro
HAVE_PSTAT_GETDYNAMIC.

creating src/Makefile

cpp: "s/hpux9.h", line 63: warning 2001: Redefinition of macro
HAVE_PSTAT_GETDYNAMIC.

 

 

Here are the values in the hpux9.h and config.h files:

 

find . -name "*.h" -print | xargs grep HAVE_PSTAT_GETDYNAMIC

./src/s/hpux9.h:#define HAVE_PSTAT_GETDYNAMIC

./src/config.h:#define HAVE_PSTAT_GETDYNAMIC 1

 

 

 

The lib-src/Makefile created blindly copies files over the top of itself
which results in the following error:

 

        cp -p /bigfs/emacs/emacs-22.0.91/lib-src/rcs2log rcs2log

cp: /bigfs/emacs/emacs-22.0.91/lib-src/rcs2log and rcs2log are identical

*** Error exit code 1

 

 

Not sure of the fix here but I just commented out the following 'cp -p'
lines to make the build succeed.

 

rcs2log: $(srcdir)/rcs2log

#       cp -p $(srcdir)/rcs2log rcs2log

rcs-checkin: $(srcdir)/rcs-checkin

#       cp -p $(srcdir)/rcs-checkin rcs-checkin

grep-changelog: $(srcdir)/grep-changelog

#       cp -p $(srcdir)/grep-changelog grep-changelog

vcdiff: $(srcdir)/vcdiff

#       cp -p $(srcdir)/vcdiff vcdiff

 

 

In GNU Emacs 22.0.91.2 (hppa2.0w-hp-hpux11.23, X toolkit)

 of 2006-11-22 on hpj6000

X server distributor `The Cygwin/X Project', version 11.0.60899901

configured using `configure
'--x-includes=/usr/include/X11R6:/usr/contrib/X11R6/include'
'--x-libraries=/usr/lib/X11R6:/usr/contrib/X11R6/lib'
'--with-x-toolkit=athena''

 

Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: C

  locale-coding-system: nil

  default-enable-multibyte-characters: t

 

Major mode: Lisp Interaction

 

Minor modes in effect:

  tooltip-mode: t

  tool-bar-mode: t

  mouse-wheel-mode: t

  menu-bar-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  blink-cursor-mode: t

  unify-8859-on-encoding-mode: t

  utf-translate-cjk-mode: t

  auto-compression-mode: t

  line-number-mode: t

 

Recent input:

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 

<help-echo> <help-echo> <menu-bar> <help-menu> <re

port-emacs-bug>

 

Recent messages:

(/usr/local/bin/emacs -q)

For information about the GNU Project and its goals, type C-h C-p. [2
times]

Loading emacsbug...

Loading regexp-opt...done

Loading emacsbug...done


[-- Attachment #1.2: Type: text/html, Size: 21146 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2006-11-23  3:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-23  3:34 Smith, William [this message]
2006-11-23  5:16 ` emacs 22.0.91 Compile/Build bugs on HP-UX 11.23 Nick Roberts

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=B221FFBE53802D4EB697EE59D657E70B527094@MAILSTORE.corp.ad \
    --to=william.smith@global360.com \
    /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 public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).