Re: Undefined Reference to "bn_get_words()" and "bn_get_top()".

2022-01-11 Thread Tomas Mraz
On Tue, 2022-01-11 at 10:15 +, Kumar Mishra, Sanjeev wrote: > Hi, > I am getting following linking Error for APIs "bn_get_words()" and > "bn_get_top()" while compiling with OpenSSL 3.0. Although crypto/bn.h > is included in file. > Please help to resolve it. > Regards, > Sanjeev These symbols

Undefined Reference to "bn_get_words()" and "bn_get_top()".

2022-01-11 Thread Kumar Mishra, Sanjeev
t/libs/db64/libdrm.a(DrmDebugUtils.o): in function `DrmDbgNitroxCmd(int, char**, CLI_CMD_STR*, void*)': /sonus/p4/ws/skumarmishra/openssl3_howard/orca/drm/lib/src/DrmDebugUtils.c:5704: undefined reference to `bn_get_words(bignum_st const*)' /bin/ld: /sonus/p4/ws/skumarmishra/openssl3_howard/orca/dr

Re: [openssl-users] OpenSSL 1.0.2.f undefined reference: _Stoul

2016-10-18 Thread Michael Wojcik
> From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf > Of craig_we...@trendmicro.com > Sent: Tuesday, October 18, 2016 14:05 > > Ok, I see *how* this is happening, but I don't understand why. In the > version of stdlib.h that I am including I see: > [omitted] > > So, for C

Re: [openssl-users] OpenSSL 1.0.2.f undefined reference: _Stoul

2016-10-18 Thread craig_we...@trendmicro.com
ot;helping" me more than I want but I don't know how to make it stop. -Original Message- From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of Salz, Rich Sent: Friday, October 14, 2016 4:21 PM To: openssl-users@openssl.org Subject: Re: [openssl-users] OpenSSL

Re: [openssl-users] OpenSSL 1.0.2.f undefined reference: _Stoul

2016-10-14 Thread Salz, Rich
Stoul is usually a C++ function. Are you sure you're using the right compiler? Add -lm to your link libraries? That's all I've got. -- Senior Architect, Akamai Technologies Member, OpenSSL Dev Team IM: richs...@jabber.at Twitter: RichSalz -- openssl-users mailing list To unsubscribe: http

Re: [openssl-users] OpenSSL 1.0.2.f undefined reference: _Stoul

2016-10-14 Thread craig_we...@trendmicro.com
I think you are right about some kind of munging of the .c source via some header file. I just don't know exactly how to track that down. Here are the files that reference _Stoul in libcrypto.a: ec_pmeth.c rsa_pmeth.c dsa_pmeth.c dh_pmeth.c b_sock.c asn1_gen.c a_strnid.c ocsp_ht.c ts_conf.c

Re: [openssl-users] OpenSSL 1.0.2.f undefined reference: _Stoul

2016-10-14 Thread Salz, Rich
"Stoul" doesn't appear in OpenSSL source. It sounds like some header/runtime integration issue. Try your 'nm' command with -o to see the filename. -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

[openssl-users] OpenSSL 1.0.2.f undefined reference: _Stoul

2016-10-14 Thread craig_we...@trendmicro.com
We are integrating 1.0.2f into a single product that is built for a Pentium-based platform and a Mips-based platform, both running on VxWorks. The Pentium-based version compiles and links without error. But the Mips-based version fails with undefined references to _Stoul. If I search the 2 l

Re: [openssl-users] Building OpenSSL on Linux , undefined reference to 'main'

2016-02-15 Thread Rob Hermann
_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$

Re: [openssl-users] Building OpenSSL on Linux , undefined reference to 'main'

2016-02-15 Thread Matt Caswell
;>> LDCMD="${LDCMD:-gcc}"; LDFLAGS="${LDFLAGS:--DZLIB -DOPENSSL_THREADS >>> -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -DL_ENDIAN -O3 >>> -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS >>> -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MON

Re: [openssl-users] Building OpenSSL on Linux , undefined reference to 'main'

2016-02-15 Thread Rob Hermann
:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=md2test} md2test.o ${LIBDEPS} ) /usr/lib/gcc/i686-redhat-linux/4.4.7/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status mak

Re: [openssl-users] Building OpenSSL on Linux , undefined reference to 'main'

2016-02-15 Thread Matt Caswell
nter -Wall -DOPENSSL_BN_ASM_PART_WORDS > -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m > -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM > -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM}"; LIBPATH=`for x in $LIBDEPS; > do echo $x; done | sed -e &#x

Re: [openssl-users] Building OpenSSL on Linux , undefined reference to 'main'

2016-02-15 Thread Rob Hermann
S_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=md2test} md2test.o ${

Re: [openssl-users] Building OpenSSL on Linux , undefined reference to 'main'

2016-02-15 Thread Matt Caswell
On 15/02/16 19:59, Rob Hermann wrote: > > I'm attempting to build OpenSSL on a Linux box, when I issue the make > from my OpenSSL directory (OpenSSLWork as seen here), It builds all > the subdirectories under crypto, > then proceeds to What OpenSSL version were you using? Also please post t

[openssl-users] Building OpenSSL on Linux , undefined reference to 'main'

2016-02-15 Thread Rob Hermann
uot;; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=md2test} md2test.o ${LIBDEPS} ) _/usr/lib/gcc/i686-redhat-linux/4.4.7/../

Re: [openssl-users] undefined reference to `FIPS_mode'

2015-12-22 Thread Marcos Bontempo
can I correct it? > To: openssl-users@openssl.org > From: marqu...@openssl.com > Date: Mon, 21 Dec 2015 09:06:01 -0500 > Subject: Re: [openssl-users] undefined reference to `FIPS_mode' > > On 12/21/2015 08:39 AM, Marcos Bontempo wrote: > > I did the tests in a Ubuntu 1

Re: [openssl-users] undefined reference to `FIPS_mode'

2015-12-22 Thread Jeffrey Walton
On Mon, Dec 21, 2015 at 7:28 PM, Marcos Bontempo wrote: > I'm cross-compiling to a ARMv4 processor, the same used in the BeagleBone. > Do you know if this platform is supported? Check the OpenSSL Security Policy at https://www.openssl.org/docs/fips/SecurityPolicy-2.0.10.pdf. The table of support

Re: [openssl-users] undefined reference to `FIPS_mode'

2015-12-21 Thread Marcos Bontempo
I'm cross-compiling to a ARMv4 processor, the same used in the BeagleBone. Do you know if this platform is supported? > To: openssl-users@openssl.org > From: marqu...@openssl.com > Date: Mon, 21 Dec 2015 09:06:01 -0500 > Subject: Re: [openssl-users] undefined reference to `FIPS

Re: [openssl-users] undefined reference to `FIPS_mode'

2015-12-21 Thread Steve Marquess
On 12/21/2015 08:39 AM, Marcos Bontempo wrote: > I did the tests in a Ubuntu 14.04. Is there a problem with this version? You're cross compiling ... to what target platform I don't know. That target platform is what needs to be supported, and both the FIPS module and "FIPS enabled" OpenSSL need to

Re: [openssl-users] undefined reference to `FIPS_mode'

2015-12-21 Thread Marcos Bontempo
I did the tests in a Ubuntu 14.04. Is there a problem with this version? > To: openssl-users@openssl.org > From: marqu...@openssl.com > Date: Mon, 21 Dec 2015 08:20:47 -0500 > Subject: Re: [openssl-users] undefined reference to `FIPS_mode' > > On 12/21/2015 07:31 AM

Re: [openssl-users] undefined reference to `FIPS_mode'

2015-12-21 Thread Steve Marquess
On 12/21/2015 07:31 AM, Marcos Bontempo wrote: > Hello, > > I resolved the error after compiling FIPS with ./config fips shared. I > also needed to export LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH. > > Now I have a new problem. > > I executed this code to set the FIPS mode and no erro

Re: [openssl-users] undefined reference to `FIPS_mode'

2015-12-21 Thread Marcos Bontempo
otmail.com To: openssl-users@openssl.org Date: Sun, 20 Dec 2015 14:47:29 -0200 Subject: [openssl-users] undefined reference to `FIPS_mode' Hello, I'm programming an application that

[openssl-users] undefined reference to `FIPS_mode'

2015-12-20 Thread Marcos Bontempo
c fipsctl.c -o fipsctl -I/usr/local/ssl/include -I/usr/local/ssl/fips-2.0/include -Lcrypto/tmp/ccSQhRme.o: In function `main':fipsctl.c:(.text+0x1a): undefined reference to `FIPS_mode'collect2: error: ld returned 1 exit statusmake: *** [all] Error 1 Does an

Re: undefined reference errors, e.g. to `ERR_load_crypto_strings'

2014-11-26 Thread Alexander Raiola
Thanks, Scott, your solution works! Cheers Alex 2014-11-25 17:34 GMT+01:00, Alexander Raiola : > Dear Sirs or Madams, > > I have the problem that I keep getting undefined reference errors > whenever I try to access pretty much any OpenSSL-related command. I > elaborated on my

RE: undefined reference errors, e.g. to `ERR_load_crypto_strings'

2014-11-25 Thread Scott Neugroschl
Reverse the order of the libraries. Use -lssl -lcrypto. -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Alexander Raiola Sent: Tuesday, November 25, 2014 8:34 AM To: openssl-users@openssl.org Subject: undefined reference

undefined reference errors, e.g. to `ERR_load_crypto_strings'

2014-11-25 Thread Alexander Raiola
Dear Sirs or Madams, I have the problem that I keep getting undefined reference errors whenever I try to access pretty much any OpenSSL-related command. I elaborated on my problem in the following thread: http://stackoverflow.com/questions/27106580/undefined-reference-to-err-load-crypto-strings

Re: undefined reference to "FIPS_mode_set'

2014-07-08 Thread Thomas Francis, Jr.
mode), though, don't call FIPS_mode_set(). :) TOM -- Original Message -- From: "Kay Shamsa" To: "openssl-users@openssl.org" Sent: 7/7/2014 8:30:16 PM Subject: undefined reference to "FIPS_mode_set' Hi; I am using encryption to broadcast messages in L

undefined reference to "FIPS_mode_set'

2014-07-07 Thread Kay Shamsa
Hi; I am using encryption to broadcast messages in Linux environment. When using FIPS_mode_set(1) I get the error message of undefined reference to "FIPS_mode_set'. How can I fix this error. Thanks Kay

RE: testprogram results in undefined reference to x

2013-04-09 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of .uservorname .usernachname > Sent: Saturday, 06 April, 2013 05:52 > Thanks for your help. I tried to compile the testprogram with > "gcc ssl_accept.c -o sslaccept -lssl -lcrypto -L/usr/lib" > When executing ./sslaccept I get ./sslaccept: error

RE: testprogram results in undefined reference to x

2013-04-06 Thread .uservorname .usernachname
ept. greetings > From: rs...@akamai.com > To: openssl-users@openssl.org > Date: Thu, 4 Apr 2013 05:46:03 -0600 > Subject: RE: testprogram results in undefined reference to x > > Wow, that's a lot of output :) > > First of all, you need -lssl and -lcrypto. Wh

RE: testprogram results in undefined reference to x

2013-04-04 Thread Salz, Rich
Wow, that's a lot of output :) First of all, you need -lssl and -lcrypto. Where did you install the OpenSSL libraries, are they in a common place that your compiler can find? If not, you'll need to add -L/ where is the path to the place where the libraries (libssl.a for example) can

testprogram results in undefined reference to x

2013-04-03 Thread .uservorname .usernachname
);  int  main ()  {  return SSL_accept ();    ;    return 0;  } But I get a lot of undefinied function errors in libssl.a like this: /usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libssl.a(ssl_lib.o)(.text+0x368): In function `ssl_undefined_function': : undefined reference to `ERR_pu

Re: Undefined reference to 'FIPS_text_start()'

2012-11-26 Thread Santhosh Kokala
gt;> export CXX=/usr/local/ssl/fips-2.0/bin/fipsld >>>>> >>>>> Build Errors: >>>>> >>>>> >>>>> /tmp/cczHeW7i.o: In function `FINGERPRINT_premain()': >>>>> /usr/local/ssl/fips-2.0/bin/../lib/fips_pr

Re: Undefined reference to 'FIPS_text_start()'

2012-11-26 Thread Santhosh Kokala
al/ssl/fips-2.0/bin/fipsld >>>> >>>> Build Errors: >>>> >>>> >>>> /tmp/cczHeW7i.o: In function `FINGERPRINT_premain()': >>>> /usr/local/ssl/fips-2.0/bin/../lib/fips_premain.c:103: undefined >>>> reference >

Re: Undefined reference to 'FIPS_text_start()'

2012-11-25 Thread Andy Polyakov
xport CXX=/usr/local/ssl/fips-2.0/bin/fipsld Build Errors: /tmp/cczHeW7i.o: In function `FINGERPRINT_premain()': /usr/local/ssl/fips-2.0/bin/../lib/fips_premain.c:103: undefined reference to `FIPS_text_start()' /usr/local/ssl/fips-2.0/bin/../lib/fips_premain.c:116: undefin

Re: Undefined reference to 'FIPS_text_start()'

2012-11-24 Thread Dr. Stephen Henson
On Sat, Nov 24, 2012, Santhosh Kokala wrote: > I would really appreciate, if someone helps me with this issue. Firstly if your application can use the shared library then just link against that: there is no need to use fipsld at all. If you must use static libraries then you should ensure that t

RE: Undefined reference to 'FIPS_text_start()'

2012-11-23 Thread Santhosh Kokala
@openssl.org Cc: openssl-...@openssl.org Subject: Re: Undefined reference to 'FIPS_text_start()' Jeffrey, This still did not fix my issue. Any other ideas? Santhosh On 11/20/12 4:14 PM, "Jeffrey Walton" wrote: >On Tue, Nov 20, 2012 at 6:16 PM, Santhosh Kokala > wrote: >

Re: Undefined reference to 'FIPS_text_start()'

2012-11-21 Thread Santhosh Kokala
t;> >> export FIPSLD_CC=g++ >> export CC=gcc >> export CXX=/usr/local/ssl/fips-2.0/bin/fipsld >> >> Build Errors: >> >> >> /tmp/cczHeW7i.o: In function `FINGERPRINT_premain()': >> /usr/local/ssl/fips-2.0/bin/../lib/fips_premain.c:103: undef

Re: Undefined reference to 'FIPS_text_start()'

2012-11-20 Thread Jeffrey Walton
pen SSL: > > ./config fips > make depend > Make > > My Application: > > export FIPSLD_CC=g++ > export CC=gcc > export CXX=/usr/local/ssl/fips-2.0/bin/fipsld > > Build Errors: > > > /tmp/cczHeW7i.o: In function `FINGERPRINT_premain()': > /usr/local

Undefined reference to 'FIPS_text_start()'

2012-11-20 Thread Santhosh Kokala
/local/ssl/fips-2.0/bin/fipsld Build Errors: /tmp/cczHeW7i.o: In function `FINGERPRINT_premain()': /usr/local/ssl/fips-2.0/bin/../lib/fips_premain.c:103: undefined reference to `FIPS_text_start()' /usr/local/ssl/fips-2.0/bin/../lib/fips_premain.c:116: undefined re

undefined reference to `_OPENSSL_cleanse|

2011-02-22 Thread cryptocat
Hello, I using gcc with codeblocks and I tried to compile the code below and got the undefined reference error on lines 57 and 70. Am I supposed to use a library to link with, I just gave the compiler to directory for the include files in the crypto folder and the include folder. /* crypto/sha

[MinGW] undefined reference to `ERR_unload_strings'

2010-10-29 Thread Sisyphus
rectory `/c/_32/comp/openssl-0.9.8o/engines' e_4758cca.o:e_4758cca.c:(.text+0x40): undefined reference to `ERR_unload_strings' e_4758cca.o:e_4758cca.c:(.text+0x53): undefined reference to `ERR_unload_strings' e_4758cca.o:e_4758cca.c:(.text+0x75): undefined reference to `CRYPTO_free' e_4758c

RE: Error copiling ssl: undefined reference

2010-02-28 Thread Jeremy Farrell
Subject: RE: Error copiling ssl: undefined reference A lot of thanks, now roks perfectly. The problem it was that i put the commnad line with -o and the correct form was: gcc -lssl -lcrypto cli.c Thanks. > Date: Sat, 27 Feb 2010 1

RE: Error copiling ssl: undefined reference

2010-02-28 Thread xabi esteban
A lot of thanks, now roks perfectly.The problem it was that i put the commnad line with -o and the correct form was:gcc -lssl -lcrypto cli.c Thanks. > Date: Sat, 27 Feb 2010 11:33:31 -0800 > From: pie...@hogranch.com > To: openssl-users@openssl.org > Subject: Re: Error copiling ss

Re: Error copiling ssl: undefined reference

2010-02-27 Thread John R Pierce
xabi esteban wrote: A lot of thanks but I'm vey confused and my english is not good. I compile with ggc -o and you said that this is not enought, i need linket too? Put you put an example linking the libreres with gcc or example for a makefile? Thanks at a minimum, try adding -lssl -lcrypto

RE: Error copiling ssl: undefined reference

2010-02-27 Thread xabi esteban
; From: pie...@hogranch.com > To: openssl-users@openssl.org > Subject: Re: Error copiling ssl: undefined reference > > xabi esteban wrote: > > I am using in a shell in Ubuntu Linux > > try adding -lssl to your link options. > > >

Re: Error copiling ssl: undefined reference

2010-02-26 Thread John R Pierce
xabi esteban wrote: I am using in a shell in Ubuntu Linux try adding -lssl to your link options. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-u

RE: Error copiling ssl: undefined reference

2010-02-26 Thread xabi esteban
I am using in a shell in Ubuntu Linux thanks Date: Fri, 26 Feb 2010 14:47:22 -0500 Subject: Re: Error copiling ssl: undefined reference From: anand.apa...@gmail.com To: openssl-users@openssl.org Those are the header you included. But you need to link against libs after compilation. What

Re: Error copiling ssl: undefined reference

2010-02-26 Thread John R Pierce
xabi esteban wrote: I don't understand you. I put the libreries in the includes #include #include <> but i'din't put nothing more. How i could link with this libreries? I didn't found any example. you're confusing include files with libraries. you need to tell the linker the appropri

Re: Error copiling ssl: undefined reference

2010-02-26 Thread Anand Patel
; #include <> > but i'din't put nothing more. > How i could link with this libreries? I didn't found any example. > > Thanks > > -- > Date: Fri, 26 Feb 2010 12:39:57 -0500 > Subject: Re: Error copiling ssl: undefined refe

RE: Error copiling ssl: undefined reference

2010-02-26 Thread xabi esteban
I don't understand you. I put the libreries in the includes #include #include <> but i'din't put nothing more. How i could link with this libreries? I didn't found any example. Thanks Date: Fri, 26 Feb 2010 12:39:57 -0500 Subject: Re: Error copiling ssl

Re: Error copiling ssl: undefined reference

2010-02-26 Thread Anand Patel
Do you link against correct libraries? Try linking with ssleay and libeay. -Anand On Fri, Feb 26, 2010 at 12:08 PM, xabi esteban wrote: > Hello: > I'm trying to use the SSL libreries. When I try to comipile my code y > always obtain the same error: > > cli.c:(.text+0x20):

Error copiling ssl: undefined reference

2010-02-26 Thread xabi esteban
Hello: I'm trying to use the SSL libreries. When I try to comipile my code y always obtain the same error: cli.c:(.text+0x20): undefined reference to `SSL_library_init' cli.c:(.text+0x25): undefined reference to `SSLv2_client_method' cli.c:(.text+0x30): undefin

Error copiling ssl: undefined reference

2010-02-26 Thread xabi esteban
Hello: I'm trying to use the SSL libreries. When I try to comipile my code y always obtain the same error: cli.c:(.text+0x20): undefined reference to `SSL_library_init' cli.c:(.text+0x25): undefined reference to `SSLv2_client_method' cli.c:(.text+0x30): undefin

undefined reference to `RC5_32_ecb_encrypt'

2009-10-03 Thread Vivek Katakam
.. -lssl -L.. -lcrypto -ldl ../libcrypto.a(e_rc5.o)(.text+0x10c): In function `rc5_32_12_16_ecb_cipher': : undefined reference to `RC5_32_ecb_encrypt' ../libcrypto.a(e_rc5.o)(.text+0x186): In function `rc5_32_12_16_ofb_cipher': : undefined reference to `RC5_32_ofb64_encrypt' ..

RE: undefined reference: (mingw?) Windows sockets+

2009-09-28 Thread Dave Thompson
ient client.o common.o ..\out\libssl.a ..\out\libcrypto.a > ..\out\libcrypto.a(bss_conn.o): In function `conn_state': > D:/PROJECTS/C/openssl/./crypto/bio/bss_conn.c:203: undefined > reference to `_ht...@4' > ..\out\libcrypto.a(rand_win.o): In function `readscreen': > D:

undefined reference

2009-09-28 Thread weihao.ma
l/./crypto/bio/bss_conn.c:203: undefined reference to `_ht...@4' D:/PROJECTS/C/openssl/./crypto/bio/bss_conn.c:209: undefined reference to `_ht...@4' D:/PROJECTS/C/openssl/./crypto/bio/bss_conn.c:212: undefined reference to `_soc...@12' D:/PROJECTS/C/openssl/./crypto/bio/bss_conn.c:21

static openssl on mingw (undefined reference on bss_sock.c)

2009-03-03 Thread migo
lude/port/win32 -DEXEC_BACKEND -I/local/ssl/include/ -Wl,--allow-multiple-definition -L/local/ssl/lib/ conftest.c -lssleay32 -lwsock32 -lwst -lws2_32 -lmswsock -leay32 -lz -lm >&5 C:/msys/1.0/local/ssl/lib//libeay32.a(bss_sock.o)(.text+0xca):bss_sock.c: undefined reference to `shutd...@8'

static openssl on mingw (undefined reference on bss_sock.c)

2009-03-03 Thread migo
lude/port/win32 -DEXEC_BACKEND -I/local/ssl/include/ -Wl,--allow-multiple-definition -L/local/ssl/lib/ conftest.c -lssleay32 -lwsock32 -lwst -lws2_32 -lmswsock -leay32 -lz -lm >&5 C:/msys/1.0/local/ssl/lib//libeay32.a(bss_sock.o)(.text+0xca):bss_sock.c: undefined reference to `shutd...@8'

RE: static openssl on mingw (undefined reference on bss_sock.c)

2009-02-21 Thread Dave Thompson
k32 -lwst -lws2_32 -lmswsock -lsecur32 -lz > C:/msys/1.0/local/ssl/lib/libssleay32.a(ssl_lib.o)(.text+0x4ab):ss > l_lib.c: > undefined reference to `BIO_s_socket' > C:/msys/1.0/local/ssl/lib/libssleay32.a(ssl_lib.o)(.text+0x5b3):ss > l_lib.c: > undefined reference to `BIO_s_socket&#

Re: static openssl on mingw (undefined reference on bss_sock.c)

2009-02-20 Thread Tomasz Kolaj
0/local/ssl/lib/libssleay32.a(ssl_lib.o)(.text+0x4ab):ssl_lib.c > >>: undefined reference to `BIO_s_socket' > > That's part of openssl - you need to add the openssl library to your link > commands. > I added -leay32 -lssleay32

Re: static openssl on mingw (undefined reference on bss_sock.c)

2009-02-20 Thread carlyoung
>>On Fri 20/02/09 10:17 AM , Tomasz Kolaj m...@abp.pl sent: >>Hello, >> >>Unfortunetly I need still compile shared version also and make fails with >>that: >> >>C:/msys/1.0/local/ssl/lib/libssleay32.a(ssl_lib.o)(.text+0x4ab):ssl_lib.c: >>undef

Re: static openssl on mingw (undefined reference on bss_sock.c)

2009-02-20 Thread Tomasz Kolaj
n.o win32error.o snprintf.o win32.o pgsleep.o libpqrc.o pthread-win32.o  - L../../../src/port -L/local/ssl/lib -lcrypto -lshfolder -leay32 -lssleay32 - lgdi32 -lwsock32 -lwst -lws2_32 -lmswsock -lsecur32 -lz C:/msys/1.0/local/ssl/lib/libssleay32.a(ssl_lib.o)(.text+0x4ab):ssl_lib.c: undefined reference

Re: static openssl on mingw (undefined reference on bss_sock.c)

2009-02-19 Thread Tomasz Kolaj
-L../../../src/port > >> -Wl,--allow-multiple-definition - > >>L/local/ssl/lib -lpgport -lssleay32 -lcrypto -lssleay32 -leay32 -lgdi32 - > >>lwsock32 -lwst -lws2_32 -lmswsock -lz -lm -lws2_32 -lshfolder -o > >> pg_ctl.exe > >> ../../../src/interfaces/libpq/

Re: static openssl on mingw (undefined reference on bss_sock.c)

2009-02-19 Thread carlyoung
2_32 -lmswsock -lz -lm -lws2_32 -lshfolder -o pg_ctl.exe >>../../../src/interfaces/libpq/libpq.a(fe-connect.o)(.text+0x6ec):fe-connect.c: >> >>undefined reference to `deletesecuritycont...@4' Those functions are in secur32.lib Carl __

Re: static openssl on mingw (undefined reference on bss_sock.c)

2009-02-19 Thread Tomasz Kolaj
L/local/ssl/lib -lpgport -lssleay32 -lcrypto -lssleay32 -leay32 -lgdi32 - lwsock32 -lwst -lws2_32 -lmswsock -lz -lm -lws2_32 -lshfolder -o pg_ctl.exe ../../../src/interfaces/libpq/libpq.a(fe-connect.o)(.text+0x6ec):fe-connect.c: undefined reference to `deletesecuritycont...@4' ../../../src

Re: static openssl on mingw (undefined reference on bss_sock.c)

2009-02-19 Thread Victor B. Wagner
-leay32 -lz -lm > >&5 > C:/msys/1.0/local/ssl/lib//libeay32.a(bss_sock.o)(.text+0xca):bss_sock.c: > undefined reference to `shutd...@8' Probkem is that library searching in gcc is order-dependent. If some object file contained in library requires some external function, it

static openssl on mingw (undefined reference on bss_sock.c)

2009-02-19 Thread migo
lude/port/win32 -DEXEC_BACKEND -I/local/ssl/include/ -Wl,--allow-multiple-definition -L/local/ssl/lib/ conftest.c -lssleay32 -lwsock32 -lwst -lws2_32 -lmswsock -leay32 -lz -lm >&5 C:/msys/1.0/local/ssl/lib//libeay32.a(bss_sock.o)(.text+0xca):bss_sock.c: undefined reference to `shutd...@8'

Re: undefined reference to `RSA_generate_key_ex`'

2008-01-07 Thread Dr. Stephen Henson
l and libcrypto are also in the right place but ' undefined reference to > RSA_generate_key_ex' occured > > /tmp/ccoRcOnQ.o(.text+0x5c): In function `main': > crl.c: undefined reference to `RSA_generate_key_ex`' > > i don't know why.Can you help me ?t

undefined reference to `RSA_generate_key_ex`'

2008-01-07 Thread e0317
hi,I am a new to Openssl .Today I wrote a programme with openssl and compliled in fc4.this is my command "gcc -o crl crl.c -I/usr/local/openssl/include -Wall -L/usr/local/openssl/lib -lssl -lcrypto" libssl and libcrypto are also in the right place but ' undefin

[FWD] Linking undefined reference

2007-11-14 Thread Lutz Jaenicke
Forwarded to openssl-users for discussion. Lutz - Forwarded message from Steffen Bertsch <[EMAIL PROTECTED]> - From: Steffen Bertsch <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Linking undefined reference Date: Wed, 14 Nov 2007 13:52:48 +0100 Importance: Normal

INSTALL: Undefined reference

2001-03-03 Thread bc Wong
Hi, I'm installing openssl on win98 with mingw32. I run ms\mingw32. After seeing the line "Generating the DLLs and input libraries", I see the error: libeay32.exp(.edata+0x784):fake: undefined reference to `RAND_screen' libeay32.exp(.edata+0x237c):fake: un