You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Suzanna Schmeelk <su...@yahoo.com> on 2011/05/04 00:02:28 UTC

Apache Traffic Server

Hi Dev!

We're trying to compile (but not execute) Apache Traffic Server at NYU-Poly.  
The only machine I have access to is a Sparc SunOS.  Is it possible to compile 
ATS on this system?  (I read through the included docs and found the 
REQUIREMENTS.  Are the REQUIREMENTS mandatory for compiling?)

Thank you very much in advance!
Sincerely,
Suzanna Schmeelk

Re: Apache Traffic Server

Posted by Dossy Shiobara <do...@panoptic.com>.
On 5/3/11 7:48 PM, Leif Hedstrom wrote:
> Actually, I think we removed the x86 assembler stuff, so maybe it 
> works (but, don't know if anyone has tested). gcc (compatible) atomic 
> instructions support is required though. As for not building on SunOS, 
> I'm guessing it's possible to backport all the changes we've made in 
> regards to things such as event polling etc. to work with it. I doubt 
> anyone cares :). 

I suspect that Suzanna's actually on Solaris - remember, it reports 
itself as "SunOS 5.x" - however, amongst the more experienced, we often 
refer to "SunOS 4.x" as "SunOS" and "SunOS 5.x" as "Solaris" - but, a 
n00b may only see "SunOS 5.10" and think "it's SunOS" ...

If ATS won't build and run on modern Solaris 10 on SPARC, I'd be 
surprised, honestly.

-- 
Dossy Shiobara         |      "He realized the fastest way to change
dossy@panoptic.com     |   is to laugh at your own folly -- then you
http://panoptic.com/   |   can let go and quickly move on." (p. 70)
   * WordPress * jQuery * MySQL * Security * Business Continuity *


Re: Apache Traffic Server

Posted by Igor Galić <i....@brainsware.org>.

----- Original Message -----
> Hi Leif,
> 
> Thank you so much!  I'm looking to find the proper machine.
>  Meanwhile, what
> command do I run to try to test the sparc build?  I saw the
> Makefile.in and
> Makefile.am

autoreconf -i 

./configure && make

Then sudo or pfexec to make install and then, the same to run 

/usr/local/bin/traffic_server -R 1 


This will run the regression test suite, at the very least this
should reveal some issues with endianness.

https://cwiki.apache.org/confluence/display/TS/Building
and
http://svn.apache.org/repos/asf/trafficserver/traffic/trunk/README

Should be quite useful.

I very much hope you're either using the latest -unstable or
trunk. (Our -stable release is.. a bit dated...)

 
> Best regards,
> Suzanna Schmeelk

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

Re: Apache Traffic Server

Posted by Suzanna Schmeelk <su...@yahoo.com>.
Hi Leif,

Thank you so much!  I'm looking to find the proper machine.  Meanwhile, what 
command do I run to try to test the sparc build?  I saw the Makefile.in and 
Makefile.am

Best regards,
Suzanna Schmeelk




________________________________
From: Leif Hedstrom <zw...@apache.org>
To: dev@trafficserver.apache.org
Cc: Suzanna Schmeelk <su...@yahoo.com>; Suzanna Schmeelk 
<ss...@students.poly.edu>
Sent: Tue, May 3, 2011 7:48:57 PM
Subject: Re: Apache Traffic Server

On 05/03/2011 05:43 PM, Dossy Shiobara wrote:
> Jut curious - why wouldn't ATS build on SunOS?  I saw a comment about "not on 
>SPARC" - is there some x86-specific inline assembly that's part of ATS's code or 
>something?

Actually, I think we removed the x86 assembler stuff, so maybe it works (but, 
don't know if anyone has tested). gcc (compatible) atomic instructions support 
is required though. As for not building on SunOS, I'm guessing it's possible to 
backport all the changes we've made in regards to things such as event polling 
etc. to work with it. I doubt anyone cares :).

-- leif

Re: Building Apache Traffic Server

Posted by Igor Galić <i....@brainsware.org>.

----- Original Message -----
> 
> Hi,
> 
> Building ATS earlier on a Ubuntu virtual machine went swimmingly.
> However, now trying to get the package libexpat-dev for Ubunto 9.10
> inside windows box and it seems we're forced to install
> libexpat1-dev:
> 
> s@ubuntu:~/trafficserver-2.0.1$ sudo apt-get install libexpat-dev
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package libexpat-dev is a virtual package provided by:
> libexpat1-dev 2.0.1-4ubuntu1.1
> You should explicitly select one to install.
> E: Package libexpat-dev has no installation candidate
> 
> It seems to produce make errors:
> ...-DHAVE_SYS_SYSINFO_H=1 -DHAVE_ARPA_NAMESER_COMPAT_H=1
> -DHAVE_EXECINFO_H=1 -DHAVE_NETDB_H=1 -DHAVE_REGEX_H=1
> -DHAVE_CTYPE_H=1 -DHAVE_MALLOC_H=1 -DHAVE_WAIT_H=1 -DHAVE_FLOAT_H=1
> -DHAVE_LIBGEN_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1
> -DHAVE_CPIO_H=1 -DHAVE_STROPTS_H=1 -DHAVE_SYS_MOUNT_H=1
> -DHAVE_SYS_PARAM_H=1 -DHAVE_SQLITE3_H=1 -DGETHOSTBYNAME_R_GLIBC2=1
> -DHTTP_CACHE=1 -DMGMT_USE_SYSLOG -I. -DLOCAL_MANAGER
> -I../../../libinktomi++ -I../../../librecords -I../../../proxy/mgmt2
> -I../../../proxy/mgmt2/api2 -I../../../proxy/mgmt2/api2/include
> -I../../../proxy/mgmt2/cli -I../../../proxy/mgmt2/cluster
> -I../../../proxy/mgmt2/preparse -I../../../proxy/mgmt2/utils
> -I../../../proxy/mgmt2/web2 -I../../../proxy -I/usr/include/tcl8.4
> -g -pipe -Wall -Werror -Wno-char-subscripts -Wno-write-strings -O3
> -feliminate-unused-debug-symbols -fno-strict-aliasing
> -Wno-invalid-offsetof -march=i586 -MT libutils_lm_a-XmlUtils.o -MD
> -MP -MF .deps/libutils_lm_a-XmlUtils.Tpo -c -o
> libutils_lm_a-XmlUtils.o `test -f 'XmlUtils.cc' || echo
> './'`XmlUtils.cc
> XmlUtils.cc: In member function ‘int XMLDom::LoadXML(const char*)’:
> XmlUtils.cc:452: error: ‘XML_Parser’ was not declared in this scope
> XmlUtils.cc:452: error: expected ‘;’ before ‘p’
> XmlUtils.cc:453: error: ‘p’ was not declared in this scope
> XmlUtils.cc:457: error: ‘p’ was not declared in this scope
> XmlUtils.cc:457: error: ‘XML_SetUserData’ was not declared in this
> scope
> XmlUtils.cc:462: error: ‘XML_SetElementHandler’ was not declared in
> this scope
> XmlUtils.cc:466: error: ‘XML_SetCharacterDataHandler’ was not
> declared in this scope
> XmlUtils.cc:468: error: ‘XML_Parse’ was not declared in this scope
> make[3]: *** [libutils_lm_a-XmlUtils.o] Error 1
> make[3]: Leaving directory
> `/home/schmeelk/trafficserver-2.0.1/proxy/mgmt2/utils'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/schmeelk/trafficserver-2.0.1/proxy/mgmt2'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/schmeelk/trafficserver-2.0.1/proxy'
> make: *** [all-recursive] Error 1
> 
> Any advise? Missing something obvious?


I'm on 11.04, so ignore the versions.
You need to install the *real* package, which you didn't.

i.galic@panic ~ % dpkg -l | grep -i expat
ii  libexpat1                             2.0.1-7ubuntu3                         XML parsing C library - runtime library
ii  libexpat1-dev                         2.0.1-7ubuntu3                         XML parsing C library - development kit
i.galic@panic ~ % cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04



> Thanks in advance!
> Suzanna

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

Building Apache Traffic Server

Posted by Suzanna Schmeelk <su...@yahoo.com>.
Hi,

Building ATS earlier on a Ubuntu virtual machine went swimmingly.  However, now 
trying to get the package libexpat-dev for Ubunto 9.10 inside windows box and it 
seems we're forced to install libexpat1-dev:

s@ubuntu:~/trafficserver-2.0.1$ sudo apt-get install libexpat-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libexpat-dev is a virtual package provided by:
  libexpat1-dev 2.0.1-4ubuntu1.1
You should explicitly select one to install.
E: Package libexpat-dev has no installation candidate

It seems to produce make errors:
...-DHAVE_SYS_SYSINFO_H=1 -DHAVE_ARPA_NAMESER_COMPAT_H=1 -DHAVE_EXECINFO_H=1 
-DHAVE_NETDB_H=1 -DHAVE_REGEX_H=1 -DHAVE_CTYPE_H=1 -DHAVE_MALLOC_H=1 
-DHAVE_WAIT_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_VALUES_H=1 
-DHAVE_ALLOCA_H=1 -DHAVE_CPIO_H=1 -DHAVE_STROPTS_H=1 -DHAVE_SYS_MOUNT_H=1 
-DHAVE_SYS_PARAM_H=1 -DHAVE_SQLITE3_H=1 -DGETHOSTBYNAME_R_GLIBC2=1 
-DHTTP_CACHE=1 -DMGMT_USE_SYSLOG -I.  -DLOCAL_MANAGER -I../../../libinktomi++ 
-I../../../librecords -I../../../proxy/mgmt2 -I../../../proxy/mgmt2/api2 
-I../../../proxy/mgmt2/api2/include -I../../../proxy/mgmt2/cli 
-I../../../proxy/mgmt2/cluster -I../../../proxy/mgmt2/preparse 
-I../../../proxy/mgmt2/utils -I../../../proxy/mgmt2/web2 -I../../../proxy 
-I/usr/include/tcl8.4  -g -pipe -Wall -Werror -Wno-char-subscripts 
-Wno-write-strings -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing 
-Wno-invalid-offsetof  -march=i586 -MT libutils_lm_a-XmlUtils.o -MD -MP -MF 
.deps/libutils_lm_a-XmlUtils.Tpo -c -o libutils_lm_a-XmlUtils.o `test -f 
'XmlUtils.cc' || echo './'`XmlUtils.cc
XmlUtils.cc: In member function ‘int XMLDom::LoadXML(const char*)’:
XmlUtils.cc:452: error: ‘XML_Parser’ was not declared in this scope
XmlUtils.cc:452: error: expected ‘;’ before ‘p’
XmlUtils.cc:453: error: ‘p’ was not declared in this scope
XmlUtils.cc:457: error: ‘p’ was not declared in this scope
XmlUtils.cc:457: error: ‘XML_SetUserData’ was not declared in this scope
XmlUtils.cc:462: error: ‘XML_SetElementHandler’ was not declared in this scope
XmlUtils.cc:466: error: ‘XML_SetCharacterDataHandler’ was not declared in this 
scope
XmlUtils.cc:468: error: ‘XML_Parse’ was not declared in this scope
make[3]: *** [libutils_lm_a-XmlUtils.o] Error 1
make[3]: Leaving directory 
`/home/schmeelk/trafficserver-2.0.1/proxy/mgmt2/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/schmeelk/trafficserver-2.0.1/proxy/mgmt2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/schmeelk/trafficserver-2.0.1/proxy'
make: *** [all-recursive] Error 1

Any advise?  Missing something obvious? 

Thanks in advance!
Suzanna

Thanks! ATS built fine on Ubunto 9.10

Posted by Suzanna Schmeelk <su...@yahoo.com>.
Hi All,

Thank you so much for your help yesterday!  I got ATS built on Ubunto 9.10.  
Great documentation.  


The logfile is attached.  If I'm wrong at it didn't build correctly, please feel 
free to let me know!

f -march=i586 -rdynamic -o update_records update_records.o  
../proxy/mgmt2/librecords.a ../libinktomi++/libinktomi++.a -lpthread -lrt 
-ltcl8.4 -ldl -lssl -lcrypto
make[1]: Leaving directory `/home/ses/Desktop/trafficserver-2.0.1/rc'
make[1]: Entering directory `/home/ses/Desktop/trafficserver-2.0.1'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/ses/Desktop/trafficserver-2.0.1'

Thanks, again!
Sincerely,
Suzanna Schmeelk

Re: config.log

Posted by Leif Hedstrom <zw...@apache.org>.
On 05/03/2011 06:13 PM, Suzanna Schmeelk wrote:
> Hi,
>
> Sorry.  I should have sent out the config.log

Two things:

1) You probably want to subscribe to teh dev@ mailing list, so I don't 
have to approve every message ;)

2) You should really download v2.1.7 instead of the v2.0.1 release. I 
can with 99% certainty say that v2.0.1 will not work for you.

In fact, you might even try the v2.1.8 release candidate, from 
http://people.apache.org/~zwoop/rel-candidates/ . Assuming it passes the 
votes (please test / vote everyone), it will be released on Thursday.

-- leif


config.log

Posted by Suzanna Schmeelk <su...@yahoo.com>.
Hi,

Sorry.  I should have sent out the config.log

Suzanna Schmeelk




________________________________
From: Leif Hedstrom <zw...@apache.org>
To: dev@trafficserver.apache.org
Cc: Suzanna Schmeelk <su...@yahoo.com>; Suzanna Schmeelk 
<ss...@students.poly.edu>
Sent: Tue, May 3, 2011 7:48:57 PM
Subject: Re: Apache Traffic Server

On 05/03/2011 05:43 PM, Dossy Shiobara wrote:
> Jut curious - why wouldn't ATS build on SunOS?  I saw a comment about "not on 
>SPARC" - is there some x86-specific inline assembly that's part of ATS's code or 
>something?

Actually, I think we removed the x86 assembler stuff, so maybe it works (but, 
don't know if anyone has tested). gcc (compatible) atomic instructions support 
is required though. As for not building on SunOS, I'm guessing it's possible to 
backport all the changes we've made in regards to things such as event polling 
etc. to work with it. I doubt anyone cares :).

-- leif

Re: Apache Traffic Server

Posted by Leif Hedstrom <zw...@apache.org>.
On 05/03/2011 05:43 PM, Dossy Shiobara wrote:
> Jut curious - why wouldn't ATS build on SunOS?  I saw a comment about 
> "not on SPARC" - is there some x86-specific inline assembly that's 
> part of ATS's code or something?

Actually, I think we removed the x86 assembler stuff, so maybe it works 
(but, don't know if anyone has tested). gcc (compatible) atomic 
instructions support is required though. As for not building on SunOS, 
I'm guessing it's possible to backport all the changes we've made in 
regards to things such as event polling etc. to work with it. I doubt 
anyone cares :).

-- leif

Re: Apache Traffic Server

Posted by Dossy Shiobara <do...@panoptic.com>.
Jut curious - why wouldn't ATS build on SunOS?  I saw a comment about 
"not on SPARC" - is there some x86-specific inline assembly that's part 
of ATS's code or something?


On 5/3/11 7:33 PM, John Plevyak wrote:
>  Wow, SunOS. That must be one old machine. As an BSD'er was pissed
>  when Sun decided to go to Solaris, but I had to give that up a while
>  back.
>
>  The best chance you would have would be if you moved to Solaris or
>  Freebsd on Sparc and used gcc.

-- 
Dossy Shiobara         |      "He realized the fastest way to change
dossy@panoptic.com     |   is to laugh at your own folly -- then you
http://panoptic.com/   |   can let go and quickly move on." (p. 70)
   * WordPress * jQuery * MySQL * Security * Business Continuity *


Re: Apache Traffic Server

Posted by John Plevyak <jp...@acm.org>.
Wow, SunOS.   That must be one old machine.  As an BSD'er was pissed when
Sun
decided to go to Solaris, but I had to give that up a while back.

The best chance you would have would be if you moved to Solaris or Freebsd
on Sparc
and used gcc.

john

On Tue, May 3, 2011 at 3:50 PM, Leif Hedstrom <zw...@apache.org> wrote:

> On 05/03/2011 04:02 PM, Suzanna Schmeelk wrote:
>
>> Hi Dev!
>>
>> We're trying to compile (but not execute) Apache Traffic Server at
>> NYU-Poly.
>> The only machine I have access to is a Sparc SunOS.  Is it possible to
>> compile
>> ATS on this system?  (I read through the included docs and found the
>> REQUIREMENTS.  Are the REQUIREMENTS mandatory for compiling?)
>>
>
>
> Yeah, I don't think we compile for SPARC architecture at this time. Solaris
> 10/11 for Intel should compile though, but doesn't sound like that is an
> option.
>
> -- Leif
>
>

Re: Apache Traffic Server

Posted by Leif Hedstrom <zw...@apache.org>.
On 05/03/2011 04:02 PM, Suzanna Schmeelk wrote:
> Hi Dev!
>
> We're trying to compile (but not execute) Apache Traffic Server at NYU-Poly.
> The only machine I have access to is a Sparc SunOS.  Is it possible to compile
> ATS on this system?  (I read through the included docs and found the
> REQUIREMENTS.  Are the REQUIREMENTS mandatory for compiling?)


Yeah, I don't think we compile for SPARC architecture at this time. 
Solaris 10/11 for Intel should compile though, but doesn't sound like 
that is an option.

-- Leif