I have tried to install xlslib on my Gentoo box but it doesn't make!. I download the sources xlslib-1.0.0.zip and configurate but when I do make command I have this error:
localhost xlslib-1.0.0 # make
cd . && aclocal -I @ac_aux_dir@
aclocal-1.10: couldn't open directory `@ac_aux_dir@': No such file or directory
make: *** [aclocal.m4] Error 1
By
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Making all in src
source='xlslib/cbridge.cpp' object='cbridge.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/s
h ../config/depcomp /bin/sh ../libtool --tag=CXX --mode=compile gxlc -DHAVE_CONFIG_H -I. -I. -I../s
rc/common -I../src/data -I../src/oledoc -I../src/common -I../src/xlslib -g -c -o cbridge.lo
`test -f 'xlslib/cbridge.cpp' || echo './'`xlslib/cbridge.cpp
gxlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src
/xlslib -g -c -M xlslib/cbridge.cpp -DPIC -o .libs/cbridge.o
"../src/common/systype.h", line 130.17: 1540-0400 (S) "uchar_t" has a conflicting declaration.
"/usr/include/sys/types.h", line 147.25: 1540-0425 (I) "uchar_t" is defined on line 147 of "/usr/inc
lude/sys/types.h".
"xlslib/cbridge.cpp", line 60.156: 1540-0257 (S) An object or reference of type "std::wstring" canno
t be initialized with an expression of type "uchar_t *".
"xlslib/cbridge.cpp", line 104.155: 1540-0257 (S) An object or reference of type "std::wstring" cann
ot be initialized with an expression of type "uchar_t *".
"xlslib/cbridge.cpp", line 105.145: 1540-0218 (S) The call does not match any parameter list for "la
bel".
"../src/xlslib/sheetrec.h", line 201.25: 1540-1283 (I) "xlslib_core::worksheet::label(unsigned16_t,
unsigned16_t, std::string, xf_t *)" is not a viable candidate.
"xlslib/cbridge.cpp", line 105.163: 1540-0256 (I) A parameter of type "std::basic_string<char,std::c
har_traits<char>,std::allocator<char> >" cannot be initialized with an expression of type "uchar_t *
".
"../src/xlslib/sheetrec.h", line 205.25: 1540-1283 (I) "xlslib_core::worksheet::label(unsigned16_t,
unsigned16_t, std::wstring, xf_t *)" is not a viable candidate.
"xlslib/cbridge.cpp", line 105.163: 1540-0256 (I) A parameter of type "std::basic_string<wchar_t,std
::char_traits<wchar_t>,std::allocator<wchar_t> >" cannot be initialized with an expression of type "
uchar_t *".
xlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src/x
lslib -g -c -M xlslib/cbridge.cpp -DPIC -o .libs/cbridge.o
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Stop.
<End Quote>
I have tried to change the compiler to cc_r, cc, xlc, or gxlc, but it gave the same error.
The platform I used was AIX 5.2 and no xlc++, xIC or gxlc++ compiler ...
Please help
Thank you
Regards
Karl Chu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you use the latest sources in the svn repository? The code in the cvs repository is out of date. The web site is also out of date - I really need to update it (just takes time I have not had).
So, make sure you are using svn - checkout the source from there.
If the problem still happens then repost and I'll look at it shortly (in a few days).
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I run "./bootstrap" and then "./configure". Unfortunately, it stills same. Firstly it gave the following error when I run "./configure":-
<Quote>
$ > ./configure --prefix=$HOME/excel
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: in `/home/appl_sup/charlesc/excel/xlslib':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
<End Quote>
I knew that there was no compiler found so I changed the configure file that I added "gxlc" in it. Then, I retried successfully. However, when I run "make", it gave the same error:-
<Quote>
$ > make
Making all in src
source='common/overnew.cpp' object='overnew.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/s
h ../config/depcomp /bin/sh ../libtool --tag=CXX --mode=compile gxlc -DHAVE_CONFIG_H -I. -I. -I../s
rc/common -I../src/data -I../src/oledoc -I../src/common -I../src/xlslib -g -c -o overnew.lo
`test -f 'common/overnew.cpp' || echo './'`common/overnew.cpp
mkdir .libs
gxlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src
/xlslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
"../src/common/systype.h", line 138.17: 1540-0400 (S) "uchar_t" has a conflicting declaration.
"/usr/include/sys/types.h", line 147.25: 1540-0425 (I) "uchar_t" is defined on line 147 of "/usr/inc
lude/sys/types.h".
xlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src/x
lslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
<End Quote>
Is it impossible to run with "gxlc", "xlc", "cc_r" or "cc"? Or, there are some incompatibility in AIX?
Thank for your help~!
Regards
Karl Chu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I run "./bootstrap" and then "./configure". Unfortunately, it stills same. Firstly it gave the following error when I run "./configure":-
<Quote>
$ > ./configure --prefix=$HOME/excel
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: in `/home/appl_sup/charlesc/excel/xlslib':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
<End Quote>
I knew that there was no compiler found so I changed the configure file that I added "gxlc" in it. Then, I retried successfully. However, when I run "make", it gave the same error:-
<Quote>
$ > make
Making all in src
source='common/overnew.cpp' object='overnew.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/s
h ../config/depcomp /bin/sh ../libtool --tag=CXX --mode=compile gxlc -DHAVE_CONFIG_H -I. -I. -I../s
rc/common -I../src/data -I../src/oledoc -I../src/common -I../src/xlslib -g -c -o overnew.lo
`test -f 'common/overnew.cpp' || echo './'`common/overnew.cpp
mkdir .libs
gxlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src
/xlslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
"../src/common/systype.h", line 138.17: 1540-0400 (S) "uchar_t" has a conflicting declaration.
"/usr/include/sys/types.h", line 147.25: 1540-0425 (I) "uchar_t" is defined on line 147 of "/usr/inc
lude/sys/types.h".
xlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src/x
lslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
<End Quote>
Is it impossible to run with "gxlc", "xlc", "cc_r" or "cc"? Or, there are some incompatibility in AIX?
Thank for your help~!
Regards
Karl Chu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem is that xlslib made a bad choice for its 16 bit character typedef - uchar_t. Seems your system is also defining it at the system level (in types.h). So, the quick fix is as follows:
1) verify that uchar_t is in fact 16 bits - if so then this is going to make life easier.
2) in xlslib's systypes.h, about line 138, change:
typedef wchar_t uchar_t;
to:
#ifndef uchar_t
typedef wchar_t uchar_t;
#endif
Its possible that you may need to do this in other files - there is no easy way for me to test this right now.
Let me know if this fixes your problem or not.
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Glancing at the output, a few guesses come to mind. First, the GNU autobuild system is creating very odd looking options for the compiler. Then, your system is trying to build a process with main instead of a library. Finally, it would appear that the C++ standard library is not getting linked in.
I can't provide more help since I, like all the other open source users of the GNU autobuild system, have little understanding of how it all works. I got a book on it that is now way out of date.
So, what do you do now? Well, a few ideas:
- google automake and your system and compiler, and see if you find others who had similar problems and found fixes. I have tried to get the latest GNU files included in xlslib, but have not checked in the last year. The relevant GNU utilities are in the bootstrap file.
- I downloaded the source myself this morning, and ran a bootstrap, configure, and build. Then, I uploaded the source along with the log of what I did (LOG.txt) to trunk/xlslib.zip. You may be able to use the config.h file that it generated, or you can at least diff it to see that what you have looks reasonable (not empty etc).
- Using the above log, you can construct your own makefile - it's not hard - and the library to build. The bootstrap output is (I think) config.h, which has system specific settings. With that and the source, you should be able to get the source to compile. At least you will have an example of it building successfully on one system.
- If you use an IDE, you can probably get that to also build the system. I did this on the Mac using its IDE, for a different reason, and it only took me about 10min to get working. Again, the critical resource is getting the config.h file.
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you download these tools - gcc++ etc - the probability of getting the system to build goes up greatly, and I should be able to provide more support.
If you get these tools, verify they work by compiling some small main.c, and still have problems, if you will give me a ssh login I will continue to try and support you by working on your machine with my own login (I would not need admin privileges - just normal ones.)
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually, I am looking for a third-party an Excel Report generating tool like perl or xlslib for integrating with our application which is built in AIX C (not C++) compiler. I thought xlslib would be better than xlslib because it was more straightforward than embedded perl.
Out of my expectation, however, it turned out that xlslib could only be compiled with gcc or gcc++ only. So I think my effort will be in vain since the compiled objects from gcc++ could not be linked with our application which are compiled with another compiler, right? Of course, it would be too silly for us to re-compile our application with gcc++ in a bid to make it compatible with xlslib compiled objects
To be frank, I am very fresh in open source project compilation though I am very interested in it. I am not an server administrator but I would sometimes download some open tools for trials in AIX. Like this case, I downloaded and installed libtool, automake, autoconf, and m4 in my a/c in order to install xlslib. Though it does not succeed, I learned a lot from you
You are really helpful and great~! I really appreciate it :)
Thank you
Regards
Karl Chu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm a Mac guy, and the Windows guys are not active anymore. I think you are going to have to figure this out yourself - sorry I cannot be of more help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have tried to install xlslib on my Gentoo box but it doesn't make!. I download the sources xlslib-1.0.0.zip and configurate but when I do make command I have this error:
localhost xlslib-1.0.0 # make
cd . && aclocal -I @ac_aux_dir@
aclocal-1.10: couldn't open directory `@ac_aux_dir@': No such file or directory
make: *** [aclocal.m4] Error 1
By
After installing, first:
./bootstrap
./configure
make
Dear Sir
I encountered the make error:-
<Quote>
Making all in src
source='xlslib/cbridge.cpp' object='cbridge.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/s
h ../config/depcomp /bin/sh ../libtool --tag=CXX --mode=compile gxlc -DHAVE_CONFIG_H -I. -I. -I../s
rc/common -I../src/data -I../src/oledoc -I../src/common -I../src/xlslib -g -c -o cbridge.lo
`test -f 'xlslib/cbridge.cpp' || echo './'`xlslib/cbridge.cpp
gxlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src
/xlslib -g -c -M xlslib/cbridge.cpp -DPIC -o .libs/cbridge.o
"../src/common/systype.h", line 130.17: 1540-0400 (S) "uchar_t" has a conflicting declaration.
"/usr/include/sys/types.h", line 147.25: 1540-0425 (I) "uchar_t" is defined on line 147 of "/usr/inc
lude/sys/types.h".
"xlslib/cbridge.cpp", line 60.156: 1540-0257 (S) An object or reference of type "std::wstring" canno
t be initialized with an expression of type "uchar_t *".
"xlslib/cbridge.cpp", line 104.155: 1540-0257 (S) An object or reference of type "std::wstring" cann
ot be initialized with an expression of type "uchar_t *".
"xlslib/cbridge.cpp", line 105.145: 1540-0218 (S) The call does not match any parameter list for "la
bel".
"../src/xlslib/sheetrec.h", line 201.25: 1540-1283 (I) "xlslib_core::worksheet::label(unsigned16_t,
unsigned16_t, std::string, xf_t *)" is not a viable candidate.
"xlslib/cbridge.cpp", line 105.163: 1540-0256 (I) A parameter of type "std::basic_string<char,std::c
har_traits<char>,std::allocator<char> >" cannot be initialized with an expression of type "uchar_t *
".
"../src/xlslib/sheetrec.h", line 205.25: 1540-1283 (I) "xlslib_core::worksheet::label(unsigned16_t,
unsigned16_t, std::wstring, xf_t *)" is not a viable candidate.
"xlslib/cbridge.cpp", line 105.163: 1540-0256 (I) A parameter of type "std::basic_string<wchar_t,std
::char_traits<wchar_t>,std::allocator<wchar_t> >" cannot be initialized with an expression of type "
uchar_t *".
xlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src/x
lslib -g -c -M xlslib/cbridge.cpp -DPIC -o .libs/cbridge.o
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Stop.
<End Quote>
I have tried to change the compiler to cc_r, cc, xlc, or gxlc, but it gave the same error.
The platform I used was AIX 5.2 and no xlc++, xIC or gxlc++ compiler ...
Please help
Thank you
Regards
Karl Chu
Did you use the latest sources in the svn repository? The code in the cvs repository is out of date. The web site is also out of date - I really need to update it (just takes time I have not had).
So, make sure you are using svn - checkout the source from there.
If the problem still happens then repost and I'll look at it shortly (in a few days).
David
Dear David
Glad to hear your reply~!
I tried to download the latest version (i.e. 1.3 from README) via "svn co https://xlslib.svn.sourceforge.net/svnroot/xlslib xlslib" in the command prompt.
I run "./bootstrap" and then "./configure". Unfortunately, it stills same. Firstly it gave the following error when I run "./configure":-
<Quote>
$ > ./configure --prefix=$HOME/excel
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: in `/home/appl_sup/charlesc/excel/xlslib':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
<End Quote>
I knew that there was no compiler found so I changed the configure file that I added "gxlc" in it. Then, I retried successfully. However, when I run "make", it gave the same error:-
<Quote>
$ > make
Making all in src
source='common/overnew.cpp' object='overnew.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/s
h ../config/depcomp /bin/sh ../libtool --tag=CXX --mode=compile gxlc -DHAVE_CONFIG_H -I. -I. -I../s
rc/common -I../src/data -I../src/oledoc -I../src/common -I../src/xlslib -g -c -o overnew.lo
`test -f 'common/overnew.cpp' || echo './'`common/overnew.cpp
mkdir .libs
gxlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src
/xlslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
"../src/common/systype.h", line 138.17: 1540-0400 (S) "uchar_t" has a conflicting declaration.
"/usr/include/sys/types.h", line 147.25: 1540-0425 (I) "uchar_t" is defined on line 147 of "/usr/inc
lude/sys/types.h".
xlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src/x
lslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
<End Quote>
Is it impossible to run with "gxlc", "xlc", "cc_r" or "cc"? Or, there are some incompatibility in AIX?
Thank for your help~!
Regards
Karl Chu
Dear David
Glad to hear your reply~!
I tried to download the latest version (i.e. 1.3 from README) via "svn co https://xlslib.svn.sourceforge.net/svnroot/xlslib xlslib" in the command prompt.
I run "./bootstrap" and then "./configure". Unfortunately, it stills same. Firstly it gave the following error when I run "./configure":-
<Quote>
$ > ./configure --prefix=$HOME/excel
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: in `/home/appl_sup/charlesc/excel/xlslib':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
<End Quote>
I knew that there was no compiler found so I changed the configure file that I added "gxlc" in it. Then, I retried successfully. However, when I run "make", it gave the same error:-
<Quote>
$ > make
Making all in src
source='common/overnew.cpp' object='overnew.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/s
h ../config/depcomp /bin/sh ../libtool --tag=CXX --mode=compile gxlc -DHAVE_CONFIG_H -I. -I. -I../s
rc/common -I../src/data -I../src/oledoc -I../src/common -I../src/xlslib -g -c -o overnew.lo
`test -f 'common/overnew.cpp' || echo './'`common/overnew.cpp
mkdir .libs
gxlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src
/xlslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
"../src/common/systype.h", line 138.17: 1540-0400 (S) "uchar_t" has a conflicting declaration.
"/usr/include/sys/types.h", line 147.25: 1540-0425 (I) "uchar_t" is defined on line 147 of "/usr/inc
lude/sys/types.h".
xlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src/x
lslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
<End Quote>
Is it impossible to run with "gxlc", "xlc", "cc_r" or "cc"? Or, there are some incompatibility in AIX?
Thank for your help~!
Regards
Karl Chu
The problem is that xlslib made a bad choice for its 16 bit character typedef - uchar_t. Seems your system is also defining it at the system level (in types.h). So, the quick fix is as follows:
1) verify that uchar_t is in fact 16 bits - if so then this is going to make life easier.
2) in xlslib's systypes.h, about line 138, change:
typedef wchar_t uchar_t;
to:
#ifndef uchar_t
typedef wchar_t uchar_t;
#endif
Its possible that you may need to do this in other files - there is no easy way for me to test this right now.
Let me know if this fixes your problem or not.
David
Dear David
Glad to hear you again
Actually, I don't know whether uchar_t is 16 bits or not. The following is the extract from /usr/include/sys/types.h:-
+143 * shorthand type definitions for unsigned storage classes
+144 */
+145 #ifndef _UCHAR_T
+146 #define _UCHAR_T
+147 typedef unsigned char uchar_t;
+148 #endif /*_UCHAR_T */
Even though I changed the xlslib's ../src/common/systype.h as you suggested, the same error still prompted:-
+138 #ifndef uchar_t
+139 typedef wchar_t uchar_t;
+140 #endif
$ > make
Making all in src
source='common/overnew.cpp' object='overnew.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/s
h ../config/depcomp /bin/sh ../libtool --tag=CXX --mode=compile gxlc -DHAVE_CONFIG_H -I. -I. -I../s
rc/common -I../src/data -I../src/oledoc -I../src/common -I../src/xlslib -g -c -o overnew.lo
`test -f 'common/overnew.cpp' || echo './'`common/overnew.cpp
gxlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src
/xlslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
"../src/common/systype.h", line 139.17: 1540-0400 (S) "uchar_t" has a conflicting declaration.
"/usr/include/sys/types.h", line 147.25: 1540-0425 (I) "uchar_t" is defined on line 147 of "/usr/inc
lude/sys/types.h".
xlc -DHAVE_CONFIG_H -I. -I. -I../src/common -I../src/data -I../src/oledoc -I../src/common -I../src/x
lslib -g -c -M common/overnew.cpp -DPIC -o .libs/overnew.o
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Stop.
Would you please help?
Thank you
Regards
Karl Chu
Try the new sources - I globally changed uchar_t to unichar_t.
David
Dear David
After checking out the latest sources from SVN and re-compiling them, I found the error was gone but other compilation errors appeared:-
$ > make
Making all in src
/bin/sh ../libtool --tag=CXX --mode=link gxlc -g -o libxls.la -rpath /home/appl_sup/char
lesc/excel/lib -liconv overnew.lo blank.lo cbridge.lo cell.lo colinfo.lo continue.lo datast.lo doc
summinfo.lo extformat.lo font.lo format.lo globalrec.lo HPSF.lo index.lo label.lo merged.lo number
.lo range.lo recdef.lo record.lo row.lo sheetrec.lo summinfo.lo unit.lo workbook.lo binfile.lo ole
doc.lo olefs.lo oleprop.lo
rm -fr .libs/libxls.exp
generating symbol list for `libxls.la'
/usr/bin/nm -B -BCpg .libs/overnew.o .libs/blank.o .libs/cbridge.o .libs/cell.o .libs/colinfo.o .li
bs/continue.o .libs/datast.o .libs/docsumminfo.o .libs/extformat.o .libs/font.o .libs/format.o .libs
/globalrec.o .libs/HPSF.o .libs/index.o .libs/label.o .libs/merged.o .libs/number.o .libs/range.o .l
ibs/recdef.o .libs/record.o .libs/row.o .libs/sheetrec.o .libs/summinfo.o .libs/unit.o .libs/workboo
k.o .libs/binfile.o .libs/oledoc.o .libs/olefs.o .libs/oleprop.o | awk '{ if ((($2 == "T") || ($2 =
= "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' | sort -u > .libs/libxls.exp
gxlc -bM:SRE -o .libs/libxls.so.0 .libs/overnew.o .libs/blank.o .libs/cbridge.o .libs/cell.o .libs/
colinfo.o .libs/continue.o .libs/datast.o .libs/docsumminfo.o .libs/extformat.o .libs/font.o .libs/f
ormat.o .libs/globalrec.o .libs/HPSF.o .libs/index.o .libs/label.o .libs/merged.o .libs/number.o .li
bs/range.o .libs/recdef.o .libs/record.o .libs/row.o .libs/sheetrec.o .libs/summinfo.o .libs/unit.o
.libs/workbook.o .libs/binfile.o .libs/oledoc.o .libs/olefs.o .libs/oleprop.o -liconv -lc -bnoentry
-bE:.libs/libxls.exp ${wl}-berok
gxlc: 1501-257 Option -bM:SRE is not recognized. Option will be ignored.
gxlc: 1501-257 Option -bnoentry is not recognized. Option will be ignored.
gxlc: 1501-257 Option -bE:.libs/libxls.exp is not recognized. Option will be ignored.
gxlc: 1501-257 Option -berok is not recognized. Option will be ignored.
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
xlc -o .libs/libxls.so.0 .libs/overnew.o .libs/blank.o .libs/cbridge.o .libs/cell.o .libs/colinfo.o
.libs/continue.o .libs/datast.o .libs/docsumminfo.o .libs/extformat.o .libs/font.o .libs/format.o .l
ibs/globalrec.o .libs/HPSF.o .libs/index.o .libs/label.o .libs/merged.o .libs/number.o .libs/range.o
.libs/recdef.o .libs/record.o .libs/row.o .libs/sheetrec.o .libs/summinfo.o .libs/unit.o .libs/work
book.o .libs/binfile.o .libs/oledoc.o .libs/olefs.o .libs/oleprop.o -liconv -lc
make: The error code from the last command is 8.
Stop.
make: The error code from the last command is 1.
Even I changed the compiler to xlc or cc_r, it gave Undefined symbol errors:-
/bin/sh ../../libtool --tag=CXX --mode=link xlc -g -o testCPP mainCPP.o ../../src/libxl
s.la
xlc -g -o .libs/testCPP mainCPP.o -L../../src/.libs -lxls -liconv -blibpath:/home/appl_sup/charles
c/excel/lib:/usr/vac/lib:/usr/lib:/lib
ld: 0711-317 ERROR: Undefined symbol: __vft24__DynaCastDesc_si_public14__DynaCastDesc
ld: 0711-317 ERROR: Undefined symbol: __vft13eti_cplusplus9type_info
ld: 0711-317 ERROR: Undefined symbol: __dl__FPv
ld: 0711-317 ERROR: Undefined symbol: .__dl__FPv
ld: 0711-317 ERROR: Undefined symbol: cout__3std
ld: 0711-317 ERROR: Undefined symbol: .__ReThrowV6
ld: 0711-317 ERROR: Undefined symbol: .__setUncaughtExceptionFlag__3stdFb
ld: 0711-317 ERROR: Undefined symbol: .__CleanupCatchV6a
ld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std7_LockitFi
ld: 0711-317 ERROR: Undefined symbol: .uncaught_exception__3stdFv
ld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std7_LockitFv
ld: 0711-317 ERROR: Undefined symbol: id__Q2_3std7num_putXTcTQ2_3std19ostreambuf_iteratorXTcTQ2_3std
11char_traitsXTc___
ld: 0711-317 ERROR: Undefined symbol: ._Getfacet__Q2_3std6localeCFUl
ld: 0711-317 ERROR: Undefined symbol: .unexpected__3stdFv
ld: 0711-317 ERROR: Undefined symbol: .terminate__3stdFv
ld: 0711-317 ERROR: Undefined symbol: _Id_cnt__Q3_3std6locale2id
ld: 0711-317 ERROR: Undefined symbol: .__ThrowV6
ld: 0711-317 ERROR: Undefined symbol: ._Xran__Q2_3std12_String_baseCFv
ld: 0711-317 ERROR: Undefined symbol: .clear__Q2_3std8ios_baseFib
ld: 0711-317 ERROR: Undefined symbol: id__Q2_3std5ctypeXTc_
ld: 0711-317 ERROR: Undefined symbol: ._Xlen__Q2_3std12_String_baseCFv
ld: 0711-317 ERROR: Undefined symbol: .__nw__FUl
ld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std8_LocinfoFPCci
ld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std8_LocinfoFv
ld: 0711-317 ERROR: Undefined symbol: _Cltab__Q2_3std5ctypeXTc_
ld: 0711-317 ERROR: Undefined symbol: ._Getctype__FPCc
ld: 0711-317 ERROR: Undefined symbol: ._Tolower
ld: 0711-317 ERROR: Undefined symbol: ._Toupper
ld: 0711-317 ERROR: Undefined symbol: id__Q2_3std8numpunctXTc_
ld: 0711-317 ERROR: Undefined symbol: .__vn__FUl
ld: 0711-317 ERROR: Undefined symbol: .__vd__FPv
ld: 0711-317 ERROR: Undefined symbol: ._Getnumpunct__FPCc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: The error code from the last command is 8.
Stop.
make: The error code from the last command is 1
Please help
Thank you
Regards
Karl Chu
Karl,
Glancing at the output, a few guesses come to mind. First, the GNU autobuild system is creating very odd looking options for the compiler. Then, your system is trying to build a process with main instead of a library. Finally, it would appear that the C++ standard library is not getting linked in.
I can't provide more help since I, like all the other open source users of the GNU autobuild system, have little understanding of how it all works. I got a book on it that is now way out of date.
So, what do you do now? Well, a few ideas:
- google automake and your system and compiler, and see if you find others who had similar problems and found fixes. I have tried to get the latest GNU files included in xlslib, but have not checked in the last year. The relevant GNU utilities are in the bootstrap file.
- I downloaded the source myself this morning, and ran a bootstrap, configure, and build. Then, I uploaded the source along with the log of what I did (LOG.txt) to trunk/xlslib.zip. You may be able to use the config.h file that it generated, or you can at least diff it to see that what you have looks reasonable (not empty etc).
- Using the above log, you can construct your own makefile - it's not hard - and the library to build. The bootstrap output is (I think) config.h, which has system specific settings. With that and the source, you should be able to get the source to compile. At least you will have an example of it building successfully on one system.
- If you use an IDE, you can probably get that to also build the system. I did this on the Mac using its IDE, for a different reason, and it only took me about 10min to get working. Again, the critical resource is getting the config.h file.
David
David
I tried to google search any AIX-automake specific threads. But I could not find any
To construct a log file would be difficult for me ...
I did not compile it via an IDE ... just did it via UNIX command prompt
Anyway, thank for your support
Regards
Karl
I assume you mean "construct a makefile". Have you built any other open source projects before?
You had said you were using a AIX-specific compiler. I googled "AIX and GNU" and found that IBM supports the GNU tools on AIX:
http://www-03.ibm.com/systems/power/software/aix/linux/
http://www.ibm.com/developerworks/aix/library/au-gnu.html
If you download these tools - gcc++ etc - the probability of getting the system to build goes up greatly, and I should be able to provide more support.
If you get these tools, verify they work by compiling some small main.c, and still have problems, if you will give me a ssh login I will continue to try and support you by working on your machine with my own login (I would not need admin privileges - just normal ones.)
David
David
Thank for your support again
Actually, I am looking for a third-party an Excel Report generating tool like perl or xlslib for integrating with our application which is built in AIX C (not C++) compiler. I thought xlslib would be better than xlslib because it was more straightforward than embedded perl.
Out of my expectation, however, it turned out that xlslib could only be compiled with gcc or gcc++ only. So I think my effort will be in vain since the compiled objects from gcc++ could not be linked with our application which are compiled with another compiler, right? Of course, it would be too silly for us to re-compile our application with gcc++ in a bid to make it compatible with xlslib compiled objects
To be frank, I am very fresh in open source project compilation though I am very interested in it. I am not an server administrator but I would sometimes download some open tools for trials in AIX. Like this case, I downloaded and installed libtool, automake, autoconf, and m4 in my a/c in order to install xlslib. Though it does not succeed, I learned a lot from you
You are really helpful and great~! I really appreciate it :)
Thank you
Regards
Karl Chu
I've run the ./configure script but I get an error after make:
Any suggestions?
Thanks
Pete
Yes - for the present time comment out that line in xlsys.h:
# include "ac-config.linux32.h"
This is a problem on our side and we'll fix it shortly. That file should not be included for you.
Thanks for the especially quick response. That worked. -Pete
Hi!
I've run the ./configure script but I get an error after make:
I'm a Mac guy, and the Windows guys are not active anymore. I think you are going to have to figure this out yourself - sorry I cannot be of more help.