Bug 15027

Summary: telepathy-idle do not compile on osx
Product: Telepathy Reporter: Michael Scherer <misc>
Component: idleAssignee: Olli Salli <ollisal>
Status: RESOLVED DUPLICATE QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: dmitrij.ledkov
Version: unspecified   
Hardware: All   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Michael Scherer 2008-03-15 09:38:21 UTC
It seems that Mac os x do not have a implementation of strnlen :

Undefined symbols:
  "_strnlen", referenced from:
      _idle_parser_receive in libidle-convenience.a(idle-parser.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Comment 1 Dima 2008-06-08 08:07:50 UTC
I've google it. Came up with Code Search result.

Either there is no glibc in your path/or compiled. Either this needs to be added to the source+build system.

#ifndef HAVE_STRNLEN
/* a naive implementation of strnlen for systems w/o glibc */
size_t strnlen(const char *s, size_t limit)
{
   size_t len = 0;
   while ((len < limit) && (*s++))
     len++;
   return len;
}
#endif

http://www.google.com/codesearch?hl=en&q=strnlen+show:Aatd47UuIkw:vsTk990XjY8:B2qZoM5Tap4&source=universal&cs_p=http://mirror.anl.gov/pub/pvfs2/old/pvfs2-0.6.0.tar.gz&cs_f=pvfs2-0.6.0/src/common/misc/str-utils.c#l593

GNU LESSER GENERAL PUBLIC LICENSE 2.1
Comment 2 Will Thompson 2011-10-03 10:06:19 UTC
This was fixed in 0.1.9, courtesy of Thomas Klausner on bug 23351.

*** This bug has been marked as a duplicate of bug 23351 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.