Home Help Center

Ice uclibc

xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
Helow i trying to compile Ice-1.5.1 aginst uclibc with gentoo-embedded-x86
this is a complete linux distro thats replate glibc for uclibc i currently suscefuly build in it all Ice dependencis db-4.1.25 expat-1.95.7 openssl 0.9.7d-r1 and readline

but there are same problems when try to build ice

The gcc -v comand of my box say
Reading specs from /usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/specs
Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure --prefix=/usr 
--bindir=/usr/i386-pc-linux-uclibc/gcc-bin/3.3 
--includedir=/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/include 
--datadir=/usr/share/gcc-data/i386-pc-linux-uclibc/3.3 
--mandir=/usr/share/gcc-data/i386-pc-linux-uclibc/3.3/man 
--infodir=/usr/share/gcc-data/i386-pc-linux-uclibc/3.3/info --enable-shared 
--host=i386-pc-linux-uclibc --target=i386-pc-linux-uclibc --with-system-zlib 
--enable-languages=c,c++ --enable-threads=posix --enable-long-long 
--disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio 
--enable-version-specific-runtime-libs 
--with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/include/g++-v3 
--with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext 
--disable-multilib --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld 
--enable-sjlj-exceptions
Thread model: posix
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
[/code}

Ice build ouput
[code]
titanio Ice-1.5.1 # make
making all in src
make[1]: Entering directory `/opt/src/Ice-1.5.1/src'
making all in IceUtil
make[2]: Entering directory `/opt/src/Ice-1.5.1/src/IceUtil'
c++ -c -I../../include  -DICE_UTIL_API_EXPORTS -I.. -g  -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT Exception.cpp
c++ -c -I../../include  -DICE_UTIL_API_EXPORTS -I.. -g  -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT Unicode.cpp
In file included from Unicode.cpp:10:
../../include/IceUtil/Unicode.h:56: error: parse error before `&' token
../../include/IceUtil/Unicode.h:57: error: syntax error before `(' token
Unicode.cpp:23: error: parse error before `&' token
Unicode.cpp: In function `std::string IceUtil::wstringToString(...)':
Unicode.cpp:26: error: `str' undeclared (first use this function)
Unicode.cpp:26: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
Unicode.cpp: At global scope:
Unicode.cpp:65: error: syntax error before `::' token
Unicode.cpp:68: error: syntax error before `.' token
Unicode.cpp:71: error: parse error before `for'
Unicode.cpp:71: error: parse error before `;' token
Unicode.cpp:71: error: syntax error before `+=' token
Unicode.cpp:77: error: parse error before `if'
Unicode.cpp:80: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:80: error: conflicting types for `int len'
Unicode.cpp:70: error: previous declaration as `unsigned int len'
Unicode.cpp:81: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:81: error: redefinition of `int minval'
Unicode.cpp:75: error: `int minval' previously declared here
Unicode.cpp:82: error: parse error before `}' token
Unicode.cpp:90: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:90: error: redefinition of `int len'
Unicode.cpp:80: error: `int len' previously defined here
Unicode.cpp:91: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:91: error: redefinition of `int minval'
Unicode.cpp:81: error: `int minval' previously defined here
Unicode.cpp:92: error: parse error before `}' token
Unicode.cpp:96: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:96: error: redefinition of `int len'
Unicode.cpp:90: error: `int len' previously defined here
Unicode.cpp:97: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:97: error: redefinition of `int minval'
Unicode.cpp:91: error: `int minval' previously defined here
Unicode.cpp:98: error: parse error before `}' token
Unicode.cpp:103: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:103: error: redefinition of `int len'
Unicode.cpp:96: error: `int len' previously defined here
Unicode.cpp:104: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:104: error: redefinition of `int minval'
Unicode.cpp:97: error: `int minval' previously defined here
Unicode.cpp:105: error: parse error before `}' token
Unicode.cpp:110: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:110: error: redefinition of `int len'
Unicode.cpp:103: error: `int len' previously defined here
Unicode.cpp:111: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:111: error: redefinition of `int minval'
Unicode.cpp:104: error: `int minval' previously defined here
Unicode.cpp:112: error: parse error before `}' token
Unicode.cpp:117: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:117: error: redefinition of `int len'
Unicode.cpp:110: error: `int len' previously defined here
Unicode.cpp:118: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:118: error: redefinition of `int minval'
Unicode.cpp:111: error: `int minval' previously defined here
Unicode.cpp:119: error: parse error before `}' token
Unicode.cpp:128: error: parse error before `;' token
Unicode.cpp:135: error: syntax error before `<<=' token
Unicode.cpp:136: error: syntax error before `|=' token
make[2]: *** [Unicode.o] Error 1
make[2]: Leaving directory `/opt/src/Ice-1.5.1/src/IceUtil'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/opt/src/Ice-1.5.1/src'
make: *** [all] Error 1

has this error any sense for you?

there are same options in my gcc -v measing neded to buil Ice suscefuly?

thanks for all

pd: if any body is interesting in gentoo-embeded proyect
here are the stages and here the project main page

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    This looks as if your C++ compiler or library doesn't have std::wstring.
Sign In or Register to comment.