Ethereal-dev: [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 20:16:50 +0530
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