2009-03-24 08:16:36     compiling error

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2009-03-24 08:16:36     compiling error

sudeep tarafdar (INDIA)

Message: 71445   

 

Hi

 

 

 

I have already compiled gsoap from gcc compiler

 

I have build Blackfin from live source but on compiling GSOAP by using bfin-uclinux-gcc  I am getting the following error :

 

 

make  all-recursive

make[1]: Entering directory `/home/novus/gsoap-2.7'

Making all in gsoap

make[2]: Entering directory `/home/novus/gsoap-2.7/gsoap'

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I..      -DLINUX -g -O2 -MT libgsoap_a-stdsoap2.o -MD -MP -MF .deps/libgsoap_a-stdsoap2.Tpo -c -o libgsoap_a-stdsoap2.o `test -f 'stdsoap2.c' || echo './'`stdsoap2.c

In file included from stdsoap2.c:70:

stdsoap2.h:1466: error: expected specifier-qualifier-list before ‘wchar_t’

stdsoap2.h:1512: error: expected specifier-qualifier-list before ‘wchar_t’

stdsoap2.h:2102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.h:2109: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token

stdsoap2.h:2110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.h:2186: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.h:2207: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token

stdsoap2.h:2235: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.h:2236: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.h:2259: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.h:2260: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.c:2125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.c:9046: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token

stdsoap2.c:9120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.c:10501: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.c: In function ‘soap_s2wchar’:

stdsoap2.c:10503: error: ‘wchar_t’ undeclared (first use in this function)

stdsoap2.c:10503: error: (Each undeclared identifier is reported only once

stdsoap2.c:10503: error: for each function it appears in.)

stdsoap2.c:10503: error: ‘r’ undeclared (first use in this function)

stdsoap2.c:10504: error: ‘t’ undeclared (first use in this function)

stdsoap2.c:10504: error: expected expression before ‘)’ token

stdsoap2.c:10517: error: expected ‘;’ before ‘c’

stdsoap2.c: At top level:

stdsoap2.c:10553: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token

stdsoap2.c:10666: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.c: In function ‘soap_outwstring’:

stdsoap2.c:10667: error: ‘p’ undeclared (first use in this function)

stdsoap2.c: At top level:

stdsoap2.c:10685: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.c:11012: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.c: In function ‘soap_outwliteral’:

stdsoap2.c:11036: error: ‘p’ undeclared (first use in this function)

stdsoap2.c:11037: error: ‘wchar_t’ undeclared (first use in this function)

stdsoap2.c:11037: error: expected ‘;’ before ‘c’

stdsoap2.c:11038: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.c:11038: error: ‘s’ undeclared (first use in this function)

stdsoap2.c:11039: error: ‘c’ undeclared (first use in this function)

stdsoap2.c: At top level:

stdsoap2.c:11055: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

make[2]: *** [libgsoap_a-stdsoap2.o] Error 1

make[2]: Leaving directory `/home/novus/gsoap-2.7/gsoap'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/novus/gsoap-2.7'

make: *** [all] Error 2

 

 

 

how to build bfin linux so that i can successfully compile gsoap

 

thanks

QuoteReplyEditDelete

 

 

2009-03-24 09:11:21     Re: compiling error

Robin Getz (UNITED STATES)

Message: 71448   

 

Sudeep:

 

Looks like gsoap requires wchar - which is avalible in the uClibc-full version (its not turned on by default) - since most people don't need it.

 

-Robin

QuoteReplyEditDelete

 

 

2009-03-25 01:46:29     Re: compiling error

sudeep tarafdar (INDIA)

Message: 71479   

 

thanks for Your reply

 

I have downloaded Blackfin from the live source link :

 

http://docs.blackfin.uclinux.org/doku.php?id=developing_with_blackfin_live_sources

 

could u tell me how to enable wchar so that i can successfully compile GSOAP ...

 

or I have to download some another version of blackfin compiler   ....and if i had to to do so could u send me the link for the compiler in which wchar is enabled  ...

 

 

 

I am using UBUNTU ....

QuoteReplyEditDelete

 

 

2009-03-25 02:05:14     Re: compiling error

Mike Frysinger (UNITED STATES)

Message: 71480   

 

it's probably easier to disable wchar support in gsoap

QuoteReplyEditDelete

 

 

2009-04-07 02:14:41     Re: compiling error

sudeep tarafdar (INDIA)

Message: 72292   

 

hi

 

 

 

I am having some problem in compiling gsoap ....

 

i am using the following command

 

./configure CC=bfin-uclinux-g++ --host=bfin-uclinux

 

followed by make in which i am getting the following error .....

 

include/c++/cstdlib:122: error: ‘::malloc’ has not been declared

stdsoap2.c: In function ‘int soap_dime_forward(soap*, unsigned char**, int*, char**, char**, char**)’:

stdsoap2.c:2094: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘soap_blist* soap_new_block(soap*)’:

stdsoap2.c:2148: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘void* soap_push_block(soap*, soap_blist*, size_t)’:

stdsoap2.c:2170: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘int soap_push_namespace(soap*, const char*, const char*)’:

stdsoap2.c:2739: error: ‘malloc’ was not declared in this scope

stdsoap2.c:2750: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘soap* soap_new2(soap_mode, soap_mode)’:

stdsoap2.c:4841: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘int soap_pointer_enter(soap*, const void*, const soap_array*, int, int, soap_plist**)’:

stdsoap2.c:4949: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘soap_ilist* soap_enter(soap*, const char*)’:

stdsoap2.c:5511: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘void* soap_malloc(soap*, size_t)’:

stdsoap2.c:5533: error: ‘malloc’ was not declared in this scope

stdsoap2.c:5539: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘soap_clist* soap_link(soap*, void*, int, int, int (*)(soap_clist*))’:

stdsoap2.c:5766: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘void* soap_id_forward(soap*, const char*, void*, size_t, int, int, size_t, unsigned int, void (*)(soap*, int, int, void*, size_t, const void*, size_t))’:

stdsoap2.c:5949: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘soap* soap_copy(const soap*)’:

stdsoap2.c:6446: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘soap* soap_copy_context(soap*, const soap*)’:

stdsoap2.c:6521: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘void soap_set_local_namespaces(soap*)’:

stdsoap2.c:6968: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘soap_nlist* soap_push_ns(soap*, const char*, const char*, short int)’:

stdsoap2.c:7047: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘int soap_set_attr(soap*, const char*, const char*)’:

stdsoap2.c:7873: error: ‘malloc’ was not declared in this scope

stdsoap2.c:7927: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘int soap_append_lab(soap*, const char*, size_t)’:

stdsoap2.c:8060: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘int soap_peek_element(soap*)’:

stdsoap2.c:8238: error: ‘malloc’ was not declared in this scope

stdsoap2.c:8292: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘int soap_envelope_begin_in(soap*)’:

stdsoap2.c:13621: error: ‘malloc’ was not declared in this scope

stdsoap2.c:13628: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘int soap_connect_command(soap*, int, const char*, const char*)’:

stdsoap2.c:13809: error: ‘malloc’ was not declared in this scope

stdsoap2.c: In function ‘int soap_register_plugin_arg(soap*, int (*)(soap*, soap_plugin*, void*), void*)’:

stdsoap2.c:15070: error: ‘malloc’ was not declared in this scope

make[2]: *** [libgsoap_a-stdsoap2.o] Error 1

make[2]: Leaving directory `/home/novus/gsoap-2.7/gsoap'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/novus/gsoap-2.7'

make: *** [all] Error 2

 

 

and if i am using  ./configure CC=bfin-uclinux-gcc --host=bfin-uclinux followed by make i am getting the following error

 

In file included from stdsoap2.c:70:

stdsoap2.h:1466: error: expected specifier-qualifier-list before ‘wchar_t’

stdsoap2.h:1512: error: expected specifier-qualifier-list before ‘wchar_t’

stdsoap2.h:2102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.h:2109: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token

stdsoap2.h:2110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.h:2186: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.h:2207: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token

stdsoap2.h:2235: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.h:2236: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.h:2259: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.h:2260: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.c:2125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.c:9046: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token

stdsoap2.c:9120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.c:10501: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.c: In function ‘soap_s2wchar’:

stdsoap2.c:10503: error: ‘wchar_t’ undeclared (first use in this function)

stdsoap2.c:10503: error: (Each undeclared identifier is reported only once

stdsoap2.c:10503: error: for each function it appears in.)

stdsoap2.c:10503: error: ‘r’ undeclared (first use in this function)

stdsoap2.c:10504: error: ‘t’ undeclared (first use in this function)

stdsoap2.c:10504: error: expected expression before ‘)’ token

stdsoap2.c:10517: error: expected ‘;’ before ‘c’

stdsoap2.c: At top level:

stdsoap2.c:10553: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token

stdsoap2.c:10666: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.c: In function ‘soap_outwstring’:

stdsoap2.c:10667: error: ‘p’ undeclared (first use in this function)

stdsoap2.c: At top level:

stdsoap2.c:10685: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.c:11012: error: expected declaration specifiers or ‘...’ before ‘wchar_t’

stdsoap2.c: In function ‘soap_outwliteral’:

stdsoap2.c:11036: error: ‘p’ undeclared (first use in this function)

stdsoap2.c:11037: error: ‘wchar_t’ undeclared (first use in this function)

stdsoap2.c:11037: error: expected ‘;’ before ‘c’

stdsoap2.c:11038: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

stdsoap2.c:11038: error: ‘s’ undeclared (first use in this function)

stdsoap2.c:11039: error: ‘c’ undeclared (first use in this function)

stdsoap2.c: At top level:

stdsoap2.c:11055: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

make[2]: *** [libgsoap_a-stdsoap2.o] Error 1

make[2]: Leaving directory `/home/novus/gsoap-2.7/gsoap'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/novus/gsoap-2.7'

make: *** [all] Error 2

 

 

 

 

 

 

kindly help me in solving the above issue ..

 

Thanks

 

 

 

 

QuoteReplyEditDelete

 

 

2009-04-22 17:02:02     Re: compiling error

Robin Getz (UNITED STATES)

Message: 73080   

 

../gsoap-2.7/configure --host=bfin-linux-uclibc --build=i686-pc-linux-gnu --prefix=/usr --sysconfdir=/etc --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var/lib --disable-dependency-tracking --enable-fast-install

 

seems to work for me

QuoteReplyEditDelete

 

 

2009-08-28 04:53:32     Re: compiling error

jie yao (CHINA)

Message: 79348   

 

hi,

 

I met the same errors while compiling gsoap.Could you send me your gsoap to my email: goon863@163.com?Robin Getz .Which gcc version do you use?Thanks a lot.

 

./configure --host=bfin-linux-uclibc --build=i686-pc-linux-gnu --prefix=/usr --sysconfdir=/etc --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var/lib --disable-dependency-tracking --enable-fast-install

 

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I..      -DLINUX -g -O2 -c -o libgsoap_a-stdsoap2.o `test -f 'stdsoap2.c' || echo './'`stdsoap2.c

In file included from stdsoap2.c:70:

stdsoap2.h:1480: error: expected specifier-qualifier-list before 'wchar_t'

stdsoap2.h:1526: error: expected specifier-qualifier-list before 'wchar_t'

stdsoap2.h:2119: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.h:2126: error: expected ';', ',' or ')' before '*' token

stdsoap2.h:2127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.h:2203: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.h:2224: error: expected ';', ',' or ')' before '*' token

stdsoap2.h:2252: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.h:2253: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.h:2276: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.h:2277: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.c:2128: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.c:9122: error: expected ';', ',' or ')' before '*' token

stdsoap2.c:9196: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.c:10577: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.c: In function 'soap_s2wchar':

stdsoap2.c:10579: error: 'wchar_t' undeclared (first use in this function)

stdsoap2.c:10579: error: (Each undeclared identifier is reported only once

stdsoap2.c:10579: error: for each function it appears in.)

stdsoap2.c:10579: error: 'r' undeclared (first use in this function)

stdsoap2.c:10580: error: 't' undeclared (first use in this function)

stdsoap2.c:10580: error: expected expression before ')' token

stdsoap2.c:10593: error: expected ';' before 'c'

stdsoap2.c: At top level:

stdsoap2.c:10629: error: expected ';', ',' or ')' before '*' token

stdsoap2.c:10742: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.c: In function 'soap_outwstring':

stdsoap2.c:10743: error: 'p' undeclared (first use in this function)

stdsoap2.c: At top level:

stdsoap2.c:10761: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.c:11094: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.c: In function 'soap_outwliteral':

stdsoap2.c:11118: error: 'p' undeclared (first use in this function)

stdsoap2.c:11119: error: 'wchar_t' undeclared (first use in this function)

stdsoap2.c:11119: error: expected ';' before 'c'

stdsoap2.c:11120: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.c:11120: error: 's' undeclared (first use in this function)

stdsoap2.c:11121: error: 'c' undeclared (first use in this function)

stdsoap2.c: At top level:

stdsoap2.c:11137: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

make[2]: *** [libgsoap_a-stdsoap2.o] Error 1

QuoteReplyEditDelete

 

 

2009-08-28 04:53:36     Re: compiling error

jie yao (CHINA)

Message: 79349   

 

hi,

 

I met the same errors while compiling gsoap.Could you send me your gsoap to my email: goon863@163.com?Robin Getz .Which gcc version do you use?Thanks a lot.

 

./configure --host=bfin-linux-uclibc --build=i686-pc-linux-gnu --prefix=/usr --sysconfdir=/etc --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var/lib --disable-dependency-tracking --enable-fast-install

 

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I..      -DLINUX -g -O2 -c -o libgsoap_a-stdsoap2.o `test -f 'stdsoap2.c' || echo './'`stdsoap2.c

In file included from stdsoap2.c:70:

stdsoap2.h:1480: error: expected specifier-qualifier-list before 'wchar_t'

stdsoap2.h:1526: error: expected specifier-qualifier-list before 'wchar_t'

stdsoap2.h:2119: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.h:2126: error: expected ';', ',' or ')' before '*' token

stdsoap2.h:2127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.h:2203: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.h:2224: error: expected ';', ',' or ')' before '*' token

stdsoap2.h:2252: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.h:2253: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.h:2276: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.h:2277: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.c:2128: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.c:9122: error: expected ';', ',' or ')' before '*' token

stdsoap2.c:9196: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.c:10577: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.c: In function 'soap_s2wchar':

stdsoap2.c:10579: error: 'wchar_t' undeclared (first use in this function)

stdsoap2.c:10579: error: (Each undeclared identifier is reported only once

stdsoap2.c:10579: error: for each function it appears in.)

stdsoap2.c:10579: error: 'r' undeclared (first use in this function)

stdsoap2.c:10580: error: 't' undeclared (first use in this function)

stdsoap2.c:10580: error: expected expression before ')' token

stdsoap2.c:10593: error: expected ';' before 'c'

stdsoap2.c: At top level:

stdsoap2.c:10629: error: expected ';', ',' or ')' before '*' token

stdsoap2.c:10742: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.c: In function 'soap_outwstring':

stdsoap2.c:10743: error: 'p' undeclared (first use in this function)

stdsoap2.c: At top level:

stdsoap2.c:10761: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.c:11094: error: expected declaration specifiers or '...' before 'wchar_t'

stdsoap2.c: In function 'soap_outwliteral':

stdsoap2.c:11118: error: 'p' undeclared (first use in this function)

stdsoap2.c:11119: error: 'wchar_t' undeclared (first use in this function)

stdsoap2.c:11119: error: expected ';' before 'c'

stdsoap2.c:11120: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

stdsoap2.c:11120: error: 's' undeclared (first use in this function)

stdsoap2.c:11121: error: 'c' undeclared (first use in this function)

stdsoap2.c: At top level:

stdsoap2.c:11137: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

make[2]: *** [libgsoap_a-stdsoap2.o] Error 1

QuoteReplyEditDelete

 

 

2009-08-28 09:44:49     Re: compiling error

Robin Getz (UNITED STATES)

Message: 79361   

 

Jie:

 

I didn't compile gsoap. Sudeep did. Mike and I just told him how to do it (disable wchar).

 

-Robin

QuoteReplyEditDelete

 

 

2010-06-11 00:12:24     Re: compiling error

Surendra Oturkar (INDIA)

Message: 90252   

 

Hi All,

 

I was able to compile & integrate gsoap on uclinux successfully.

 

Please reply  if any body has any issues.

 

Thanks,

 

Surendra

1 person found this helpful

Attachments

    Outcomes