troubleshooting Question

mipsel-uclibc-gcc compiles gSOAP project without finding openssl

Avatar of TKD
TKD asked on
CSSL / HTTPSLinux OS Dev
27 Comments1 Solution1435 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 27 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 27 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros