anonymous2ch / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Build Error: no matching function for call to ‘stat::stat(const char*, stat*)’ #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build libproxy 0.4.2 from sources

What is the expected output? What do you see instead?
/home/builder/rpmbuild/BUILD/libproxy-0.4.2/libproxy/modules/config_gnome.cpp:
In constructor ‘gnome_config_extension::gnome_config_extension()’:
/home/builder/rpmbuild/BUILD/libproxy-0.4.2/libproxy/modules/config_gnome.cpp:14
8:
erreur: no matching function for call to ‘stat::stat(const char*, stat*)’
/usr/include/bits/stat.h:47: note: candidats sont: stat::stat()
/usr/include/bits/stat.h:47: note:                 stat::stat(const stat&)
make[2]: ***
[libproxy/CMakeFiles/config_gnome.dir/modules/config_gnome.cpp.o] Erreur 1
make[2]: quittant le répertoire « /home/builder/rpmbuild/BUILD/libproxy-0.4.2 
»
make[1]: *** [libproxy/CMakeFiles/config_gnome.dir/all] Erreur 2
make[1]: quittant le répertoire « /home/builder/rpmbuild/BUILD/libproxy-0.4.2 
»

What version of the product are you using? On what operating system?
Fedora 13 x86_64
gcc-4.4.4-2.fc13.x86_64
glibc-2.12-1.x86_64

Please provide any additional information below.
Previous build dependencies where already installed.

Original issue reported on code.google.com by kwiz...@gmail.com on 31 May 2010 at 8:52

GoogleCodeExporter commented 9 years ago
I can't reproduce at the moment. It would be nice if you can try the following 
patch.
The file inclusion is incomplete according to the manual (man 2 stat) so I 
guessing
it may fail on some version of std library.

Original comment by nicolas.dufresne@gmail.com on 1 Jun 2010 at 6:05

Attachments:

GoogleCodeExporter commented 9 years ago
This patch fix the build
Thx.

Original comment by kwiz...@gmail.com on 1 Jun 2010 at 7:54

GoogleCodeExporter commented 9 years ago
Thanks for testing, I've push this upstream, r684.

Original comment by nicolas.dufresne@gmail.com on 1 Jun 2010 at 8:28

GoogleCodeExporter commented 9 years ago

Original comment by nicolas.dufresne@gmail.com on 7 Jun 2010 at 3:49