all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs 22.0.91 Compile/Build bugs on HP-UX 11.23
@ 2006-11-23  3:34 Smith, William
  2006-11-23  5:16 ` Nick Roberts
  0 siblings, 1 reply; 2+ messages in thread
From: Smith, William @ 2006-11-23  3:34 UTC (permalink / 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

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

* Re: emacs 22.0.91 Compile/Build bugs on HP-UX 11.23
  2006-11-23  3:34 emacs 22.0.91 Compile/Build bugs on HP-UX 11.23 Smith, William
@ 2006-11-23  5:16 ` Nick Roberts
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Roberts @ 2006-11-23  5:16 UTC (permalink / raw)
  Cc: emacs-devel

 > 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:
 > ...
 >  
 > 
 > The fix would be:
 > ...

Committed.  Thanks.

-- 
Nick                                           http://www.inet.net.nz/~nickrob

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

end of thread, other threads:[~2006-11-23  5:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-23  3:34 emacs 22.0.91 Compile/Build bugs on HP-UX 11.23 Smith, William
2006-11-23  5:16 ` Nick Roberts

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.