Bug 159417 - getnameinfo is missdetected in kdebase 4.0.66
Summary: getnameinfo is missdetected in kdebase 4.0.66
Status: RESOLVED FIXED
Alias: None
Product: buildsystem
Classification: Developer tools
Component: KDE4 (cmake) (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-16 18:14 UTC by Arkadiusz Miskiewicz
Modified: 2010-01-20 08:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arkadiusz Miskiewicz 2008-03-16 18:14:34 UTC
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
Comment 1 Raphael Kubo da Costa 2009-08-25 03:57:32 UTC
Can you please check if this has been fixed?
Comment 2 Raphael Kubo da Costa 2010-01-07 03:28:32 UTC
This has probably been fixed a long time ago. Please reopen if somehow the issue persists.
Comment 3 Arkadiusz Miskiewicz 2010-01-20 08:33:33 UTC
Looks fixed to me.