[Bug 159417] New: getnameinfo is missdetected in kdebase 4.0.66
Arkadiusz Miskiewicz
arekm at maven.pl
Sun Mar 16 17:14:35 GMT 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=159417
Summary: getnameinfo is missdetected in kdebase 4.0.66
Product: kde
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs kde org
ReportedBy: arekm maven pl
Version: kdebase 4.0.66 (using Devel)
Installed from: Compiled sources
Compiler: 4.2.3
OS: Linux
/usr/bin/x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-2 -g2 -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit
-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common -o CMakeFiles/cmTryCom
pileExec.dir/CheckSymbolExists.o -c /home/users/arekm/rpm/BUILD/kdebase-4.0.66/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/users/arekm/rpm/BUILD/kdebase-4.0.66/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/home/users/arekm/rpm/BUILD/kdebase-4.0.66/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:9: error: 'getnameinfo' undeclared (first use in this function)
/home/users/arekm/rpm/BUILD/kdebase-4.0.66/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:9: error: (Each undeclared identifier is reported only once
/home/users/arekm/rpm/BUILD/kdebase-4.0.66/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:9: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o] Error 1
gmake[1]: Leaving directory `/home/users/arekm/rpm/BUILD/kdebase-4.0.66/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
File /home/users/arekm/rpm/BUILD/kdebase-4.0.66/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <sys/socket.h>
#include <netdb.h>
void cmakeRequireSymbol(int dummy,...){(void)dummy;}
int main()
{
#ifndef getnameinfo
cmakeRequireSymbol(0,&getnameinfo);
#endif
return 0;
}
That's due to -std=iso9899:1990 option:
[arekm carme-pld ~]$ /usr/bin/x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-2 -g2 -Wno-long-long -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common a.c
everything ok but
[arekm carme-pld ~]$ /usr/bin/x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-2 -g2 -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common a.c
a.c: In function ‘main’:
a.c:8: error: ‘getnameinfo’ undeclared (first use in this function)
a.c:8: error: (Each undeclared identifier is reported only once
a.c:8: error: for each function it appears in.)
[arekm carme-pld ~]$
fails
More information about the Unassigned-bugs
mailing list