Bug 245208

Summary: adminutil: Solaris port for 1.1
Product: [Retired] 389 Reporter: Rich Megginson <rmeggins>
Component: AdminAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: low Docs Contact:
Priority: low    
Version: 1.1.0beta   
Target Milestone: ---   
Target Release: ---   
Hardware: sparc   
OS: Other   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 16:38:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 240316, 427409    
Attachments:
Description Flags
diffs
none
cvs commit log
none
cvs commit log - fix build breakage none

Description Rich Megginson 2007-06-21 17:36:36 UTC
There are several problems related to building and running adminutil on Solaris.

Comment 1 Rich Megginson 2007-06-21 17:38:50 UTC
Created attachment 157558 [details]
diffs

Comment 2 Nathan Kinder 2007-06-21 20:20:14 UTC
You don't need to include a dummy C++ source file in order to force libtool to
use CXXLINK.  The proper way to deal with this problem is to set "target_LINK =
$(CXXLINK)" in Makefile.am.  This forces it to use the C++ linked for building a
particular target, even if all the source files that make up that target are
pure C code.

Comment 3 Nathan Kinder 2007-06-21 20:21:39 UTC
Please disregard my previous comment.  I just noticed that the problem is that
CXXLINK is not defined at all if no C++ source files are listed in Makefile.am.

Comment 4 Rich Megginson 2007-06-21 21:29:40 UTC
Created attachment 157576 [details]
cvs commit log

Reviewed by: nkinder (Thanks!)
Files: see diff - new file dummy.cpp
Branch: HEAD
Fix Description: There are several problems with building/running adminutil on
Solaris.  The biggest is that ICU introduces a dependency on C++.  Solaris
requires linking with the C++ libraries and that also requires using C++ to
link as well.  This means using the CXXLINK macro.  However, automake will only
generate this macro if it detects a C++ source file in Makefile.am.  So, we
have to introduce a dummy.cpp file to force automake to generate the CXXLINK
macro, then use that to link the shared libraries.
Accept automake version 1.10 or later.
Look for mozldap6 first, then mozldap.
Platforms tested: Solaris 9 64bit
Flag Day: Yes - autotool file changes

Comment 5 Rich Megginson 2007-06-21 23:06:24 UTC
Created attachment 157585 [details]
cvs commit log - fix build breakage

Fix linux build breakage - use $(LINK) if not using $(CXXLINK)

Comment 6 Anh Nguyen 2007-12-09 15:37:23 UTC
to_be_verified_by_dev

Comment 7 Nathan Kinder 2007-12-17 19:06:18 UTC
We have been successfully building and using adminutil on Solaris for some time
now.  Marking as verified.