cURL / Mailing Lists / curl-library / Single Mail

curl-library

app statically linked against curl and ssl doesn't work properly

From: Alex Tchumel <atchumel_at_hotmail.com>
Date: Mon, 25 Aug 2003 12:23:40 +0000

Hi folk!

Need your help.

An application statically linked against libcurl, libssl and libcrypto
doesn't work properly.

======================================================================================
Environment:

HP-UX 11.00
OpenSSL 0.9.7

bash-2.04# g++ -v
Reading specs from /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.2/specs
Configured with: ./configure : (reconfigured) ./configure : (reconfigured)
./configure --enable-threads=posix : (reconfigured) ./configure
--enable-threads=posix : (reconfigured) ./configure --with-gnu-as
--enable-threads=posix : (reconfigured) ./configure --with-gnu-as
--enable-threads=posix : (reconfigured) ./configure --with-gnu-as
--enable-threads=posix --enable-shared : (reconfigured) ./configure
--with-gnu-as --enable-threads=pthreads --enable-shared : (reconfigured)
./configure --with-gnu-as --enable-threads=posix --enable-shared :
(reconfigured) ./configure --with-gnu-as --enable-threads=posix :
(reconfigured)
./configure --with-gnu-as --enable-threads=posix : (reconfigured)
./configure
--with-gnu-as --enable-threads=posix : (reconfigured) ./configure :
(reconfigured) ./configure --with-gnu-as --enable-threads=posix
Thread model: posix
gcc version 3.2.2

bash-2.04# curl -V
curl 7.10.7 (hppa2.0w-hp-hpux11.00) libcurl/7.10.7 OpenSSL/0.9.7
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: SSL NTLM

======================================================================================
Application build:

A)

bash-2.04$ make
g++ -s -static -L/usr/local/lib -o aex-bootstrap aex-bootstrap.o
../MyString.o ../StringUtilities.o ../CommsFunctions.o ../DirGetURL.o
../common/CommonMain.o
../Debug.o -Wl,-a,shared -ldld -lpthread -lstdc++ -Wl,-a,archive -lcurl
-lssl -lcrypto

---------------------------------------------
Dbg output:

bash-2.04$ ./aex-bootstrap yama.my.ee

Getting Package:https://yama.my.ee/AeXNS/NSCap/Bin/UnixClient/HP-UX/ Into
Local
dir:/home/build/build_nsc/aex-bootstrap/tmp_inst/
   Failed getting Package, Msg:Unable to Connect to
URL:https://yama.my.ee/AeXNS/NSCap/Bin/UnixClient/HP-UX/ curllib Error:35
Desc:SSL: error:00000000:lib(0):func(0):reason(0)

Getting Package:http://yama.my.ee/AeXNS/NSCap/Bin/UnixClient/HP-UX/ Into
Local
dir:/home/build/build_nsc/aex-bootstrap/tmp_inst/
   Success getting Package.
Installing NS Client in <defaul location>
sh: /home/build/build_nsc/aex-bootstrap/tmp_inst/aex-setup: not found.
   Install failed, unable to execute aex-setup script.
---------------------------------------------
But actually I have nothing response from http://yama... And sometimes I see
in debug output:
curllib Error:52 Empty response from server

======================================================================================

B) - build against static libgcc and libstdc++

bash-2.04$ make
g++ -s -static-libgcc -L/usr/local/lib -o aex-bootstrap aex-bootstrap.o
../MyString.o ../StringUtilities.o ../CommsFunctions.o ../DirGetURL.o
../common/CommonMain.o
../Debug.o -Wl,-a,shared -ldld -lpthread -Wl,-a,archive -lstdc++ -lcurl
-lssl -lcrypto

---------------------------------------------
Dbg output:

bash-2.04$ ./aex-bootstrap yama.my.ee

Getting Package:https://yama.my.ee/AeXNS/NSCap/Bin/UnixClient/HP-UX/ Into
Local
dir:/home/build/build_nsc/aex-bootstrap/tmp_inst/
   Failed getting Package, Msg:Unable to Connect to
URL:https://yama.my.ee/AeXNS/NSCap/Bin/UnixClient/HP-UX/ curllib Error:6
Desc:Couldn't resolve host 'yama.my.ee'

Getting Package:http://yama.my.ee/AeXNS/NSCap/Bin/UnixClient/HP-UX/ Into
Local
dir:/home/build/build_nsc/aex-bootstrap/tmp_inst/
   Failed getting Package, Msg:Unable to Connect to
URL:http://yama.my.ee/AeXNS/NSCap/Bin/UnixClient/HP-UX/ curllib Error:6
Desc:Couldn't resolve host 'yama.my.ee'
Error getting Package at this time, rescheduling.
you are not authorized to use at. Sorry.
  Unable to reschedule bootstap, Client Install failed.

======================================================================================

BTW: dynamically linked application works properly.

Have you any idea about it? Where is a problem - curl / ssl / pthread /
stdc++ / gcc ???

Thank you.

Best regards,
Alex Tchumel.

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
Received on 2003-08-26