You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Igor Galić (JIRA)" <ji...@apache.org> on 2011/07/13 13:03:59 UTC

[jira] [Commented] (TS-856) ATS doesn't build on Solaris Studio 12.2 in 32 bit mode

    [ https://issues.apache.org/jira/browse/TS-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064483#comment-13064483 ] 

Igor Galić commented on TS-856:
-------------------------------

{noformat}
<@postwait> jMCg: the code changes look fine
<@postwait> the configure.ac does not
<@postwait> putting /usr/local/include in the CPPFLAGS isn't something we should be doing -- the build should:
<@postwait> CPPFLAGS=-I/usr/local/include ./configure ....
<@postwait> Also, the other configure.ac change would have the build _default_ to 32 bit.
<@postwait> Solaris doesn't really even run on 32 bit anymore.
<@postwait> ZFS has trouble and all of the 32bit ZFS bugs files are being ignored.
<@postwait> Sun (and now Oracle) are treating 32bit as a dead platform.
<@postwait> So, at the very least we should defaul to a 64bit build.
{noformat}

I disagree with the 32/64 part. We are not defaulting to 32bit. We are defaulting to what the user specifies in CFLAGS or in CC.

> ATS doesn't build on Solaris Studio 12.2 in 32 bit mode
> -------------------------------------------------------
>
>                 Key: TS-856
>                 URL: https://issues.apache.org/jira/browse/TS-856
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Build, DNS
>    Affects Versions: 3.1.0, 3.0.0
>         Environment: Solaris 10, x86, Solaris Studio 12.2
>            Reporter: Igor Galić
>             Fix For: 3.1.0
>
>         Attachments: sunpro12.2-32bit.patch
>
>
> Because our build system automatically adds -m64 on Solaris/SunPro, we're unable to compile Traffic Server in 32bit mode: This is necessary because some libraries simply aren't available in 64bit.
> I've created a patch to alter this behaviour, except now it cannot link traffic_server:
> {noformat}
> gmake[2]: Entering directory `/buildr/mgar/pkg/trafficserver/trunk/work/build-isa-i386/trafficserver-3.0.0/proxy'
> /bin/bash ../libtool --tag=CXX   --mode=link /opt/solstudio12.2/bin/CC -m32  -xO3 -g -mt -library=stlport4 -erroff -R/opt/csw/lib -L/opt/csw/lib -L/lib -L/usr/local/lib -o traffic_server AbstractBuffer.o CacheControl.o ProxyConfig.o ControlBase.o ControlMatcher.o CoreUtils.o DiagsConfig.o Error.o EventName.o ICP.o ICPConfig.o ICPProcessor.o ICPStats.o InkAPI.o FetchSM.o InkIOCoreAPI.o InkXml.o IPAllow.o Main.o ParentSelection.o Plugin.o PluginDB.o PluginVC.o Prefetch.o ReverseProxy.o signals.o SocksProxy.o StatPages.o StatSystem.o Transform.o Update.o InkAPITest.o RegressionSM.o TestHook.o http/libhttp.a http/remap/libhttp_remap.a congest/libCongestionControl.a logging/liblogging.a logging/liblogcollation.a stats/libstats.a hdrs/libhdrs.a ../mgmt/preparse/libpreparse.a ../mgmt/utils/libutils_p.a ../mgmt/libmgmt_p.a ../iocore/utils/libinkutils.a ../iocore/cluster/libinkcluster.a ../iocore/dns/libinkdns.a ../iocore/hostdb/libinkhostdb.a ../iocore/dns/libinkdns.a ../iocore/cluster/libinkcluster.a ../iocore/cache/libinkcache.a ../iocore/aio/libinkaio.a ../iocore/net/libinknet.a ../iocore/eventsystem/libinkevent.a ../lib/records/librecprocess.a ../iocore/eventsystem/libinkevent.a ../lib/ts/libtsutil.la -lpthread -lsocket -lnsl -lresolv -lposix4 -lpcre -lssl -lcrypto -L/opt/csw/lib -ltcl8.4 -ldl -lexpat -ldemangle -liconv -lm    -lz
> libtool: link: /opt/solstudio12.2/bin/CC -m32 -xO3 -g -mt -erroff -o .libs/traffic_server AbstractBuffer.o CacheControl.o ProxyConfig.o ControlBase.o ControlMatcher.o CoreUtils.o DiagsConfig.o Error.o EventName.o ICP.o ICPConfig.o ICPProcessor.o ICPStats.o InkAPI.o FetchSM.o InkIOCoreAPI.o InkXml.o IPAllow.o Main.o ParentSelection.o Plugin.o PluginDB.o PluginVC.o Prefetch.o ReverseProxy.o signals.o SocksProxy.o StatPages.o StatSystem.o Transform.o Update.o InkAPITest.o RegressionSM.o TestHook.o  -L/opt/csw/lib -L/lib -L/usr/local/lib http/libhttp.a http/remap/libhttp_remap.a congest/libCongestionControl.a logging/liblogging.a logging/liblogcollation.a stats/libstats.a hdrs/libhdrs.a ../mgmt/preparse/libpreparse.a ../mgmt/utils/libutils_p.a ../mgmt/libmgmt_p.a ../iocore/utils/libinkutils.a ../iocore/hostdb/libinkhostdb.a ../iocore/dns/libinkdns.a ../iocore/cluster/libinkcluster.a ../iocore/cache/libinkcache.a ../iocore/aio/libinkaio.a ../iocore/net/libinknet.a ../lib/records/librecprocess.a ../iocore/eventsystem/libinkevent.a ../lib/ts/.libs/libtsutil.so -library=stlport4 -lc -lpthread -lsocket -lnsl -lresolv -lposix4 -lpcre -lssl -lcrypto -ltcl8.4 -ldl -lexpat -ldemangle -liconv -lm -lz -mt -R/opt/csw/lib
> Undefined                       first referenced
>  symbol                             in file
> int ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned char*,int,const unsigned char*,unsigned char*,int) ../iocore/dns/libinkdns.a(DNS.o)
> ld: fatal: Symbol referencing errors. No output written to .libs/traffic_server
> gmake[2]: *** [traffic_server] Error 2
> gmake[2]: Leaving directory `/buildr/mgar/pkg/trafficserver/trunk/work/build-isa-i386/trafficserver-3.0.0/proxy'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/buildr/mgar/pkg/trafficserver/trunk/work/build-isa-i386/trafficserver-3.0.0/proxy'
> gmake: *** [all-recursive] Error 1
> igalic@asd5inbld002:/buildr/mgar/pkg/trafficserver/trunk/work/build-isa-i386/trafficserver-3.0.0>
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira