stdcxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liviu Nicoara <nico...@roguewave.com>
Subject Re: Problem building Tuscany SDO with stdcxx on Linux
Date Tue, 17 Oct 2006 14:40:51 GMT
Hi Geoffrey,

I looked at your post and the only thing which looks suspicious [to me] is:

-I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/include/ansi
-I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/Debug/include
-I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/include

AFAIK, you should have the following sequence of include paths:

-I<root-dir>/include/ansi
-I<root-dir>/include

Could it be that you are mixing configurations?

HTH,
Liviu

Geoffrey Winn wrote:
> On 16/10/06, Martin Sebor <sebor@roguewave.com> wrote:
> 
>> No worries. What does the link line of the executable look like?
>>
>>
> I added a -v option just in case it volunteered a clue and then the answer
> to your question is
> 
> gcc -nostdinc++ -v -g -O2 -g -O2 -o .libs/tuscany_sdo_test sdotest.o
> sdotest2.o utils.o main.o
> -L/home/tuscany/workspace/SDO_stdcxx/sdo/runtime/core/src/commonj/sdo
> /home/tuscany/workspace/SDO_stdcxx/sdo/runtime/core/src/commonj/sdo/.libs/libtuscany_sdo.so

> 
> -L/usrlib -L/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/Debug/lib
> /usr/lib/libxml2.so -lpthread -lz -lm -lstd15d -lsupc++ -Wl,--rpath
> -Wl,/home/tuscany/workspace/SDO_stdcxx/sdo/deploy/lib
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --with-system-zlib --enable-__cxa_atexit
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/collect2 --eh-frame-hdr -m
> elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o .libs/tuscany_sdo_test
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crti.o
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/crtbegin.o
> -L/home/tuscany/workspace/SDO_stdcxx/sdo/runtime/core/src/commonj/sdo
> -L/usrlib -L/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/Debug/lib
> -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3
> -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../.. sdotest.o sdotest2.o
> utils.o 
> main.o/home/tuscany/workspace/SDO_stdcxx/sdo/runtime/core/src/commonj/sdo/.libs/libtuscany_sdo.so

> 
> /usr/lib/libxml2.so -lpthread -lz -lm -lstd15d -lsupc++ --rpath
> /home/tuscany/workspace/SDO_stdcxx/sdo/deploy/lib -lgcc -lgcc_eh -lc -lgcc
> -lgcc_eh /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/crtend.o
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crtn.o
> 
> The output from ldd for the test program looks OK to me, as follows
> 
> [tuscany@localhost test]$ ldd tuscany_sdo_test
>        libtuscany_sdo.so.0 =>
> /home/tuscany/workspace/SDO_stdcxx/sdo/deploy/lib/libtuscany_sdo.so.0
> (0x00496000)
>        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x002e8000)
>        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00c7f000)
>        libz.so.1 => /usr/lib/libz.so.1 (0x00fe9000)
>        libm.so.6 => /lib/tls/libm.so.6 (0x00890000)
>        libstd15d.so =>
> /home/tuscany/workspace/stdcxx/stdcxx-4.1.3/Debug/lib/libstd15d.so
> (0x00da5000)
>        libc.so.6 => /lib/tls/libc.so.6 (0x00af2000)
>        libdl.so.2 => /lib/libdl.so.2 (0x00111000)
>        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00d5c000)
> [tuscany@localhost test]$
> 
> and finally, just in case it helps, here is the compilation of sdotest.cpp,
> the main part of the test program.
> 
> if gcc -DPACKAGE_NAME=\"tuscany_sdo_cpp\"
> -DPACKAGE_TARNAME=\"tuscany_sdo_cpp\" 
> -DPACKAGE_VERSION=\"1.0-incubator-M2\"
> -DPACKAGE_STRING=\"tuscany_sdo_cpp\ 1.0-incubator-M2\"
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"tuscany_sdo_cpp\" -DVERSION=\"
> 1.0-incubator-M2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DSTDC_HEADERS=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_SYS_TIME_H=1 -DHAVE_WCHAR_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1
> -DHAVE_VPRINTF=1 -DHAVE_STRCHR=1 -DHAVE_STRRCHR=1  -I. -I.
> -I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/include/ansi
> -I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/Debug/include
> -I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/include
> -I../../../runtime/core/test -I../../../runtime/core/src -D_RWSTDDEBUG
> -D_RWSTD_USE_CONFIG   -nostdinc++ -v -g -O2 -g -O2 -MT sdotest.o -MD -MP 
> -MF
> ".deps/sdotest.Tpo" -c -o sdotest.o sdotest.cpp; \
> then mv -f ".deps/sdotest.Tpo" ".deps/sdotest.Po"; else rm -f
> ".deps/sdotest.Tpo"; exit 1; fi
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --with-system-zlib --enable-__cxa_atexit
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/cc1plus -nostdinc++ -v -I. -I.
> -I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/include/ansi
> -I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/Debug/include
> -I/home/tuscany/workspace/stdcxx/stdcxx-4.1.3/include
> -I../../../runtime/core/test -I../../../runtime/core/src -MD sdotest.d -MF
> .deps/sdotest.Tpo -MP -MT sdotest.o -MQ sdotest.o -D__GNUC__=3
> -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 
> -D__ELF__
> -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__
> -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__
> -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386
> -D__i386__ -D__tune_i386__ -DPACKAGE_NAME="tuscany_sdo_cpp"
> -DPACKAGE_TARNAME="tuscany_sdo_cpp" -DPACKAGE_VERSION="1.0-incubator-M2"
> -DPACKAGE_STRING="tuscany_sdo_cpp 1.0-incubator-M2" -DPACKAGE_BUGREPORT=""
> -DPACKAGE="tuscany_sdo_cpp" -DVERSION="1.0-incubator-M2" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
> -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_WCHAR_H=1
> -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_VPRINTF=1 -DHAVE_STRCHR=1
> -DHAVE_STRRCHR=1 -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG sdotest.cpp -D__GNUG__=3
> -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase sdotest.cpp -g -g -O2 -O2
> -version -o /tmp/ccZhvMED.s
> GNU CPP version 3.2.3 20030502 (Red Hat Linux 3.2.3-42) (cpplib) (i386
> Linux/ELF)
> GNU C++ version 3.2.3 20030502 (Red Hat Linux 3.2.3-42) (i386-redhat-linux)
>        compiled by GNU C version 3.2.3 20030502 (Red Hat Linux 3.2.3-42).
> ignoring nonexistent directory "/usr/i386-redhat-linux/include"
> ignoring duplicate directory "."
> ignoring duplicate directory "../../../runtime/core/test"
> #include "..." search starts here:
> #include <...> search starts here:
> .
> /home/tuscany/workspace/stdcxx/stdcxx-4.1.3/include/ansi
> /home/tuscany/workspace/stdcxx/stdcxx-4.1.3/Debug/include
> /home/tuscany/workspace/stdcxx/stdcxx-4.1.3/include
> ../../../runtime/core/src
> /usr/local/include
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include
> /usr/include
> End of search list.
> 


Mime
View raw message