libextractor
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libextractor] libextractor and Solaris 10


From: Michał Kowalczuk
Subject: [libextractor] libextractor and Solaris 10
Date: Mon, 27 Mar 2006 14:41:25 +0200
User-agent: Mail/News 1.5 (X11/20060122)

Hello,

I needed to compile libextractor-0.5.11 on Solaris 10. There is a problem with
function dateToString in file src/plugins/wordleaker/wordextractor.cc (use of
strndup() function, which is glibc-specific and doesn't exist on Solaris).
Because strftime() already prepares string, that has maximum 128 characters, I
think that use of strndup() is not neccesary, so you can simply return
strdup(f), which is Solaris compatible. :)

Another hint is that to compile libextractor under Solaris, you need to use
-D_POSIX_PTHREAD_SEMANTICS CFLAG, because without it ctime_r() has following
prototype:
char *ctime_r(const time_t *clock, char *buf, int buflen);
instead of:
char *ctime_r(const time_t *clock, char *buf);

After applying those two fixes libextractor successfully compiled on Solaris
10. :) Thanks for a good piece of Open Source software. :D

-- 
greetings,
Michał Kowalczuk
Wirtualna Polska S.A.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]