Revision history [back]
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
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
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.
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 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 wayi did git
cloneclone
mkdir
buildbuild
cd
buildbuild
cmake3 -G'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=.
....
make -j8 tshark