pkgsrc-Users archive

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

Build issue of net/host on Solaris 10



Hello,

I don't know if this is the right way to report a build issue on this package, If not please provide me with the appropriate way of doing. The net/host package does not build on Solaris 05/09 x86 (pkgsrc current) After some digging I figured out how to make it work. The package tries to build a static binary when it has always been such a pain on Solaris (there is no libc.a) In addition, the sun linker does not kown about the --warn-common option. I added these lines to the Makefile (largely inspired by the Darwin exception section) and it did the trick (at least for compiling):
        .if ${OPSYS} == "SunOS"
        LDFLAGS+= -lresolv -lsocket -lnsl
        BUILDLINK_TRANSFORM+= rm:-Wl,--warn-common
        BUILDLINK_TRANSFORM+= rm:-static
        .endif

Another issue arose when the build process tries to create the man pages. The build script fails with an error message :
        nroff -Tascii -mandoc host.1 > host.cat1
        nroff: Cannot find library -mandoc
        
The andoc macro does not exist on Solaris 10 neither the ascii device type. I managed to avoid this error by forcing the use of groff instead of nroff (TOOLS_PLATFORM.nroff= /opt/pkg/bin/groff) I'm not familiar with the man/troff stuff but it seems that the pkgsrc misses a SunOS specific mk file for managing the man pages as pointed in this page : http://tinyurl.com/yfstm5k

Best regards,
Youssef Ghorbal


        


Home | Main Index | Thread Index | Old Index