alecmuffett / certificate-transparency

Automatically exported from code.google.com/p/certificate-transparency
0 stars 0 forks source link

ct-server.cc compilation error: ‘port_dummy’ defined but not used #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
root@pruebas:/home/izenpe/CT/certificate-transparency# make 
GTESTDIR="/home/izenpe/CT/gtest-1.6.0" 
CPPNETLIBDIR="/home/izenpe/CT/cpp-netlib-0.10.1"

What is the expected output? What do you see instead?
compilation ok

What version of the product are you using? On what operating system?
Linux pruebas 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:01 UTC 2014 
i686 i686 i686 GNU/Linux
Ubuntu14 server, 64bits

Please provide any additional information below.
I have some errors about unused variables like 'port_dummy', 'key_dummy', 
'cert_dummy', and six more, when the script try to compile ct-server.cc. 
Attached you'll find the log.

Version of used packages are:
cmake 3.0.1 (ubuntu binaries)
openSSL 1.0.1f (ubuntu binaries)
gtest 1.6.0 (source)
protobuf 2.4.1 (compiled)
gflags 2.0 (compiled)
boost 1.54.0 (ubuntu binaries)
sqlite3 3.8.2 (ubuntu binaries)
curl 7.35.0 (ubuntu binaries)
json-c 0.11 (compiled, but with ubuntu binaries the result is the same)
cpp-netlib 0.10.1 (compiled)
ldns 1.6.17 (compiled)
ant 1.9.3 (ubuntu binaries)
python-pyasn1 0.1.7 (ubuntu binaries)
python-dnspython 1.11.1 (ubuntu binaries)

Thanks

Original issue reported on code.google.com by serosc...@gmail.com on 11 Sep 2014 at 1:30

Attachments:

GoogleCodeExporter commented 9 years ago
The unused variable errors are a side effect of the earlier errors - once the 
earlier errors are fixed, the unused variable errors will go away.

Original comment by benl@google.com on 11 Sep 2014 at 2:00

GoogleCodeExporter commented 9 years ago
By the way, it looks like you are not compiling the latest version, because the 
latest version demotes the earlier errors to warnings with this flag:  
-Wno-error=unused-local-typedefs.

You know we moved to github a while back, right?

Original comment by benl@google.com on 11 Sep 2014 at 3:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I downloaded the source code with "git clone 
https://github.com/google/certificate-transparency.git"

Original comment by serosc...@gmail.com on 12 Sep 2014 at 8:22

GoogleCodeExporter commented 9 years ago
I looked at the output, but I couldn't see the earlier errors that Ben refers 
to (the first errors are unused typedefs)?

Could you report the version of gcc you're using (with "g++ --version")?

From the output, these all look like warnings that were treated as errors, you 
might be able to get it to build by removing the "-Werror" from line 8 of 
cpp/Makefile.

Original comment by pphaneuf@google.com on 12 Sep 2014 at 9:00

GoogleCodeExporter commented 9 years ago
The unused typedefs are the earlier errors I was referring to.

An alternative to removing -Werror is to use:

export LOCAL_CXXFLAGS="-Wno-error=unused-local-typedefs"

Sorry, I forgot that I had added that locally.

Original comment by benl@google.com on 12 Sep 2014 at 10:55

GoogleCodeExporter commented 9 years ago
That "export" solved my problem!! I could compile the ct-server.cc. I still 
couldn't install ct, but due to different problems (java and ant 
problems...;(). I continue working with it. THANKS FOR YOUR HELP!. 

Original comment by serosc...@gmail.com on 12 Sep 2014 at 12:59

GoogleCodeExporter commented 9 years ago
Glad you're on your way!

If you have further issues to report, you can go here:

https://github.com/google/certificate-transparency/issues

Thanks!

Original comment by pphaneuf@google.com on 12 Sep 2014 at 1:30