Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

while doing make for wireshark following error was thrown

[ 74%] Building C object epan/CMakeFiles/epan.dir/dtd_grammar.c.o [ 74%] Linking C shared library ../run/libwireshark.so /usr/local/lib/liblua.a(loslib.o): In function os_tmpname': loslib.c:(.text+0x290): warning: the use oftmpnam' is dangerous, better use mkstemp' /usr/bin/ld: /usr/local/lib/liblua.a(lauxlib.o): relocation R_X86_64_PC32 against symbolstderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status epan/CMakeFiles/epan.dir/build.make:5416: recipe for target 'run/libwireshark.so.0.0.0' failed make[2]: * [run/libwireshark.so.0.0.0] Error 1 CMakeFiles/Makefile2:2040: recipe for target 'epan/CMakeFiles/epan.dir/all' failed make[1]: [epan/CMakeFiles/epan.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: ** [all] Error 2

click to hide/show revision 2
None

while doing make for wireshark following error was thrown

[ 74%] Building C object epan/CMakeFiles/epan.dir/dtd_grammar.c.o
[ 74%] Linking C shared library ../run/libwireshark.so
/usr/local/lib/liblua.a(loslib.o): In function os_tmpname':
`os_tmpname':
loslib.c:(.text+0x290): warning: the use oftmpnam' of `tmpnam' is dangerous, better use mkstemp'
`mkstemp'
/usr/bin/ld: /usr/local/lib/liblua.a(lauxlib.o): relocation R_X86_64_PC32 against symbolstderr@@GLIBC_2.2.5' symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
epan/CMakeFiles/epan.dir/build.make:5416: recipe for target 'run/libwireshark.so.0.0.0' failed
make[2]: * *** [run/libwireshark.so.0.0.0] Error 1
CMakeFiles/Makefile2:2040: recipe for target 'epan/CMakeFiles/epan.dir/all' failed
make[1]:  *** [epan/CMakeFiles/epan.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: ** *** [all] Error 2

2