Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

compilation error

I tried to add a field in the cfile.h in _capture_file.
typedef struct _capture_file { gboolean option_enabled; ...

And use it in tshark.c .
tshark.c is already using other fields of _capture_file
I got the following error

/bin/ld: run/tshark: hidden symbol `cfile' in CMakeFiles/tshark.dir/tshark.c.o is referenced by DSO

i did git clone mkdir build cd build cmake3 -G'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=. .. make -j8 tshark

compilation error

I tried to add a field in the cfile.h in _capture_file.
typedef struct _capture_file { gboolean option_enabled; ...

And use it in tshark.c .
tshark.c is already using other fields of _capture_file
I got the following error

/bin/ld: run/tshark: hidden symbol `cfile' in CMakeFiles/tshark.dir/tshark.c.o is referenced by DSO

i did I compile the following way
git clone clone
mkdir build build
cd build build
cmake3 -G'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=. .. ..
make -j8 tshark

compilation error

I tried to add a field in the cfile.h in _capture_file.

typedef struct _capture_file {
   gboolean                    option_enabled;
...

...

And use it in tshark.c .
tshark.c is already using other fields of _capture_file
I got the following error

/bin/ld: run/tshark: hidden symbol `cfile' in CMakeFiles/tshark.dir/tshark.c.o is referenced by DSO

I compile the following way
git clone
mkdir build
cd build
cmake3 -G'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=. ..
make -j8 tshark

compilation error

I tried to add a field in the cfile.h in _capture_file.

typedef struct _capture_file {
     gboolean                    option_enabled;
     ...

And use the new field option_enabled in ../epan/dissectors/packet-gsm_sms.c as it is used in tshark.c .
tshark.c is already using other fields of _capture_file

I got the following error

/bin/ld: run/tshark: hidden symbol `cfile' in CMakeFiles/tshark.dir/tshark.c.o is referenced by DSO

I compile the following way
git clone
mkdir build
cd build
cmake3 -G'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=. ..
make -j8 tshark

compilation error

I tried to add a field in the cfile.h in _capture_file.

typedef struct _capture_file {
     gboolean                    option_enabled;
     ...

In packet-gsm_sms.c i've added

#include "globals.h"
extern capture_file cfile;

And in one of the function code

if(cfile.option_enabled)
....

And use the new field option_enabled in ../epan/dissectors/packet-gsm_sms.c as it is used in tshark.c .
I got the following error

/bin/ld: run/tshark: hidden symbol `cfile' in CMakeFiles/tshark.dir/tshark.c.o is referenced by DSO

I compile the following way
git clone
mkdir build
cd build
cmake3 -G'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=. ..
make -j8 tshark