Avatar of TKD
TKD

asked on 

mipsel-uclibc-gcc compiles gSOAP project without finding openssl

Hi experts,
I modify the webserver sample in gSOAP sample directory and compile it with gcc compiler. It is successful. But now I use cross-compiler mipsel-uclibc-gcc to compile the webserver sample. The mipsel-uclibc-gcc compiler shows me the error message:
-------------------------------------------------------------------------
mipsel-uclibc-gcc -Wall -O2 -I../.. -I../../plugin -I. -L. -DDEBUG -DWITH_OPENSSL -DWITH_COOKIES -D wchar_t="unsigned int" -c ../../plugin/logging.c
In file included from ../../plugin/logging.h:53,
                 from ../../plugin/logging.c:29:
../../stdsoap2.h:568:26: openssl/bio.h: No such file or directory
../../stdsoap2.h:569:26: openssl/err.h: No such file or directory
../../stdsoap2.h:570:27: openssl/rand.h: No such file or directory
../../stdsoap2.h:571:26: openssl/ssl.h: No such file or directory
../../stdsoap2.h:572:29: openssl/x509v3.h: No such file or directory
../../stdsoap2.h:575:5: #error "Must use OpenSSL 0.9.6 or later"
In file included from ../../plugin/logging.h:53,
                 from ../../plugin/logging.c:29:
../../stdsoap2.h:1688: parse error before "X509_STORE_CTX"
../../stdsoap2.h:1689: warning: no semicolon at end of struct or union
../../stdsoap2.h:1690: warning: type defaults to `int' in declaration of `ssl'
../../stdsoap2.h:1690: warning: data definition has no type or storage class
../../stdsoap2.h:1691: parse error before '*' token
../../stdsoap2.h:1691: warning: type defaults to `int' in declaration of `ctx'
../../stdsoap2.h:1691: warning: data definition has no type or storage class
../../stdsoap2.h:1700: parse error before '*' token
../../stdsoap2.h:1700: warning: type defaults to `int' in declaration of `session'
../../stdsoap2.h:1700: warning: data definition has no type or storage class
../../stdsoap2.h:1728: parse error before '}' token
../../plugin/logging.c: In function `logging_init':
../../plugin/logging.c:55: dereferencing pointer to incomplete type
../../plugin/logging.c:56: dereferencing pointer to incomplete type
../../plugin/logging.c:57: dereferencing pointer to incomplete type
../../plugin/logging.c:58: dereferencing pointer to incomplete type
make: *** [logging.o] Error 1
-------------------------------------------------------------------------
I try to add the [-I/usr/include/openssl] to solve this problem, but the error message stll exists.
What should I do?
CSSL / HTTPSLinux OS Dev

Avatar of undefined
Last Comment
TKD

8/22/2022 - Mon