Re: Trying to Link Statically to Libcrypto

2011-07-20 Thread brandonshw
What a great amount of useful information. Thanks. -Original Message- From: Jeffrey Walton To: openssl-users Sent: Wed, Jul 20, 2011 9:57 am Subject: Re: Trying to Link Statically to Libcrypto On Wed, Jul 20, 2011 at 8:48 AM, wrote: It didn't fix it. In the end, I cannot

Re: Trying to Link Statically to Libcrypto

2011-07-20 Thread brandonshw
He just isn't a Linux guy, and I didn't know enough to advise him. -Original Message- From: Andreas Mueller To: brandonshw Sent: Wed, Jul 20, 2011 9:32 am Subject: Re: Fwd: Trying to Link Statically to Libcrypto Brandon, Quoting brandon...@aol.com: Although my current

Re: Trying to Link Statically to Libcrypto

2011-07-20 Thread brandonshw
Wow, you guys are good! Thanks. -Original Message- From: Michael S. Zick To: openssl-users Sent: Wed, Jul 20, 2011 9:27 am Subject: Re: Fwd: Trying to Link Statically to Libcrypto On Wed July 20 2011, brandon...@aol.com wrote: It didn't fix it. In the end, I cannot

Re: Trying to Link Statically to Libcrypto

2011-07-20 Thread Jeffrey Walton
you might find one of the comp.os.linux groups to be a better resource. For example, comp.os.linux.development (see http://groups.google.com/groups/dir?sel=usenet%3Dcomp.os.linux%2C). Jeff > -Original Message- > From: Amol Tambe > To: brandonshw > Sent: Wed, Jul 20, 2011 3:35

Re: Fwd: Trying to Link Statically to Libcrypto

2011-07-20 Thread Michael S. Zick
" or "rpm/deb" > technique instead. I don't know how to write those and would have to learn. > > Brandon > > > > > > > -Original Message- > From: Amol Tambe > To: brandonshw > Sent: Wed, Jul 20, 2011 3:35 am > Subject: Re: Trying to Link S

Fwd: Trying to Link Statically to Libcrypto

2011-07-20 Thread brandonshw
ead. I don't know how to write those and would have to learn. Brandon -Original Message- From: Amol Tambe To: brandonshw Sent: Wed, Jul 20, 2011 3:35 am Subject: Re: Trying to Link Statically to Libcrypto Good to know all your problems were solved. What fixed the last one? M

RE: Trying to Link Statically to Libcrypto

2011-07-19 Thread Jeremy Farrell
From: brandon...@aol.com Actually, I was advised to put libssl after libcrypto. I don't recall being told to put libssl after libldap. Also, knowing that order matters is of little use if you don't grasp what the order should be. You were told the right order a few

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread brandonshw
Thanks again. -Original Message- From: Michael S. Zick To: openssl-users Sent: Tue, Jul 19, 2011 2:03 pm Subject: Re: Trying to Link Statically to Libcrypto On Sun July 17 2011, brandon...@aol.com wrote: Although I've been programming on various platforms for quite awhi

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread brandonshw
Thanks. I had eventually succeeded by fixing my list of object files. -Original Message- From: Albrecht Schlosser To: openssl-users Sent: Tue, Jul 19, 2011 12:24 pm Subject: Re: Trying to Link Statically to Libcrypto On 19.07.2011 16:49, brandon...@aol.com wrote: *Okay, it is

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread Michael S. Zick
riginal Message- > From: Andreas Mueller > To: openssl-users > Sent: Sun, Jul 17, 2011 2:45 pm > Subject: Re: Trying to Link Statically to Libcrypto > > > Brandon, > Am 16.07.2011 um 10:59 schrieb brandon...@aol.com: > Actually, I believe it said that openldap.

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread Albrecht Schlosser
On 19.07.2011 16:49, brandon...@aol.com wrote: *Okay, it is acting like my /usr/lib/libssl.a is of no value. First, just for comparison, attempting to link with no reference to libssl at all:* Today at 14:23 you wrote "Thanks for the lesson. Highly informative.", but now you're still doing

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread Michael S. Zick
; /usr/lib/libldap.a(gssapi.o): In function `ldap_gssapi_bind_s': > (.text+0x16e7): undefined reference to `gss_release_buffer' > /usr/lib/libldap.a(gssapi.o): In function `ldap_gssapi_bind_s': > (.text+0x177f): undefined reference to `gss_init_sec_context' > /usr/lib/li

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread brandonshw
d allowing it to choose the so version, suddenly everything works. There are two warnings, but no errors. [root@linux Release]# g++ -o"" /usr/lib/libcrypto.a /usr/lib/libldap.a /usr/lib/libxml2.a /usr/lib/liblber.a -lz -ldl -lm -lssl -lsasl2 2>&1 /usr/lib/libldap.a(os-ip

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread Michael S. Zick
On Tue July 19 2011, Albrecht Schlosser wrote: > On 19.07.2011 13:30, Michael S. Zick wrote: > > But a quicker answer to just a symbol or a few: use the toolchain. > > ... > > > Now enter: > > nm /usr/lib/libldap.a > > be rewarded with a listing 1,830 lines long of the symbols defined > > and t

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread brandonshw
Thanks for the lesson. Highly informative. -Original Message- From: Michael S. Zick To: openssl-users Sent: Tue, Jul 19, 2011 7:30 am Subject: Re: Trying to Link Statically to Libcrypto On Tue July 19 2011, Albrecht Schlosser wrote: On 19.07.2011 07:20, brandon...@aol.com

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread Albrecht Schlosser
On 19.07.2011 13:30, Michael S. Zick wrote: But a quicker answer to just a symbol or a few: use the toolchain. ... Now enter: nm /usr/lib/libldap.a be rewarded with a listing 1,830 lines long of the symbols defined and the external symbols referenced. Of course, entering: nm --help will giv

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread Michael S. Zick
On Tue July 19 2011, Albrecht Schlosser wrote: > On 19.07.2011 07:20, brandon...@aol.com wrote: > > Actually, I was advised to put libssl after libcrypto. > > I'm afraid that is the wrong order. See below. > > > I don't recall being told to put libssl after libldap. > > Yep, may be. The rule

Re: Trying to Link Statically to Libcrypto

2011-07-19 Thread Albrecht Schlosser
On 19.07.2011 07:20, brandon...@aol.com wrote: Actually, I was advised to put libssl after libcrypto. I'm afraid that is the wrong order. See below. I don't recall being told to put libssl after libldap. Yep, may be. The rule is that libs with objects that are used by another lib must be

Re: Trying to Link Statically to Libcrypto

2011-07-18 Thread brandonshw
has taught me a lot. Brandon -Original Message- From: Jeremy Farrell To: openssl-users Sent: Mon, Jul 18, 2011 3:38 pm Subject: RE: Trying to Link Statically to Libcrypto The output is little or no help in knowing specifically what you've done wrong, What link command line did

RE: Trying to Link Statically to Libcrypto

2011-07-18 Thread Jeremy Farrell
x374): undefined reference to `gss_inquire_context' /usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libldap.a(gssapi.o): In function `ldap_int_gssapi_close': (.text+0x3cb): undefined reference to `gss_delete_sec_context' /usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libldap.a(gssapi.o): In function

Re: Trying to Link Statically to Libcrypto

2011-07-18 Thread brandonshw
In function `ldap_int_gssapi_close': (.text+0x3cb): undefined reference to `gss_delete_sec_context' /usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libldap.a(gssapi.o): In function `ldap_int_gssapi_setup': (.text+0x454): undefined reference to `gss_inquire_context' /usr/lib/gcc/i58

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread brandonshw
refer. Brandon -Original Message- From: Michael S. Zick To: openssl-users Sent: Sun, Jul 17, 2011 4:48 pm Subject: Re: Trying to Link Statically to Libcrypto On Sun July 17 2011, brandon...@aol.com wrote: Although I've been programming on various platforms for quite awhile, I don&#x

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread Michael S. Zick
s passed. Note also when you did: g++ --help in a terminal window that the order is: g++ files not: g++ files Also try: info g++ in a terminal window. Mike > > > > > > -Original Message- > From: Andreas Mueller > To: openssl-users > Sent: Sun, Jul 17, 201

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread brandonshw
Original Message- From: Andreas Mueller To: openssl-users Sent: Sun, Jul 17, 2011 2:45 pm Subject: Re: Trying to Link Statically to Libcrypto Brandon, Am 16.07.2011 um 10:59 schrieb brandon...@aol.com: Actually, I believe it said that openldap.so was complaining that they were t would c

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread Andreas Mueller
Brandon, Am 16.07.2011 um 10:59 schrieb brandon...@aol.com: > Actually, I believe it said that openldap.so was complaining that they were It would certainly help if you actually knew what it was saying, not just believed it! And wasn't it rather libldap.so, not openldap.so. Of course, l

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread Michael S. Zick
> -Original Message----- > From: Michael S. Zick > To: openssl-users > Sent: Sun, Jul 17, 2011 1:48 pm > Subject: Re: Trying to Link Statically to Libcrypto > > > On Sun July 17 2011, brandon...@aol.com wrote: > > Okay, I am in to my office for few mi

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread brandonshw
. Brandon -Original Message- From: Michael S. Zick To: openssl-users Sent: Sun, Jul 17, 2011 1:48 pm Subject: Re: Trying to Link Statically to Libcrypto On Sun July 17 2011, brandon...@aol.com wrote: Okay, I am in to my office for few minutes to get the details. Here is how I m com

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread Michael S. Zick
lect2: ld returned 1 exit status > > > > > > > > -Original Message----- > From: brandonshw > To: openssl-users > Sent: Sat, Jul 16, 2011 11:40 am > Subject: Re: Trying to Link Statically to Libcrypto > > > Thanks. This is some very useful infor

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread brandonshw
2011 11:40 am Subject: Re: Trying to Link Statically to Libcrypto Thanks. This is some very useful information and more than I knew. When I get back to work on Monday, or possibly before if I go in for a few minutes, I will send the full g++ command I am using as well as the erro

Re: Trying to Link Statically to Libcrypto

2011-07-16 Thread brandonshw
: openssl-users Sent: Sat, Jul 16, 2011 6:53 am Subject: Re: Trying to Link Statically to Libcrypto On Sat July 16 2011, brandon...@aol.com wrote: I am already linking in -lldap. Will -lopenldap work better? It is hard to say without seeing your full command input and he output of where the linker is

Re: Trying to Link Statically to Libcrypto

2011-07-16 Thread Michael S. Zick
On Sat July 16 2011, brandon...@aol.com wrote: > I am already linking in -lldap. Will -lopenldap work better? > It is hard to say without seeing your full command input and the output of where the linker is looking for libraries and in what order. __order matters__ > > link to OpenSSL first, a

Re: Trying to Link Statically to Libcrypto

2011-07-16 Thread brandonshw
I am already linking in -lldap. Will -lopenldap work better? -Original Message- From: Jeffrey Walton To: openssl-users Sent: Sat, Jul 16, 2011 3:06 am Subject: Re: Trying to Link Statically to Libcrypto On Sat, Jul 16, 2011 at 2:39 AM, wrote: Hi. I am writing some C++ on

Re: Trying to Link Statically to Libcrypto

2011-07-16 Thread Jeffrey Walton
On Sat, Jul 16, 2011 at 2:39 AM, wrote: > Hi. > > I am writing some C++ on Linux with g++. When I try to link statically to > libcrypto, by using the libcrypto.a library, it complains that > RSA_generate_key and DH_generate_parameters are undefined references. > Actually, I believe it said that o

Trying to Link Statically to Libcrypto

2011-07-15 Thread brandonshw
Hi. I am writing some C++ on Linux with g++. When I try to link statically to libcrypto, by using the libcrypto.a library, it complains that RSA_generate_key and DH_generate_parameters are undefined references. Actually, I believe it said that openldap.so was complaining that they were undefin