GNU bug report logs - #2366
unexaix.c requires ADDR_CORRECT to build on AIX 5.3 using XL C 10.1

Previous Next

Package: emacs;

Reported by: Criveti Mihai <crivetimihai <at> gmail.com>

Date: Tue, 17 Feb 2009 23:30:02 UTC

Severity: normal

Done: Dan Nicolaescu <dann <at> ics.uci.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2366 in the body.
You can then email your comments to 2366 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2366; Package emacs. (Tue, 17 Feb 2009 23:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Criveti Mihai <crivetimihai <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 17 Feb 2009 23:30:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Criveti Mihai <crivetimihai <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: unexaix.c requires ADDR_CORRECT to build on AIX 5.3 using XL C 10.1
Date: Wed, 18 Feb 2009 01:24:38 +0200
diff unexaix.c.old unexaix.c
60a61,63
> #undef ADDR_CORRECT
> #define ADDR_CORRECT(x) ((int)(x))
>

This error is corrected with the patch above:

cmihai <at> phobos:/home/cmihai/packaging/emacs-cvs/emacs$ make
boot=bootstrap-emacs;                         \
       if [ -x "src/$boot" ]; then boot=""; fi;                   \
       cd lib-src; gmake all                            \
         CC='xlc -q64' CFLAGS='-O3 -qnoansialias -brtl -bexpfull -I
/usr/local/ssl/include -I/usr/local/include -I/opt/freeware/include'
CPPFLAGS='-ma -qmaxmem=4000  ' \
         LDFLAGS='-L/usr/local/ssl/lib -L/usr/local/lib
-L/opt/freeware/lib -bbigtoc' MAKE='gmake' BOOTSTRAPEMACS="$boot"
gmake[1]: Entering directory `/home/cmihai/packaging/emacs-cvs/emacs/lib-src'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/home/cmihai/packaging/emacs-cvs/emacs/lib-src'
boot=bootstrap-emacs;                         \
       if [ -x "src/$boot" ]; then boot=""; fi;                   \
       cd src; gmake all                            \
         CC='xlc -q64' CFLAGS='-O3 -qnoansialias -brtl -bexpfull -I
/usr/local/ssl/include -I/usr/local/include -I/opt/freeware/include'
CPPFLAGS='-ma -qmaxmem=4000  ' \
         LDFLAGS='-L/usr/local/ssl/lib -L/usr/local/lib
-L/opt/freeware/lib -bbigtoc' MAKE='gmake' BOOTSTRAPEMACS="$boot"
gmake[1]: Entering directory `/home/cmihai/packaging/emacs-cvs/emacs/src'
echo "dispnew.o frame.o scroll.o xdisp.o menu.o  window.o charset.o
coding.o category.o ccl.o character.o chartab.o cm.o term.o terminal.o
xfaces.o    emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o
filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o
cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o
data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o
print.o lread.o syntax.o unexaix.o bytecode.o process.o callproc.o
region-cache.o sound.o atimer.o doprnt.o strftime.o intervals.o
textprop.o composite.o md5.o     terminfo.o lastfile.o gmalloc.o
ralloc.o vm-limit.o  mktime.o getloadavg.o "  > buildobj.lst
xlc -q64  -Wl,-bnodelcsect  -L/usr/local/ssl/lib -L/usr/local/lib
-L/opt/freeware/lib -bbigtoc \
          -o temacs  dispnew.o frame.o scroll.o xdisp.o menu.o
window.o charset.o coding.o category.o ccl.o character.o chartab.o
cm.o term.o terminal.o xfaces.o    emacs.o keyboard.o macros.o
keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o
fileio.o dired.o filemode.o cmds.o casetab.o casefiddle.o indent.o
search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o
eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexaix.o
bytecode.o process.o callproc.o region-cache.o sound.o atimer.o
doprnt.o strftime.o intervals.o textprop.o composite.o md5.o
terminfo.o lastfile.o gmalloc.o ralloc.o vm-limit.o  mktime.o
getloadavg.o  \
                 -lrts -lIM -liconv -lbsd -lcurses   -lm
ld: 0711-317 ERROR: Undefined symbol: .ADDR_CORRECT
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[1]: *** [temacs] Error 8
gmake[1]: Leaving directory `/home/cmihai/packaging/emacs-cvs/emacs/src'
gmake: *** [src] Error 2

(Sorry if it's a duplicate, I didn't see my previous mail arrive or on
the list).


There are some other issues with
/home/cmihai/packaging/emacs-cvs/emacs/lisp/international/characters.el
and Japanese that keep it from building, but you can get over those
for the moment by skipping their build.

GNU Emacs 23.0.90.1 (powerpc-ibm-aix5.3.0.0) of 2009-02-18 on phobos

-- 
Mihai Criveti





Reply sent to Dan Nicolaescu <dann <at> ics.uci.edu>:
You have taken responsibility. (Wed, 18 Feb 2009 08:55:15 GMT) Full text and rfc822 format available.

Notification sent to Criveti Mihai <crivetimihai <at> gmail.com>:
bug acknowledged by developer. (Wed, 18 Feb 2009 08:55:15 GMT) Full text and rfc822 format available.

Message #10 received at 2366-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Criveti Mihai <crivetimihai <at> gmail.com>
Cc: 2359-done <at> debbugs.gnu.org, 2366-done <at> debbugs.gnu.org
Subject: Re: bug#2359: Emacs fails to compile on AIX 5.3 with XL C 10.1, due to missing #define ADDR_CORRECT in unexaix.c; patch attached
Date: Wed, 18 Feb 2009 00:49:06 -0800 (PST)
Criveti Mihai <crivetimihai <at> gmail.com> writes:

  > diff unexaix.c.old unexaix.c
  > 60a61,63
  > > #undef ADDR_CORRECT
  > > #define ADDR_CORRECT(x) ((int)(x))
  > >

Thanks.  I checked in a fix.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 18 Mar 2009 14:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.