Bug 15027 - telepathy-idle do not compile on osx
Summary: telepathy-idle do not compile on osx
Status: RESOLVED DUPLICATE of bug 23351
Alias: None
Product: Telepathy
Classification: Unclassified
Component: idle (show other bugs)
Version: unspecified
Hardware: All Mac OS X (All)
: medium normal
Assignee: Olli Salli
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-15 09:38 UTC by Michael Scherer
Modified: 2011-10-03 10:06 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.