cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: curl with ssl problems on HP-UX

From: Shaer, Ofira <Oshaer_at_ndsisrael.com>
Date: Mon, 12 Aug 2002 13:24:38 +0300

This is the Makefile I use:
----------------------------------------------------------------------------
--------------------------------------------------
# Compiler flags, -g for debug, -c to make an object file
CFLAGS = -c -g

# This should point to a directory that holds libcurl, if it isn't
# in the system's standard lib dir
# We also set a -L to include the directory where we have the openssl
# libraries
LDFLAGS = -L/users/oshaer/openssl/lib -L/users/oshaer/curlssl/lib

# We need -lcurl for the curl stuff
# We need -lsocket and -lnsl when on Solaris
# We need -lssl and -lcrypto when using libcurl with SSL support
# We need -ldl for dlopen() if that is in libdl
# We need -lpthread for the pthread example
LIBS = -lssl -lcrypto -lcurl

# Link the target with all objects and libraries
$(TARGET) : $(OBJS)

        $(CC) $(LDFLAGS) $(LIBS) -o $(TARGET) $(OBJS)

# Compile the source files into object files
$(PROJ).o : $(PROJ).c
        $(CC) -I/users/oshaer/curlssl/include
-I/users/oshaer/openssl/include $(CFLAGS) $<

when PROJ is each of the example files. I use the same makefile for non-ssl
version, only without the path to the ssl library. I don't understand how
does the curl tests work, I tried to look at the Makefile of these tests and
I did not find anything that can help.

:) Have a good day.
 Ofira Shaer
 ext. 4518

 -----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Monday, August 12, 2002 1:03 PM
To: Shaer, Ofira
Cc: libcurl Mailing list
Subject: Re: curl with ssl problems on HP-UX

On Mon, 12 Aug 2002, Shaer, Ofira wrote:

[I moved this thread over to the libcurl mailing list. Please post
follow-ups
here.]

> I have been trying to compile libcurl on HP-UX.

> It worked for curl without ssl, but for with-ssl version I had a problem:
> when trying to link the examples against that version , I get "unsatisfied
> symbols" for all curl functions.

So how did you link your example code? What difference did you make with
non-ssl library compared to the ssl one?

> The tests, though, passed successfully.

You mean the curl tests? Then you know the curl tool links properly with the
library.

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-08-12