Archive: NSIS scons build failure on AIX 5.3


NSIS scons build failure on AIX 5.3
Hello,

We're trying to build NSIS on AIX 5.3 based on instructions found at http://www.xdevsoftware.com/blog/pos...on-Linux-.aspx

We have all the dependencies built and installed.
Specifically, Python-2.7.1 and scons-2.0.1.

The NSIS build of the compiler is failing with the following:

scons: Reading SConscript files ...
Mkdir("build/release/config")
Delete("nsis-20-Jan-2011.cvs")
Delete(".instdist")
Delete(".test")
Using default tools configuration

scons: warning: The build_dir keyword has been deprecated; use the variant_dir k
eyword instead.
File "/u/emanuelp/nsis-2.46-src/SConstruct", line 459, in <module>
Checking for C library gdi32... (cached) no
Checking for C library user32... (cached) no
Checking for C library pthread... (cached) yes
Checking for C library iconv... (cached) yes

scons: warning: The build_dir keyword has been deprecated; use the variant_dir k
eyword instead.
File "/u/emanuelp/nsis-2.46-src/SConstruct", line 543, in <module>

scons: warning: The build_dir keyword has been deprecated; use the variant_dir k
eyword instead.
File "/u/emanuelp/nsis-2.46-src/SConstruct", line 615, in <module>

scons: warning: The build_dir keyword has been deprecated; use the variant_dir k
eyword instead.
File "/u/emanuelp/nsis-2.46-src/SConstruct", line 630, in <module>

scons: warning: The build_dir keyword has been deprecated; use the variant_dir k
eyword instead.
File "/u/emanuelp/nsis-2.46-src/SConstruct", line 674, in <module>
Checking for C library dl... (cached) yes
Checking for C library gdi32... (cached) no
Checking for C library iconv... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library user32... (cached) no
Checking for C++ library cppunit... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
/usr/vacpp/bin/xlC -o build/release/makensis/build.o -c -DNSISCALL= -D_WIN32_IE=
0x0500 -Ibuild/release/config Source/build.cpp
"Source/Platform.h", line 710.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/Platform.h", line 853.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/ResourceEditor.h", line 58.11: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
"Source/ResourceEditor.h", line 90.9: 1540-1404 (W) The parameter "" specified f
or "pragma pack" is not valid.
"Source/DialogTemplate.h", line 104.9: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
/usr/vac/bin/xlc -o build/release/makensis/crc32.o -c -DNSISCALL= -D_WIN32_IE=0x
0500 -Ibuild/release/config Source/crc32.c
"Source/Platform.h", line 710.16: 1506-980 (W) pragma pack() without argument is
not supported.
"Source/Platform.h", line 710.16: 1506-363 (W) Packing boundary must be specifie
d as one of 1, 2, 4, 8 or 16.
"Source/Platform.h", line 710.16: 1506-224 (W) Incorrect pragma ignored.
"Source/Platform.h", line 853.16: 1506-980 (W) pragma pack() without argument is
not supported.
"Source/Platform.h", line 853.16: 1506-363 (W) Packing boundary must be specifie
d as one of 1, 2, 4, 8 or 16.
"Source/Platform.h", line 853.16: 1506-224 (W) Incorrect pragma ignored.
/usr/vacpp/bin/xlC -o build/release/makensis/fileform.o -c -DNSISCALL= -D_WIN32_
IE=0x0500 -Ibuild/release/config Source/fileform.cpp
"Source/exehead/../Platform.h", line 710.11: 1540-1404 (W) The parameter "" spec
ified for "pragma pack" is not valid.
"Source/exehead/../Platform.h", line 853.11: 1540-1404 (W) The parameter "" spec
ified for "pragma pack" is not valid.
/usr/vacpp/bin/xlC -o build/release/makensis/icon.o -c -DNSISCALL= -D_WIN32_IE=0
x0500 -Ibuild/release/config Source/icon.cpp
"Source/Platform.h", line 710.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/Platform.h", line 853.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/ResourceEditor.h", line 58.11: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
"Source/ResourceEditor.h", line 90.9: 1540-1404 (W) The parameter "" specified f
or "pragma pack" is not valid.
/usr/vacpp/bin/xlC -o build/release/makensis/lang.o -c -DNSISCALL= -D_WIN32_IE=0
x0500 -Ibuild/release/config Source/lang.cpp
"Source/Platform.h", line 710.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/Platform.h", line 853.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/ResourceEditor.h", line 58.11: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
"Source/ResourceEditor.h", line 90.9: 1540-1404 (W) The parameter "" specified f
or "pragma pack" is not valid.
"Source/DialogTemplate.h", line 104.9: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
/usr/vacpp/bin/xlC -o build/release/makensis/makenssi.o -c -DNSISCALL= -D_WIN32_
IE=0x0500 -Ibuild/release/config Source/makenssi.cpp
"Source/Platform.h", line 710.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/Platform.h", line 853.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/ResourceEditor.h", line 58.11: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
"Source/ResourceEditor.h", line 90.9: 1540-1404 (W) The parameter "" specified f
or "pragma pack" is not valid.
/usr/vacpp/bin/xlC -o build/release/makensis/manifest.o -c -DNSISCALL= -D_WIN32_
IE=0x0500 -Ibuild/release/config Source/manifest.cpp
"Source/Platform.h", line 710.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/Platform.h", line 853.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
/usr/vacpp/bin/xlC -o build/release/makensis/Plugins.o -c -DNSISCALL= -D_WIN32_I
E=0x0500 -Ibuild/release/config Source/Plugins.cpp
"Source/Platform.h", line 710.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/Platform.h", line 853.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/ResourceEditor.h", line 58.11: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
"Source/ResourceEditor.h", line 90.9: 1540-1404 (W) The parameter "" specified f
or "pragma pack" is not valid.
/usr/vacpp/bin/xlC -o build/release/makensis/ResourceVersionInfo.o -c -DNSISCALL
= -D_WIN32_IE=0x0500 -Ibuild/release/config Source/ResourceVersionInfo.cpp
"Source/Platform.h", line 710.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/Platform.h", line 853.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/ResourceEditor.h", line 58.11: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
"Source/ResourceEditor.h", line 90.9: 1540-1404 (W) The parameter "" specified f
or "pragma pack" is not valid.
/usr/vacpp/bin/xlC -o build/release/makensis/script.o -c -DNSISCALL= -D_WIN32_IE
=0x0500 -Ibuild/release/config Source/script.cpp
"/usr/include/fcntl.h", line 250.9: 1540-0848 (S) The macro name "FOPEN" is alre
ady defined with a different definition.
"Source/util.h", line 72.9: 1540-0425 (I) "FOPEN" is defined on line 72 of "Sour
ce/util.h".
scons: *** [build/release/makensis/script.o] Error 1
scons: building terminated because of errors.



Also, here is the config.log contents:

file $HOME/nsis-2.46-src/SCons/utils.py,line 6:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C library gdi32...
scons: Configure: ".sconf_temp/conftest_0.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_0.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_0.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_0.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_0.c
|
scons: Configure: Building ".sconf_temp/conftest_0" failed in a previous run and
all its sources are up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_0 .sconf_temp/conftest_0.o -lgdi32
|
scons: Configure: (cached) no

scons: Configure: Checking for C library user32...
scons: Configure: ".sconf_temp/conftest_1.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_1.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_1.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_1.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_1.c
|
scons: Configure: Building ".sconf_temp/conftest_1" failed in a previous run and
all its sources are up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_1 .sconf_temp/conftest_1.o -luser32
|
scons: Configure: (cached) no

scons: Configure: Checking for C library pthread...
scons: Configure: ".sconf_temp/conftest_2.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_2.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_2.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_2.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_2.c
|
scons: Configure: ".sconf_temp/conftest_2" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_2 .sconf_temp/conftest_2.o -lpthread

|
scons: Configure: (cached) yes

scons: Configure: Checking for C library iconv...
scons: Configure: ".sconf_temp/conftest_3.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_3.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_3.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_3.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_3.c
|
scons: Configure: ".sconf_temp/conftest_3" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_3 .sconf_temp/conftest_3.o -lpthread
-liconv
|
scons: Configure: (cached) yes


file $HOME/nsis-2.46-src/SCons/utils.py,line 6:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C library dl...
scons: Configure: ".sconf_temp/conftest_4.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_4.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_4.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_4.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_4.c
|
scons: Configure: ".sconf_temp/conftest_4" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_4 .sconf_temp/conftest_4.o -ldl
|
scons: Configure: (cached) yes

scons: Configure: Checking for C library gdi32...
scons: Configure: ".sconf_temp/conftest_5.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_5.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_5.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_5.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_5.c
|
scons: Configure: Building ".sconf_temp/conftest_5" failed in a previous run and
all its sources are up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_5 .sconf_temp/conftest_5.o -ldl -lgd
i32
|
scons: Configure: (cached) no

scons: Configure: Checking for C library iconv...
scons: Configure: ".sconf_temp/conftest_6.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_6.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_6.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_6.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_6.c
|
scons: Configure: ".sconf_temp/conftest_6" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_6 .sconf_temp/conftest_6.o -ldl -lic
onv
|
scons: Configure: (cached) yes

scons: Configure: Checking for C library pthread...
scons: Configure: ".sconf_temp/conftest_7.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_7.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_7.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_7.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_7.c
|
scons: Configure: ".sconf_temp/conftest_7" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_7 .sconf_temp/conftest_7.o -ldl -lic
onv -lpthread
|
scons: Configure: (cached) yes

scons: Configure: Checking for C library user32...
scons: Configure: ".sconf_temp/conftest_8.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_8.c <-
| |
| |
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_8.o" is up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_8.o -c -DNSISCALL= -Ibuild/release/c
onfig .sconf_temp/conftest_8.c
|
scons: Configure: Building ".sconf_temp/conftest_8" failed in a previous run and
all its sources are up to date.
scons: Configure: The original builder output was:
|/usr/vac/bin/xlc -o .sconf_temp/conftest_8 .sconf_temp/conftest_8.o -ldl -lic
onv -lpthread -luser32
|
scons: Configure: (cached) no


file $HOME/nsis-2.46-src/Source/Tests/SConscript,line 114:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C++ library cppunit...
scons: Configure: ".sconf_temp/conftest_9.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_9.cpp <-
| |
| |
| |#include "cppunit/extensions/HelperMacros.h"
| |
| |int
| |main() {
| |
| |return 0;
| |}
| |
|
scons: Configure: Building ".sconf_temp/conftest_9.o" failed in a previous run a
nd all its sources are up to date.
scons: Configure: The original builder output was:
|/usr/vacpp/bin/xlC -o .sconf_temp/conftest_9.o -c -DNSISCALL= -DCOMPRESS_MF_B
T -Ibuild/release/config .sconf_temp/conftest_9.cpp
|
scons: Configure: (cached) no


Any ideas what might be going wrong here?

Thanks,

Frank Grimes

You're not doing anything wrong, there's a name conflict. Try replacing every "FOPEN" in the source code with something else like "NS_FOPEN".


Originally posted by kichik
You're not doing anything wrong, there's a name conflict. Try replacing every "FOPEN" in the source code with something else like "NS_FOPEN".
I did the NS_FOPEN rename and now I'm getting the following error:

/usr/vacpp/bin/xlC -o build/release/makensis/util.o -c -DNSISCALL= -D_WIN32_IE=0
x0500 -Ibuild/release/config Source/util.cpp
"Source/Platform.h", line 710.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/Platform.h", line 853.11: 1540-1404 (W) The parameter "" specified for "
pragma pack" is not valid.
"Source/ResourceEditor.h", line 58.11: 1540-1404 (W) The parameter "" specified
for "pragma pack" is not valid.
"Source/ResourceEditor.h", line 90.9: 1540-1404 (W) The parameter "" specified f
or "pragma pack" is not valid.
"Source/util.cpp", line 96.19: 1540-0274 (S) The name lookup for "__abs" did not
find a declaration.
scons: *** [build/release/makensis/util.o] Error 1
scons: building terminated because of errors.

Does anyone know what the following means?


"Source/util.cpp", line 96.19: 1540-0274 (S) The name lookup for "__abs" did not find a declaration.


Is this a compiler issue, a standard system library conflict issue or a source-level issue?
Should I look at trying to install GCC on AIX?
Would that help any?

It might be missing abs(). Go to line 96 in util.cpp and see if it can be replaced.


I managed to find the equivalent to abs() in the IBM XLC compiler and now it compiles successfully.

However, I get a core dump when running "./makensis --version" so I'm not sure how much progress I've really made. :-(

Am I wasting my time trying to get this working on AIX?
Has nobody else managed to get it working?


I doubt there are a big number of users, but I am pretty sure it has worked before. I added AIX support for some reason :)


I decided to try to get back to this again, so I re-ran "./makensis --version".

Looking at the stack trace in the core dump using DBX doesn't tell me much...

"Segmentation fault in extend_brk at 0xd03515c4 ($t1)
0xd03515c4 (extend_brk+0x20c) 90040004 stw r0,0x4(r4)"

The core file is pretty huge, and googling for "extend_brk" seems to point to running out of memory.
My guess is that it's somehow thrashing and eventually running out of memory.


Can't help much without a full stack trace. But yeah, extend_brk is for memory allocation so something funny must be going there. Maybe just some initialization function not being called. Can be tested by putting malloc() on the very top of main() and seeing if it crashes too.


I decided to try building the latest NSIS from sources (SVN TRUNK 6137) but now I get the following compilation errors:

/usr/vacpp/bin/xlC -o build/release/makensis/build.o -c -DNSISCALL= -D_WIN32_IE=
0x0500 -Ibuild/release/config Source/build.cpp
"/usr/include/tchar.h", line 358.9: 1540-0848 (S) The macro name "_tenviron" is
already defined with a different definition.
"Source/tchar.h", line 141.9: 1540-0425 (I) "_tenviron" is defined on line 141 o
f "Source/tchar.h".
"/usr/include/tchar.h", line 519.9: 1540-0848 (S) The macro name "_istascii" is
already defined with a different definition.
"Source/tchar.h", line 227.9: 1540-0425 (I) "_istascii" is defined on line 227 o
f "Source/tchar.h".
"/usr/include/tchar.h", line 726.9: 1540-0848 (S) The macro name "_tcstok" is al
ready defined with a different definition.
"Source/tchar.h", line 168.9: 1540-0425 (I) "_tcstok" is defined on line 168 of
"Source/tchar.h".
"/usr/include/tchar.h", line 822.9: 1540-0848 (S) The macro name "_T" is already
defined with a different definition.
"Source/tchar.h", line 132.9: 1540-0425 (I) "_T" is defined on line 132 of "Sour
ce/tchar.h".
"/usr/include/tchar.h", line 823.9: 1540-0848 (S) The macro name "_TEXT" is alre
ady defined with a different definition.
"Source/tchar.h", line 133.9: 1540-0425 (I) "_TEXT" is defined on line 133 of "S
ource/tchar.h".
scons: *** [build/release/makensis/build.o] Error 1
scons: building terminated because of errors.


Those problems are probably from the unicode merge.


Originally posted by Anders
Those problems are probably from the unicode merge.
Any chance these will be addressed at some point?

@frankgrimes97: The people that did the port only tested on VS2003 and VS2008 AFAIK

You might have to ifdef out our tchar.h if your configuration already defines that stuff


I wouldn't go for trunk if what you need is AIX. There is nothing there that will improve portability.


Ok, I'm back to trying nsis-2.46.
This time I'm on an AIX 6.1 machine with Python 2.6.2 and GCC 4.4.5.

What's strange is that some of the compilation is still trying to find the IBM xlC compiler (which BTW isn't present on this machine).
However, other parts of the build seem to be picking up GCC just fine.

Attached is the config.log output from running the following build command:


scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all NSIS_CONFIG_CONST
_DATA=no PREFIX=$HOME/nsis-2.46 install-compiler


I'm not familiar with Scons scripts and so far have been unable to force GCC across the board.
Any hints?

I solved my GCC/xlC problems.
Turns out that GCC wasn't installed correctly.

Now I need to fix the following:

g++ -o build/release/makensis/makensis build/release/makensis/build.o build/rele
ase/makensis/clzma.o build/release/makensis/crc32.o build/release/makensis/Dialo
gTemplate.o build/release/makensis/dirreader.o build/release/makensis/fileform.o
build/release/makensis/growbuf.o build/release/makensis/icon.o build/release/ma
kensis/lang.o build/release/makensis/lineparse.o build/release/makensis/makenssi
.o build/release/makensis/manifest.o build/release/makensis/mmap.o build/release
/makensis/Plugins.o build/release/makensis/ResourceEditor.o build/release/makens
is/ResourceVersionInfo.o build/release/makensis/script.o build/release/makensis/
ShConstants.o build/release/makensis/strlist.o build/release/makensis/tokens.o b
uild/release/makensis/util.o build/release/makensis/winchar.o build/release/make
nsis/writer.o build/release/makensis/bzip2/blocksort.o build/release/makensis/bz
ip2/bzlib.o build/release/makensis/bzip2/compress.o build/release/makensis/bzip2
/huffman.o build/release/makensis/7zip/7zGuids.o build/release/makensis/7zip/7zi
p/Common/OutBuffer.o build/release/makensis/7zip/7zip/Common/StreamUtils.o build
/release/makensis/7zip/7zip/Compress/LZ/LZInWindow.o build/release/makensis/7zip
/7zip/Compress/LZMA/LZMAEncoder.o build/release/makensis/7zip/7zip/Compress/Rang
eCoder/RangeCoderBit.o build/release/makensis/7zip/Common/Alloc.o build/release/
makensis/7zip/Common/CRC.o build/release/makensis/zlib/deflate.o build/release/m
akensis/zlib/trees.o
ld: 0711-224 WARNING: Duplicate symbol: .__divdi3
ld: 0711-224 WARNING: Duplicate symbol: .__udivdi3
ld: 0711-224 WARNING: Duplicate symbol: .__umoddi3
ld: 0711-224 WARNING: Duplicate symbol: .__moddi3
ld: 0711-224 WARNING: Duplicate symbol: .__udivmoddi4
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: .iconv_open
ld: 0711-317 ERROR: Undefined symbol: .iconv_close
ld: 0711-317 ERROR: Undefined symbol: .iconv
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_wait
ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_signal
ld: 0711-317 ERROR: Undefined symbol: .pthread_create
ld: 0711-317 ERROR: Undefined symbol: .pthread_detach
ld: 0711-317 ERROR: Undefined symbol: .pthread_join
ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
collect2: ld returned 8 exit status
scons: *** [build/release/makensis/makensis] Error 1
scons: building terminated because of errors.

Ok, I got it to compile with GCC... but once again I get a core dump when running "./makensis --version".


For what it's worth, here's the core dump stack trace:


dbx makensis core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...

Segmentation fault in malloc_y at 0xd01401b0 ($t1)
0xd01401b0 (malloc_y+0x590) 7cba85aa stswi r5,r26,0x10
(dbx) where
malloc_y(0x2c, 0x0, 0xf14c0d78, 0xf1456c58, 0x3, 0x6c696200, 0x65, 0x271bcb30) a
t 0xd01401b0
malloc_common@AF103_86(??) at 0xd012a448
malloc(??) at 0xd012a1f0
strdup@AF5_3(??) at 0xd02086dc
_Z10my_convertPKc(??) at 0x10002210
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x10002350
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
_Z11my_NS_FOPENPKcS0_(??, ??) at 0x1000235c
(dbx)