Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4533946
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:13:10+00:00 2026-05-21T14:13:10+00:00

I am trying to build a shared library by editing Wireshark’s Makefile.am to create

  • 0

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.

So I have edited Makefile.am to include include the following in an attempt to build the shared libtshark library:

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

However, when I try to build the code now, I get the following error:

make[2]: *** No rule to make target `libtshark.sym', needed by `libtshark.la'.  Stop.

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?

Here is the entire Makefile.am, which is too long for stackoverflow: Makefile.am

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:13:10+00:00Added an answer on May 21, 2026 at 2:13 pm

    it turns out that the .sym file is pre-generated by wireshark scripts to determine which symbols to export.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've making a shared library (cross-platform), but when trying to compile the Windows build
I am trying to build a shared library with one set of code, and
I am trying to build libraw as a Android shared library. It looks the
I'm trying to build a client server application using POSIX shared memory and POSIX
I am trying to setup a shared authentication system on a build server. We
I'm trying build a method which returns the shortest path from one node to
I'm trying to do a debug build of the Rabbyt library using mingw's gcc
This is my first time using CMake and I'm trying to build QJSon, a
I have an android application which uses jni and I'm trying to automate build
I am not able to build shared library with static libraries. I downloaded some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.