build bustage on AIX : macro redefinition in nsJPEGEncoder.h and nsPNGEncoder.h

RESOLVED WONTFIX

Status

()

Core
ImageLib
RESOLVED WONTFIX
9 years ago
8 years ago

People

(Reporter: ul, Unassigned)

Tracking

({platform})

1.8 Branch
Other
AIX
platform
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; AIX 5.1; en-US; rv:1.8.1.16) Gecko/20080711 SeaMonkey/1.1.11
Build Identifier: MOZILLA_1_8_BRANCH

Build is broken in modules/libpr0n/encoders/png/nsPNGEncoder.h and
modules/libpr0n/encoders/jpeg/nsJPEGEncoder.h

defined macro cannot be redefined w/o #undef it

Reproducible: Always

Steps to Reproduce:
1. Compile with IBM VisualAge 6 on AIX

Actual Results:  
Building deps for /home/ulink/Src/mozilla/modules/libpr0n/encoders/png/nsPNGEncoder.cpp
xlC_r -o nsPNGEncoder.o -c  -DMOZILLA_INTERNAL_API -DOSTYPE=\"AIX5.1\" -DOSARCH=\"AIX\" -DBUILD_ID=0000000000  -I../../../../dist/include/xpcom -I../../../../dist/include/gfx -I../../../../dist/include/string -I../../../../dist/include/imglib2 -I../../../../dist/include/png -I../../../../dist/include/zlib -I../../../../dist/include/imgpnge -I../../../../dist/include -I../../../../dist/include/nspr    -I../../../../dist/sdk/include         -DNDEBUG -DTRIMMED -O2 -q32 -qarch=com -qalign=full -qalias=noansi -qlanglvl=stdc99 -qmaxmem=-1   -DMOZILLA_VERSION=\"1.8.1.16\" -DMOZILLA_VERSION_U=1.8.1.16 -DAIX=1 -DHAVE_SYS_INTTYPES_H=1 -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DHAVE_INT16_T=1 -DHAVE_INT32_T=1 -DHAVE_INT64_T=1 -DHAVE_INT64=1 -DHAVE_UINT=1 -DHAVE_UINT_T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BROWSING=1 -DMOZ_URL_CLASSIFIER=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\".mozilla\" -DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_MORK=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DMOZ_ACCESSIBILITY_ATK=1 -DMOZILLA_1_8_BRANCH=1 -DMOZILLA_LOCALE_VERSION=\"1.8.1\" -DMOZILLA_REGION_VERSION=\"1.8.1\" -DMOZILLA_SKIN_VERSION=\"1.8\"  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT /home/ulink/Src/mozilla/modules/libpr0n/encoders/png/nsPNGEncoder.cpp
"/home/ulink/Src/mozilla/modules/libpr0n/encoders/png/nsPNGEncoder.h", line 41.9: 1540-0848 (S) The macro name "NS_DECL_IMGIENCODER" is already defined with a different definition.
"../../../../dist/include/imglib2/imgIEncoder.h", line 124.9: 1540-0425 (I) "NS_DECL_IMGIENCODER" is defined on line 124 of "/home/ulink/Src/mozilla/modules/libpr0n/encoders/png/nsPNGEncoder.cpp".
gmake[5]: *** [nsPNGEncoder.o] Error 1

same compilation error with jpeg/nsJPEGEncoder.cpp

Expected Results:  
build w/o severe warnings
(Reporter)

Comment 1

9 years ago
Created attachment 334111 [details] [diff] [review]
This patch #undefs the macros before they are redefined

Problem is restricted on branch MOZILLA_1_8_BRANCH
Attachment #334111 - Flags: review?(pavlov)
(Reporter)

Updated

9 years ago
Severity: normal → minor
Keywords: platform
Version: unspecified → 1.8 Branch
(Reporter)

Updated

9 years ago
Severity: minor → normal
Flags: blocking1.8.1.18?
Not "blocking" the release, but we'd like to approve the patch when it's reviewed. you might also try bsmedberg as a build reviewer
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.8.1.18?
(Reporter)

Updated

9 years ago
Attachment #334111 - Flags: review?(benjamin)

Updated

9 years ago
Attachment #334111 - Flags: review?(benjamin)
(Reporter)

Updated

9 years ago
Attachment #334111 - Flags: review?(vladimir)
(Reporter)

Comment 3

9 years ago
Any other reviewer possible?
(Reporter)

Comment 4

9 years ago
This is the last patch needed for making Firefox 2.0.0.x / Seamonkey 1.1.x compile out of the box on AIX. So it would be nice to have this safe shot into the final release of Firefox 2.0.
(Reporter)

Updated

8 years ago
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WONTFIX
Attachment #334111 - Flags: review?(vladimir)
Attachment #334111 - Flags: review?(pavlov)
You need to log in before you can comment on or make changes to this bug.