[Elphel-support] link to ssl

Robbert rma at vmsys.com
Tue Nov 24 17:19:00 PST 2009


Ok, seems "-l ssl" did the trick. But when I run it in Camera, it complains missing libssl.so.0.9.7.

-----Original Message-----
From: Robbert [mailto:rma at vmsys.com]
Sent: Wednesday, November 25, 2009 11:23 AM
To: 'Elphel Support | Andrey Filippov'
Subject: link to ssl

Hi Andrey,

I am trying to compile a simple hmac test program, but can not link to the library.

Could you please tell me what's wrong? Thanks!

Robbert
=======================================================
Makefile:
AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis
CC = gcc-cris -mlinux -march=v32

INCDIR     = $(prefix)/include
PROGS      = hmactest

SRCS = hmactest.c
OBJS = hmactest.o
CFLAGS   += -Wall -I$(INCDIR) -I ../target/crisv32-axis-linux-gnu/include/ -I$(AXIS_KERNEL_DIR)/include

mlib =/root/work/elphel353-8.0.3/elphel353/target/crisv32-axis-linux-gnu/lib
mlib1 =/root/work/elphel353-8.0.3/elphel353/apps/crypto/openssl-IR0_9_7f-3/openssl/

all: $(PROGS)

$(PROGS): $(OBJS)
       $(CC) $(LDFLAGS) -L $(mlib) -L $(mlib1)  $^ $(LDLIBS)  -o $@
#       cris-strip -s $@
clean:
       rm -rf $(PROGS) *.o core
dependency:
       make depend
depend:
       makedepend -Y -- $(CFLAGS) -- $(SRCS) 2>/dev/null
       touch dependency
# DO NOT DELETE

======================================================
And make output:
subdirs=
gcc-cris -mlinux -march=v32  -L/root/work/elphel353-8.0.3/elphel353/target/host/lib -L/root/work/elphel353-8.0.3/elphel353/target/host/usr/lib -Wl,-rpath-link,/root/work/elphel353-8.0.3/elphel353/target/host/lib,-rpath-link,/root/work/elphel353-8.0.3/elphel353/target/host/usr/lib  -L /root/work/elphel353-8.0.3/elphel353/target/crisv32-axis-linux-gnu/lib -L /root/work/elphel353-8.0.3/elphel353/apps/crypto/openssl-IR0_9_7f-3/openssl/  hmactest.o    -o hmactest
hmactest.o: In function `main':
hmactest.o(.text+0xae): undefined reference to `HMAC_CTX_init'
hmactest.o(.text+0xb6): undefined reference to `EVP_md5'
hmactest.o(.text+0xc6): undefined reference to `HMAC_Init_ex'
hmactest.o(.text+0x10e): undefined reference to `HMAC_Update'
hmactest.o(.text+0x142): undefined reference to `HMAC_Final'
hmactest.o(.text+0x14a): undefined reference to `HMAC_CTX_cleanup'
collect2: ld returned 1 exit status
make: *** [hmactest] Error 1





More information about the Support-list mailing list