Wireshark-bugs: [Wireshark-bugs] [Bug 4788] New: cmake: wireshark fails to build with lua and/or

Date: Mon, 24 May 2010 17:19:53 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4788

           Summary: cmake: wireshark fails to build with lua and/or python
                    enabled
           Product: Wireshark
           Version: SVN
          Platform: Other
        OS/Version: Fedora
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: TShark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: jpo@xxxxxxxxxxxx


Build Information:
System   : Fedora 12 x86_64 with updates
Wireshark: buildbot tarball wireshark-1.3.6-SVN-32935.tar.bz2
Building steps:
    mkdir Build
    cd Build
    cmake ../                # all requirements expect YAPP
    make

--
Wireshark fails to build when we try to build it via cmake with Lua and/or
Python enabled.

Error messages:
----------
...
/usr/bin/ld: ../lib/libwslua.a(init_wslua.c.o): relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object; recompile with
-fPIC
../lib/libwslua.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libwireshark.so] Error 1
make[2]: Leaving directory
`/home/fedora/rpms/BUILD/wireshark-1.3.6-SVN-32935/Build'
make[1]: *** [epan/CMakeFiles/epan.dir/all] Error 2
make[1]: Leaving directory
`/home/fedora/rpms/BUILD/wireshark-1.3.6-SVN-32935/Build'
make: *** [all] Error 2
----------

Contents of the lib subdirectory:
----------
libwiretap.so
libwslua.a
libwspython.a
libwsutil.so
-----------

Current workarounds:
 * disable Lua and Python (cmake -DENABLE_LUA=OFF -DENABLE_PYTHON=OFF ../)
or
 * build via autotools (./autogen.sh; ./configure ...; make)

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.