Note that there are some explanatory texts on larger screens.

plurals
  1. PO.sym not being generated by -export-symbols in Makefile.am
    primarykey
    data
    text
    <p>I am trying to build a shared library by editing Wireshark's Makefile.am to create a "libtshark" ... to do this, I am trying to build a tshark_lib.c which is the same as tshark.c with main() stripped out of it.</p> <p>So I have edited Makefile.am to include include the following in an attempt to build the shared libtshark library:</p> <pre><code>lib_LTLIBRARIES = libtshark.la libtshark_la_LDFLAGS = -version-info 0:1:0 -export-symbols libtshark.sym @LDFLAGS_SHAREDLIB@ libtshark_la_SOURCES = \ $(WIRESHARK_COMMON_SRC) \ $(SHARK_COMMON_CAPTURE_SRC) \ $(TSHARK_TAP_SRC) \ capture_opts.c \ capture_sync.c \ tempfile.c \ tshark-tap-register.c \ tshark_lib.c # Libraries and plugin flags with which to link tshark. libtshark_la_LIBADD = \ wiretap/libwiretap.la \ epan/libwireshark.la \ wsutil/libwsutil.la \ @SSL_LIBS@ \ $(plugin_ldadd) \ @PCRE_LIBS@ \ @GLIB_LIBS@ -lm \ @PCAP_LIBS@ \ @SOCKET_LIBS@ \ @NSL_LIBS@ \ @C_ARES_LIBS@ \ @ADNS_LIBS@ \ @KRB5_LIBS@ \ @CORESERVICES_FRAMEWORKS@ \ @LIBGCRYPT_LIBS@ \ @LIBGNUTLS_LIBS@ \ @LIBSMI_LDFLAGS@ #tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir) libtshark_la_DEPENDENCIES = \ ${top_builddir}/epan/libwireshark.la \ ${top_builddir}/wsutil/libwsutil.la \ ${top_builddir}/wiretap/libwiretap.la \ libtshark.sym </code></pre> <p>However, when I try to build the code now, <strong>I get the following error:</strong></p> <pre><code>make[2]: *** No rule to make target `libtshark.sym', needed by `libtshark.la'. Stop. </code></pre> <p>For some reason, it is not using my 'libtshark_la_LDFLAGS' which contains '-export-symbols libtshark.sym' ... does anyone know what I might be missing?</p> <p>Here is the entire Makefile.am, which is too long for stackoverflow: <a href="http://pastebin.com/Xc5AZ1Yx" rel="nofollow">Makefile.am</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload