pkgsrc-Bugs archive

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

pkg/43924: [net/host] build error on Solaris 10



>Number:         43924
>Category:       pkg
>Synopsis:       [net/host] build error on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 28 23:40:00 +0000 2010
>Originator:     Youssef Ghorbal
>Release:        Solaris 10 (x86)
>Organization:
Institut Pasteur
>Environment:
SunOS 5.10 Generic_139556-08 i86pc i386 i86pc
>Description:
The net/host package does not build on Solaris 05/09 x86 (pkgsrc current) and 
reports many errors. These are the root causes of the build failure :

1 - The package tries to build a static binary when it has always been such a 
pain on Solaris (there is no libc.a) 
2 - The sun linker does not kown about the --warn-common option.
3 - Some symbols are not defined in "regular" shared libraries. We have to add 
extra ones-lresolv -lsocket -lnsl to the linker in order to resolve all symbols.
4 - The andoc macro does not exist on Solaris 10 neither the ascii device type. 
This causes an error message when formatting man pages :
...
nroff -Tascii -mandoc host.1 > host.cat1
nroff: Cannot find library -mandoc
>How-To-Repeat:
build net/host on Solaris 10 (x86)
>Fix:
For problems 1, 2 and 3 I suggest to add this section in the Makefile :

.if ${OPSYS} == "SunOS"
LDFLAGS+= -lresolv -lsocket -lnsl
BUILDLINK_TRANSFORM+= rm:-Wl,--warn-common
BUILDLINK_TRANSFORM+= rm:-static
.endif

For the manpage formatting as a workaround one can use groff instead of the 
Sun's nroff (TOOLS_PLATFORM.nroff=/opt/pkg/bin/groff in mk.conf)



Home | Main Index | Thread Index | Old Index