The core dump is ok, when it happened whilst trying for alignment of your architecture. The duma_config.h should be written. Just continue with [g]make!
And report if you were successful / or not!
Hayati Aygn
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well it then goes on to give me compile errors which is why I was wondering if anyone had done a Solaris build:
g++ -g -O0 -c dumapp.cpp -o dumapp.o
In file included from dumapp.cpp:39:
dumapp.h:181: warning: ANSI C++ forbids declaration `DUMA_Magic' with no type or storage class
dumapp.h:181: variable-size type declared outside of any function
dumapp.h:181: conflicting types for `int DUMA_Magic[2]'
dumapp.h:135: previous declaration as `int DUMA_Magic[256]'
dumapp.h:181: invalid initializer
dumapp.h:181: stray '\' in program
dumapp.h:182: warning: ANSI C++ forbids declaration `DUMA_DeleteFile' with no type or storage class
dumapp.h:182: variable-size type declared outside of any function
dumapp.h:182: conflicting types for `int DUMA_DeleteFile[2]'
dumapp.h:136: previous declaration as `const char * DUMA_DeleteFile[256]'
dumapp.h:182: invalid initializer
dumapp.h:182: stray '\' in program
dumapp.h:183: warning: ANSI C++ forbids declaration `DUMA_DeleteLine' with no type or storage class
dumapp.h:183: variable-size type declared outside of any function
dumapp.h:183: conflicting types for `int DUMA_DeleteLine[2]'
dumapp.h:137: previous declaration as `int DUMA_DeleteLine[256]'
dumapp.h:183: invalid initializer
dumapp.h:183: stray '\' in program
dumapp.h:184: warning: ANSI C++ forbids declaration `DUMA_Magic' with no type or storage class
dumapp.h:184: variable-size type declared outside of any function
dumapp.h:184: redefinition of `int DUMA_Magic[2]'
dumapp.h:181: `int DUMA_Magic[2]' previously defined here
dumapp.h:184: stray '\' in program
dumapp.h:185: warning: ANSI C++ forbids declaration `DUMA_Magic' with no type or storage class
dumapp.h:185: variable-size type declared outside of any function
dumapp.h:185: redefinition of `int DUMA_Magic[2]'
dumapp.h:181: `int DUMA_Magic[2]' previously defined here
dumapp.h:185: invalid initializer
dumapp.h:185: stray '\' in program
dumapp.h:186: stray '\' in program
dumapp.h:187: new declaration `int DUMA_rel_sem()'
sem_inc.h:37: ambiguates old declaration `void DUMA_rel_sem()'
dumapp.h:187: parse error before `)'
dumapp.h:187: stray '\' in program
dumapp.cpp:49: conflicting types for `int DUMA_Magic[256]'
dumapp.h:185: previous declaration as `int DUMA_Magic[2]'
dumapp.cpp:50: conflicting types for `const char * DUMA_DeleteFile[256]'
dumapp.h:182: previous declaration as `int DUMA_DeleteFile[2]'
dumapp.cpp:50: `unknown_cxx_file' was not declared in this scope
dumapp.cpp:51: conflicting types for `int DUMA_DeleteLine[256]'
dumapp.h:183: previous declaration as `int DUMA_DeleteLine[2]'
dumapp.cpp:89: warning: `always_inline' attribute directive ignored
dumapp.cpp: In function `void * operator new(unsigned int)':
dumapp.cpp:191: `unknown_cxx_file' undeclared (first use this function)
dumapp.cpp:191: (Each undeclared identifier is reported only once
dumapp.cpp:191: for each function it appears in.)
dumapp.cpp: In function `void * operator new(unsigned int, const struct nothrow_t &)':
dumapp.cpp:202: `unknown_cxx_file' undeclared (first use this function)
dumapp.cpp: In function `void * operator new [](unsigned int)':
dumapp.cpp:246: `unknown_cxx_file' undeclared (first use this function)
dumapp.cpp: In function `void * operator new [](unsigned int, const struct nothrow_t &)':
dumapp.cpp:257: `unknown_cxx_file' undeclared (first use this function)
make: *** [dumapp.o] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was wondering if DUMA has been built successfully under Solaris? I tried to build it and it core dumped on createconf so I didn't get far.
The core dump is ok, when it happened whilst trying for alignment of your architecture. The duma_config.h should be written. Just continue with [g]make!
And report if you were successful / or not!
Hayati Aygn
Well it then goes on to give me compile errors which is why I was wondering if anyone had done a Solaris build:
g++ -g -O0 -c dumapp.cpp -o dumapp.o
In file included from dumapp.cpp:39:
dumapp.h:181: warning: ANSI C++ forbids declaration `DUMA_Magic' with no type or storage class
dumapp.h:181: variable-size type declared outside of any function
dumapp.h:181: conflicting types for `int DUMA_Magic[2]'
dumapp.h:135: previous declaration as `int DUMA_Magic[256]'
dumapp.h:181: invalid initializer
dumapp.h:181: stray '\' in program
dumapp.h:182: warning: ANSI C++ forbids declaration `DUMA_DeleteFile' with no type or storage class
dumapp.h:182: variable-size type declared outside of any function
dumapp.h:182: conflicting types for `int DUMA_DeleteFile[2]'
dumapp.h:136: previous declaration as `const char * DUMA_DeleteFile[256]'
dumapp.h:182: invalid initializer
dumapp.h:182: stray '\' in program
dumapp.h:183: warning: ANSI C++ forbids declaration `DUMA_DeleteLine' with no type or storage class
dumapp.h:183: variable-size type declared outside of any function
dumapp.h:183: conflicting types for `int DUMA_DeleteLine[2]'
dumapp.h:137: previous declaration as `int DUMA_DeleteLine[256]'
dumapp.h:183: invalid initializer
dumapp.h:183: stray '\' in program
dumapp.h:184: warning: ANSI C++ forbids declaration `DUMA_Magic' with no type or storage class
dumapp.h:184: variable-size type declared outside of any function
dumapp.h:184: redefinition of `int DUMA_Magic[2]'
dumapp.h:181: `int DUMA_Magic[2]' previously defined here
dumapp.h:184: stray '\' in program
dumapp.h:185: warning: ANSI C++ forbids declaration `DUMA_Magic' with no type or storage class
dumapp.h:185: variable-size type declared outside of any function
dumapp.h:185: redefinition of `int DUMA_Magic[2]'
dumapp.h:181: `int DUMA_Magic[2]' previously defined here
dumapp.h:185: invalid initializer
dumapp.h:185: stray '\' in program
dumapp.h:186: stray '\' in program
dumapp.h:187: new declaration `int DUMA_rel_sem()'
sem_inc.h:37: ambiguates old declaration `void DUMA_rel_sem()'
dumapp.h:187: parse error before `)'
dumapp.h:187: stray '\' in program
dumapp.cpp:49: conflicting types for `int DUMA_Magic[256]'
dumapp.h:185: previous declaration as `int DUMA_Magic[2]'
dumapp.cpp:50: conflicting types for `const char * DUMA_DeleteFile[256]'
dumapp.h:182: previous declaration as `int DUMA_DeleteFile[2]'
dumapp.cpp:50: `unknown_cxx_file' was not declared in this scope
dumapp.cpp:51: conflicting types for `int DUMA_DeleteLine[256]'
dumapp.h:183: previous declaration as `int DUMA_DeleteLine[2]'
dumapp.cpp:89: warning: `always_inline' attribute directive ignored
dumapp.cpp: In function `void * operator new(unsigned int)':
dumapp.cpp:191: `unknown_cxx_file' undeclared (first use this function)
dumapp.cpp:191: (Each undeclared identifier is reported only once
dumapp.cpp:191: for each function it appears in.)
dumapp.cpp: In function `void * operator new(unsigned int, const struct nothrow_t &)':
dumapp.cpp:202: `unknown_cxx_file' undeclared (first use this function)
dumapp.cpp: In function `void * operator new [](unsigned int)':
dumapp.cpp:246: `unknown_cxx_file' undeclared (first use this function)
dumapp.cpp: In function `void * operator new [](unsigned int, const struct nothrow_t &)':
dumapp.cpp:257: `unknown_cxx_file' undeclared (first use this function)
make: *** [dumapp.o] Error 1
Meanwhile i tested the actual DUMA 2.5.7 on Solaris 10 for intel achitecture. It compiles and runs its confidence tests without errors.
can you confirm?
I've compiled on Solaris 8 (SPARC), but at gmake install time ld complains. Has anyone seen a similar issue?
% !193
gmake OS=solaris prefix=/export/home/hicks/tmp/duma install
g++ -g -shared -Wl,-soname,libduma.so.0.0.0 -o libduma.so.0.0.0 dumapp_so.o duma_so.o sem_inc_so.o print_so.o -lpthread -lc
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libduma.so.0.0.0: unknown file type
ld: fatal: File processing errors. No output written to libduma.so.0.0.0
collect2: ld returned 1 exit status
gmake: *** [libduma.so.0.0.0] Error 1
%