net-libs/libproxy-0.2.3 does not build by default on sparc-solaris because of missing "-lsocket -lnsl" flags and because Solaris does not define INET_ADDRSTRLEN/INET6_ADDRSTRLEN. Attached patches make it emerge successfully. Reproducible: Always Steps to Reproduce:
Created attachment 192354 [details, diff] libproxy-addrstrlen.patch This patch adds INET_ADDRSTRLEN/INET6_ADDRSTRLEN defines when undefined
Created attachment 192356 [details, diff] libproxy-0.2.3.ebuild.patch diff to updated ebuild, also adds necessary linker flags
Thanks, I added it. Could you be so kind as to submit it upstream: http://code.google.com/p/libproxy/issues/list ??
Submitted the issues upstream http://code.google.com/p/libproxy/issues/detail?id=51 http://code.google.com/p/libproxy/issues/detail?id=52
libproxy still doesn't compile on Solaris. Line 63 of net-libs/libproxy/libproxy-0.2.3.ebuild is: [[ ${CHOST} == *-solaris ]] && extralibs="-lsocket -lnsl" but should be: [[ ${CHOST} == *-solaris* ]] && extralibs="-lsocket -lnsl" in order to be set on Solaris systems. With this fixed compilation works fine. Could you please add the required asterisk?
(In reply to comment #5) > libproxy still doesn't compile on Solaris. > > Line 63 of net-libs/libproxy/libproxy-0.2.3.ebuild is: > [[ ${CHOST} == *-solaris ]] && extralibs="-lsocket -lnsl" > but should be: > [[ ${CHOST} == *-solaris* ]] && extralibs="-lsocket -lnsl" > in order to be set on Solaris systems. With this fixed compilation works fine. > > Could you please add the required asterisk? > Seems reasonable to me, added.