ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Adding support for external libraries via Makefile

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Alok <alokdube@xxxxxxxxxx>
Date: Wed, 25 Aug 2004 21:51:03 +0530
just to add
-lssl and LD_LIBRARY_PATH are set in shell as well as LIBS and LDFLAGS are modified in the Makefile

Alok wrote:

Hi,

I have 2 files, common.c and common.h which contain certain references to the openssl library. These are both "supporting" files and hence I went ahead and added common.h to DISSECTOR_SUPPORT_INCLUDES and common.c to DISSECTOR_SUPPORT_SRC in the respective Makefiles in the root and epan/ folder

i have an include openssl/ssl.h in common.h

However, when I run a make I get stuck with:
epan/.libs/libethereal.so: undefined reference to `SSL_CTX_free'
epan/.libs/libethereal.so: undefined reference to `SSL_library_init'
epan/.libs/libethereal.so: undefined reference to `SSL_CTX_set_default_passwd_cb' epan/.libs/libethereal.so: undefined reference to `SSL_CTX_load_verify_locations'
epan/.libs/libethereal.so: undefined reference to `SSLv2_method'

All the SSL methods seem to have gone for a toss.
I have a feeling I am actually making a mistake here as I would need respective sources for the above from openssl to be put somewhere but am not too sure..

What would the modifications I would need?

-Alok



_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev