We help IT Professionals succeed at work.
Get Started

mipsel-uclibc-gcc compiles gSOAP project without finding openssl

TKD
TKD asked
on
1,433 Views
Last Modified: 2010-04-21
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?
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2009
Commented:
This problem has been solved!
Unlock 1 Answer and 27 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE