zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rakesh R (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-1077) C client lib doesn't build on Solaris
Date Mon, 18 May 2015 18:21:02 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14548454#comment-14548454

Rakesh R commented on ZOOKEEPER-1077:

Thanks [~rgs] and [~cnauroth] for the good work!

I've one observation about {{CHANGES.txt}} file entry. Its added the details under {{Release
3.5.1 - 5/15/2015}} section, but this jira is marked for 3.5.2 and not part of {{zookeeper-3.5.1-alpha}}
release, right?.

[~michim], [~phunt], [~fpj], For setting up {{3.5.2}} development activities in {{CHANGES.txt}},
should we wait for the release to be completed and then update the {{CHANGES.txt}} by moving
these resolved jira details over there ?

> C client lib doesn't build on Solaris
> -------------------------------------
>                 Key: ZOOKEEPER-1077
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1077
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: build, c client
>    Affects Versions: 3.3.4
>         Environment: uname -a: SunOS [redacted] 5.10 Generic_142910-17 i86pc i386 i86pc
> GNU toolchain (gcc 3.4.3, GNU Make etc.)
>            Reporter: Tadeusz Andrzej Kadłubowski
>            Assignee: Chris Nauroth
>            Priority: Critical
>             Fix For: 3.4.7, 3.5.2, 3.6.0
>         Attachments: ZOOKEEPER-1077-branch-3.4.002.patch, ZOOKEEPER-1077.001.patch, ZOOKEEPER-1077.002.patch,
> Hello,
> Some minor trouble with building ZooKeeper C client library on Sun^H^H^HOracle Solaris
> 1. You need to link against "-lnsl -lsocket"
> 2. ctime_r needs a buffer size. The signature is: "char *ctime_r(const time_t *clock,
char *buf, int buflen)"
> 3. In zk_log.c you need to manually cast pid_t to int (-Werror can be cumbersome ;) )
> 4. getpwuid_r()returns pointer to struct passwd, which works as the last parameter on
> Solaris signature: struct passwd *getpwuid_r(uid_t  uid,  struct  passwd  *pwd, char
*buffer, int  buflen); 
> Linux signature: int getpwuid_r(uid_t uid, struct passwd *pwd, char *buf, size_t buflen,
struct passwd **result);

This message was sent by Atlassian JIRA

View raw message