SWIG 1.3.9 installation problems on QNX RTP

Hi,
I think there is an error in the configure script which I got from the
tarball on the SWIG site. When I try to run it, I get the following (NOTICE
THE LAST LINE)
loading cache ./config.cache
checking MACHDEP… qnx6
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
… etc etc …
Checking for installed packages.
Note : None of the following packages are required to compile SWIG
/*************** CAN I SKIP THESE SOMEHOW TO AVOID THIS ERROR ? checking for
dlopen in -ldl… no
checking for shl_load in -ldld… no
checking for t_open in -lnsl… no
…etc …etc …
checking for Ruby header files… ./configure error[3335]: no closing quotes
/***************** ERRROR HERE *************************

Do I need to hack into the configure to fix this???
Isn’t this file supposed to be generated by autoconf so that there would be
no such syntax errors ???
Please respond if you have any insight into the solution to this problem.
Thanks in advance.


Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7

Sanket Khidkikar <skhidkikar@atsautomation.com> wrote:

/*************** CAN I SKIP THESE SOMEHOW TO AVOID THIS ERROR ? checking for
dlopen in -ldl… no
checking for shl_load in -ldld… no
checking for t_open in -lnsl… no
…etc …etc …
checking for Ruby header files… ./configure error[3335]: no closing quotes
/***************** ERRROR HERE *************************

Do I need to hack into the configure to fix this???
Isn’t this file supposed to be generated by autoconf so that there would be
no such syntax errors ???

Configures job is to detect locations/existance of items required to build
the source. If you know for sure that certain packages are not required, then
you have to hack the script to stop looking for them (as the author put the
checks in). Most of the time, there are command line options to configure,
that allows you to stop the detection (or change the path) of certain key
components required to build. Do a ./configure --help to see these options.

-Adam

Sanket,

Yes … you have to remove the scripting related to Ruby.
After ./config you should replace in all Makefiles gcc by qcc and c++
by QCC and then make leads to a clean SWIG.

Armin





Sanket Khidkikar wrote:

Hi,
I think there is an error in the configure script which I got from the
tarball on the SWIG site. When I try to run it, I get the following (NOTICE
THE LAST LINE)
loading cache ./config.cache
checking MACHDEP… qnx6
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
… etc etc …
Checking for installed packages.
Note : None of the following packages are required to compile SWIG
/*************** CAN I SKIP THESE SOMEHOW TO AVOID THIS ERROR ? checking for
dlopen in -ldl… no
checking for shl_load in -ldld… no
checking for t_open in -lnsl… no
…etc …etc …
checking for Ruby header files… ./configure error[3335]: no closing quotes
/***************** ERRROR HERE *************************

Do I need to hack into the configure to fix this???
Isn’t this file supposed to be generated by autoconf so that there would be
no such syntax errors ???
Please respond if you have any insight into the solution to this problem.
Thanks in advance.


Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7
\

Hmmm… I removed the Ruby code and that fixed the configure problem.
Although I continued to use gcc for the make, and had to hack a bit into a
couple files (define / undefine) before I could get swig to install
successfully.
How much of a difference does using qcc&QCC make compared to using gcc???
Thanks Armin.


“Armin” <a-steinhoff@web.de> wrote in message news:3BC711AB.10000@web.de

Sanket,

Yes … you have to remove the scripting related to Ruby.
After ./config you should replace in all Makefiles gcc by qcc and c++
by QCC and then make leads to a clean SWIG.

Armin





Sanket Khidkikar wrote:

Hi,
I think there is an error in the configure script which I got from the
tarball on the SWIG site. When I try to run it, I get the following
(NOTICE
THE LAST LINE)
loading cache ./config.cache
checking MACHDEP… qnx6
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
… etc etc …
Checking for installed packages.
Note : None of the following packages are required to compile SWIG
/*************** CAN I SKIP THESE SOMEHOW TO AVOID THIS ERROR ? checking
for
dlopen in -ldl… no
checking for shl_load in -ldld… no
checking for t_open in -lnsl… no
…etc …etc …
checking for Ruby header files… ./configure error[3335]: no closing
quotes
/***************** ERRROR HERE *************************

Do I need to hack into the configure to fix this???
Isn’t this file supposed to be generated by autoconf so that there would
be
no such syntax errors ???
Please respond if you have any insight into the solution to this problem.
Thanks in advance.


Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7


\

Sanket Khidkikar wrote:

Hmmm… I removed the Ruby code and that fixed the configure problem.
Although I continued to use gcc for the make, and had to hack a bit into a
couple files (define / undefine) before I could get swig to install
successfully.
How much of a difference does using qcc&QCC make compared to using gcc???

Here are the differences e.g. between compiling with QCC and c++ :

===> QCC

make[1]: Entering directory `/usr/SWIG-1.3.9/Source/SWIG1.1’
QCC -v -I./…/Include -I./. -I./…/Swig -I./…/Preprocessor
-I./…/DOH/Include -I…/Include -I. -g -O2 parser.cxx -c -o parser.o
/usr/lib/gcc-lib/ntox86/2.95.2/cpp -I./…/Include -I./. -I./…/Swig
-I./…/Preprocessor -I./…/DOH/Include -I…/Include -I. -D__OPTIMIZE__
-nostdinc -nostdinc++ -D__cplusplus -D__QNX__ -D__QNXNTO__ -D__GNUC__=2
-D__GNUC_MINOR__=95 -D__GNUG__=2 -D__unix__ -D__unix -D__ELF__ -D__X86__
-D__i386__ -D__LITTLEENDIAN__ -Asystem(unix) -Asystem(nto) -Asystem(qnx)
-Asystem(qnxnto) -Acpu(386) -Acpu(i386) -Amachine(i386) -idirafter
/usr/include -lang-c++ parser.cxx -o - |
/usr/lib/gcc-lib/ntox86/2.95.2/cc1plus -g2 -O2 -quiet -fno-builtin
-fhonor-std -dumpbase parser.cxx -o - |
/usr/ntox86/bin/as -o parser.o


===> c++

make[1]: Entering directory /usr/SWIG-1.3.9/Source/SWIG1.1' c++ -v -I./../Include -I./. -I./../Swig -I./../Preprocessor -I./../DOH/Include -I../Include -I. -g -O2 parser.cxx -c -o parser.o Reading specs from /usr/lib/gcc-lib/ntox86/2.95.2/specs gcc version 2.95.2 19991024 (release) /usr/lib/gcc-lib/ntox86/2.95.2/cpp -lang-c++ -v -I./../Include -I./. -I./../Swig -I./../Preprocessor -I./../DOH/Include -I../Include -I. -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__X86__ -Di386 -Dunix -D__QNXNTO__ -D__QNX__ -D__LITTLEENDIAN__ -D__X86__ -D__i386__ -D__unix__ -D__QNXNTO__ -D__QNX__ -D__LITTLEENDIAN__ -D__i386 -D__unix -Asystem(unix) -Asystem(nto) -Asystem(qnxnto) -Asystem(qnx) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -D__OPTIMIZE__ -g -nostdinc -idirafter /usr/include -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ parser.cxx /tmp/ccnQqCZy.ii GNU CPP version 2.95.2 19991024 (release) (QNX/Neutrino) #include "..." search starts here: #include <...> search starts here: ../Include . ../Swig ../Preprocessor ../DOH/Include ../Include . /usr/include End of search list. The following default directories have been omitted from the search path: /usr/lib/gcc-lib/ntox86/2.95.2/../../../../include/g++-3 /usr/lib/gcc-lib/ntox86/2.95.2/include /usr/lib/gcc-lib/ntox86/2.95.2/../../../../ntox86/sys-include /usr/lib/gcc-lib/ntox86/2.95.2/../../../../ntox86/include End of omitted list. /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus /tmp/ccnQqCZy.ii -fhonor-std -quiet -dumpbase parser.cc -g -O2 -version -o /tmp/ccMAaItk.s GNU C++ version 2.95.2 19991024 (release) (ntox86) compiled by GNU C version 2.95.2 19991024 (release). In file included from swig11.h:17, from internal.h:17, from parser.yxx:21: /usr/include/stdlib.h:239: abort’ is already declared in this scope
/usr/include/stdlib.h:239: abs' is already declared in this scope /usr/include/stdlib.h:240: exit’ is already declared in this scope
/usr/include/stdlib.h:240: labs' is already declared in this scope In file included from swig11.h:19, from internal.h:17, from parser.yxx:21: /usr/include/string.h:155: memcmp’ is already declared in this scope
/usr/include/string.h:155: memcpy' is already declared in this scope /usr/include/string.h:156: strcmp’ is already declared in this scope
/usr/include/string.h:156: strcpy' is already declared in this scope /usr/include/string.h:156: strlen’ is already declared in this scope
make[1]: *** [parser.o] Error 1
make[1]: Leaving directory `/usr/SWIG-1.3.9/Source/SWIG1.1’
make: *** [SWIG1.1] Error 2

Armin

“Armin” <> a-steinhoff@web.de> > wrote in message news:> 3BC711AB.10000@web.de> …

Sanket,

Yes … you have to remove the scripting related to Ruby.
After ./config you should replace in all Makefiles gcc by qcc and c++
by QCC and then make leads to a clean SWIG.

Armin





Sanket Khidkikar wrote:

Hi,
I think there is an error in the configure script which I got from the
tarball on the SWIG site. When I try to run it, I get the following

(NOTICE

THE LAST LINE)
loading cache ./config.cache
checking MACHDEP… qnx6
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
… etc etc …
Checking for installed packages.
Note : None of the following packages are required to compile SWIG
/*************** CAN I SKIP THESE SOMEHOW TO AVOID THIS ERROR ? checking

for

dlopen in -ldl… no
checking for shl_load in -ldld… no
checking for t_open in -lnsl… no
…etc …etc …
checking for Ruby header files… ./configure error[3335]: no closing

quotes

/***************** ERRROR HERE *************************

Do I need to hack into the configure to fix this???
Isn’t this file supposed to be generated by autoconf so that there would

be

no such syntax errors ???
Please respond if you have any insight into the solution to this problem.
Thanks in advance.


Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7



\