Bug 764734 (GLUSTER-3002)

Summary: build issues on solaris
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: buildAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: gluster-bugs, lakshmipathi, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Solaris   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
fixing build issues on mac/solaris none

Description Amar Tumballi 2011-06-08 11:20:24 UTC
multiple link failures in solaris build


issue 0:
----------------
../../contrib/apple/daemon.c:42:19: error: paths.h: No such file or directory
../../contrib/apple/daemon.c: In function 'os_daemon_return':
../../contrib/apple/daemon.c:80: error: '_PATH_DEVNULL' undeclared (first use in this function)
../../contrib/apple/daemon.c:80: error: (Each undeclared identifier is reported only once
../../contrib/apple/daemon.c:80: error: for each function it appears in.)
make: Fatal error: Command failed for target `daemon.o'
----------------


issue 1:
----------------
ld: warning: file /glusterfs-3git/rpc/rpc-lib/src/.libs/libgfrpc.so: linked to ../../rpc/rpc-lib/src/.libs/libgfrpc.so: attempted multiple inclusion of file
ld: warning: file /glusterfs-3git/libglusterfs/src/.libs/libglusterfs.so: linked to ../../libglusterfs/src/.libs/libglusterfs.so: attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
os_daemon_return                    glusterfsd.o
ld: fatal: Symbol referencing errors. No output written to .libs/glusterfsd
make: Fatal error: Command failed for target `glusterfsd'
----------------

issue 2:
----------------
Undefined                       first referenced
 symbol                             in file
mkdtemp                             cli-rpc-ops.o
ld: fatal: Symbol referencing errors. No output written to .libs/gluster
make: Fatal error: Command failed for target `gluster'
----------------

This is after I apply the two attached patches.

Comment 1 Anand Avati 2011-06-17 02:01:58 UTC
PATCH: http://patches.gluster.com/patch/7518 in master (build: fixes to work on solaris)

Comment 2 Amar Tumballi 2011-06-17 02:14:00 UTC
With the committed patch, the build on solaris seems to be working fine.

Comment 3 Lakshmipathi G 2011-08-19 06:12:01 UTC
should be working on latest git commits. (we have nightly solaris builds running)