Wireshark-dev: Re: [Wireshark-dev] RPM generation

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Thu, 19 Apr 2018 15:12:33 +0000

Hi,

I’m struggling with my local build now which is a SVN checkout. I have managed to get the tarball built and the build continues from there but stops with:

 

-- Found Subversion: /usr/bin/svn (found version "1.8.19")

-- Configuring incomplete, errors occurred!

See also "/home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeOutput.log".

See also "/home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeError.log".

error: Bad exit status from /var/tmp/rpm-tmp.RQPfyB (%prep)

 

RPM build errors:

    Bad exit status from /var/tmp/rpm-tmp.RQPfyB (%prep)

CMakeFiles/rpm-package.dir/build.make:57: recipe for target 'CMakeFiles/rpm-package' failed

make[3]: *** [CMakeFiles/rpm-package] Error 1

CMakeFiles/Makefile2:168: recipe for target 'CMakeFiles/rpm-package.dir/all' failed

make[2]: *** [CMakeFiles/rpm-package.dir/all] Error 2

CMakeFiles/Makefile2:175: recipe for target 'CMakeFiles/rpm-package.dir/rule' failed

make[1]: *** [CMakeFiles/rpm-package.dir/rule] Error 2

Makefile:201: recipe for target 'rpm-package' failed

make: *** [rpm-package] Error 2

 

I don’t find anything obviously wrong in those log files, any tips what to look for?

In the error log there is:

Run Build Command:"/usr/bin/gmake" "cmTC_ba3cc/fast"

gmake[4]: Entering directory '/home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeTmp'

/usr/bin/gmake -f CMakeFiles/cmTC_ba3cc.dir/build.make CMakeFiles/cmTC_ba3cc.dir/build

gmake[5]: Entering directory '/home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_ba3cc.dir/src.c.o

/usr/bin/cc    -fexcess-precision=fast -std=gnu99 -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DNDEBUG -DC__Wheader_guard_VALID -fPIE   -fexcess-precision=fast -Wheader-guard -o CMakeFiles/cmTC_ba3cc.dir/src.c.o   -c /home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeTmp/src.c

cc: error: unrecognized command line option '-Wheader-guard'

CMakeFiles/cmTC_ba3cc.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_ba3cc.dir/src.c.o' failed

gmake[5]: *** [CMakeFiles/cmTC_ba3cc.dir/src.c.o] Error 1

gmake[5]: Leaving directory '/home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeTmp'

Makefile:126: recipe for target 'cmTC_ba3cc/fast' failed

gmake[4]: *** [cmTC_ba3cc/fast] Error 2

gmake[4]: Leaving directory '/home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeTmp'

 

Source file was:

int main(void) { return 0; }

Performing C SOURCE FILE Test C__Wunused_const_variable_VALID failed with the following output:

Change Dir: /home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeTmp

 

From: Wireshark-dev [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Dario Lombardo
Sent: den 11 april 2018 11:06
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Subject: Re: [Wireshark-dev] RPM generation

 

With the last changes I submitted, this is the current situation:

 

Centos: 

ninja: works

make: works

 

openSUSE: 

ninja/make: build now starts, but the compilation fails (cc: error: unrecognized command line option '-Wheader-guard'). This switch doesn't show up when running the straight 'ninja' command. Any idea?

Moreover I can't make regular compilation due to missing lz4-frame.h. Any idea on this as well?