Re: WTL_patch_lxml error!
"Ivone Uribe" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! Thanks Alexander for help me! :) But now I have another error :( I got this: ................ gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o ec_parameters.o -c ec_parameters.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o fake_wtls.o -c fake_wtls.c fake_wtls.c: In function `connect_to_wtls': fake_wtls.c:257: warning: passing arg 2 of `connect' from incompatible pointer type fake_wtls.c: In function `fake_wtls': fake_wtls.c:298: warning: passing arg 5 of `recvfrom' from incompatible pointer type gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o identifier.o -c identifier.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o key_exchange.o -c key_exchange.c ..................... ...................... I/usr/local/ssl/include -I. -o wdp.o -c wdp.c wdp.c: In function `WDPDatagram_connect_kannel': wdp.c:164: warning: passing arg 2 of `connect' from incompatible pointer type wdp.c: In function `WDPDatagram_recv': wdp.c:204: warning: passing arg 5 of `recvfrom' from incompatible pointer type gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_alert.o -c wtls_alert.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_box.o -c wtls_box.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_encrypt.o -c wtls_encrypt.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_event.o -c wtls_event.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_handshake.o -c wtls_handshake.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_machine.o -c wtls_machine.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_record.o -c wtls_record.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_server.o -c wtls_server.c gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_states.o -c wtls_states.c ar rc libwtls.a algorithm.o certificate.o cipher_suite.o client_hello.o compression.o conn_state.o dh_parameters.o ec_parameters.o fake_wtls.o identifier.o key_exchange.o opaque_vector.o param_specifier.o prf.o public_key.o random.o server_hello.o udp.o utils.o wdp.o wtls_alert.o wtls_box.o wtls_encrypt.o wtls_event.o wtls_handshake.o wtls_machine.o wtls_record.o wtls_server.o wtls_states.o ranlib libwtls.a gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. -o wtls_box wtls_box.o libwtls.a -lz -lpthread -lnsl -lm -L/usr/lib -lxml2 -lz -L/usr/local/ssl/lib -lcrypto libwtls.a(wtls_encrypt.o): In function `wtls_YZ5_cbc_encrypt': /usr/local/gw/patch/gateway-wtls/gw/wtls/wtls_encrypt.c:429: undefined reference to `RC5_32_set_key' /usr/local/gw/patch/gateway-wtls/gw/wtls/wtls_encrypt.c:430: undefined reference to `RC5_32_cbc_encrypt' libwtls.a(wtls_encrypt.o): In function `wtls_YZ5_cbc_decrypt': /usr/local/gw/patch/gateway-wtls/gw/wtls/wtls_encrypt.c:446: undefined reference to `RC5_32_set_key' /usr/local/gw/patch/gateway-wtls/gw/wtls/wtls_encrypt.c:447: undefined reference to `RC5_32_cbc_encrypt' collect2: ld returned 1 exit status make: *** [wtls_box] Error 1 I have the openss-0.9.6g in the directory /usr/local/ssl so I set this variable in the make of the patch: #LIBS=-lz -lpthread -lnsl -lm -L/usr/lib -lxml -lz -lcrypto LIBS=-lz -lpthread -lnsl -lm -L/usr/lib -lxml2 -lz -L/usr/local/ssl/lib -lcrypto #CFLAGS=-D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/include -I. #LDFLAGS= CFLAGS=-D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include -I. LDFLAGS= is it right? I can't understand this error (undefined reference to `RC5_32_....?) Please, what can I do to solve this problem? Any idea? Thanks in advance, Ivone > > I have the libxml2-devel-2.4.2-1...rpm and the libxml2-2.4.2-1...rpm > > installed. I set this variables LD_LIBRARY_PATH=/usr/lib, > > LD_RUN_PATH=/usr/lib, but the error stay. > > > > Do I need another library like "libxml1" or maybe I need set any >variable? > > > > Please, anyone can help me? Any idea? > > > > > > Thanks in advance, > > Ivone > > >From: Alexander Malysh <[email protected]> >To: "Ivone Uribe" <[email protected]>, [email protected] >CC: [email protected] >Subject: Re: WTL_patch_lxml error! >Date: Tue, 29 Oct 2002 01:08:02 +0100 > >Hi, > >this should be -lxml2 > > >Am Montag, 28. Oktober 2002 23:53 schrieb Ivone Uribe: > > Hi all again! > > > > Now, I'm trying to install the wtls_patch for the kannel gateway. > > > > But when I execute " make " for this patch (wtls_patch) I get an error! > > > > [root@WAP_GATEWAY wtls]# make > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o algorithm.o -c algorithm.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o certificate.o -c certificate.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o cipher_suite.o -c cipher_suite.c > > .............. > > ............. > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o fake_wtls.o -c fake_wtls.c > > fake_wtls.c: In function `connect_to_wtls': > > fake_wtls.c:257: warning: passing arg 2 of `connect' from incompatible > > pointer type > > fake_wtls.c: In function `fake_wtls': > > fake_wtls.c:298: warning: passing arg 5 of `recvfrom' from incompatible > > pointer type > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o identifier.o -c identifier.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o key_exchange.o -c key_exchange.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o opaque_vector.o -c opaque_vector.c > > ............. > > ........... > > I/usr/local/ssl/include -I. -o random.o -c random.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o server_hello.o -c server_hello.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o udp.o -c udp.c > > udp.c: In function `grab_datagram': > > udp.c:109: warning: passing arg 5 of `recvfrom' from incompatible >pointer > > type > > udp.c: In function `grab_kannel_datagram': > > udp.c:159: warning: passing arg 5 of `recvfrom' from incompatible >pointer > > type > > udp.c: In function `send_datagram': > > udp.c:203: warning: passing arg 5 of `sendto' from incompatible pointer > > type udp.c: In function `send_to_kannel_gw': > > udp.c:254: warning: passing arg 5 of `sendto' from incompatible pointer > > type gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml > > -I/usr/local/ssl/include -I. -o utils.o -c utils.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o wdp.o -c wdp.c > > wdp.c: In function `WDPDatagram_connect_kannel': > > wdp.c:164: warning: passing arg 2 of `connect' from incompatible pointer > > type > > wdp.c: In function `WDPDatagram_recv': > > wdp.c:204: warning: passing arg 5 of `recvfrom' from incompatible >pointer > > type > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o wtls_alert.o -c wtls_alert.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o wtls_box.o -c wtls_box.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o wtls_encrypt.o -c wtls_encrypt.c > > .......... > > .................... > > I/usr/local/ssl/include -I. -o wtls_server.o -c wtls_server.c > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o wtls_states.o -c wtls_states.c > > ar rc libwtls.a algorithm.o certificate.o cipher_suite.o client_hello.o > > compression.o conn_state.o dh_parameters.o ec_parameters.o fake_wtls.o > > identifier.o key_exchange.o opaque_vector.o param_specifier.o prf.o > > public_key.o random.o server_hello.o udp.o utils.o wdp.o wtls_alert.o > > wtls_box.o wtls_encrypt.o wtls_event.o wtls_handshake.o wtls_machine.o > > wtls_record.o wtls_server.o wtls_states.o > > ranlib libwtls.a > > gcc -D_REENTRANT=1 -g -O2 -I/usr/include/libxml -I/usr/local/ssl/include > > -I. -o wtls_box wtls_box.o libwtls.a -lz -lpthread -lnsl -lm -L/usr/lib > > -lxml -lz -L/usr/local/ssl/lib -lcrypto > > /usr/bin/ld: cannot find -lxml > > collect2: ld returned 1 exit status > > make: *** [wtls_box] Error 1 > > > > > > I don't understand the cause for this error: "/usr/bin/ld: cannot find > > -lxml. " > > > > I have the libxml2-devel-2.4.2-1...rpm and the libxml2-2.4.2-1...rpm > > installed. I set this variables LD_LIBRARY_PATH=/usr/lib, > > LD_RUN_PATH=/usr/lib, but the error stay. > > > > Do I need another library like "libxml1" or maybe I need set any >variable? > > > > Please, anyone can help me? Any idea? > > > > > > Thanks in advance, > > Ivone > > > > > > > > > > > > _________________________________________________________________ > > MSN Fotos: la forma más fácil de compartir e imprimir fotos. > > http://photos.msn.es/support/worldwide.aspx > >-- >Mit besten GrüÃen aus Köln > >Dipl.-Ing. >Alexander Malysh >___________________________________ > >Centrium GmbH >Ehrenstrasse 2 >50672 Köln > >Fon: +49 (0221) 277 49 150 >Fax: +49 (0221) 277 49 109 > >email: [email protected] >web: http://www.centrium.de _________________________________________________________________ MSN. Más Ãtil Cada DÃa http://www.msn.es/intmap/