Re: [osol-discuss] [OpenIndiana-discuss] Building aria2 from source

2012-11-20 Thread ken mays
Jason,

Using GCC

On oi_151a7:

$ autoconf --version
autoconf (GNU Autoconf) 2.63

$ gettext --version
gettext (GNU gettext-runtime) 0.16.1
$ gcc --version

gcc (GCC) 4.6.2


$ cd aria2-1.15.2


$ ./configure --enable-static=no --with-gnutls --enable-bittorrent 
--enable-metalink --enable-threads=posix --enable-epoll

configure: summary of build options:


Build:  i386-pc-solaris2.11
Host:   i386-pc-solaris2.11
Target: i386-pc-solaris2.11
Install prefix: /usr
CXXFLAGS:   -g -O2
CFLAGS: -g -O2
CPPFLAGS:   -I$(top_builddir)/deps/wslay/lib/includes 
-I$(top_srcdir)/deps/wslay/lib/includes  -I/usr/include/libxml2  
-D_REENTRANT
LDFLAGS:
LIBS:   $(top_builddir)/deps/wslay/lib/libwslay.la -lgcrypt -lgpg-error 
-lgnutls   -lsqlite3   -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -
lnsl
DEFS:   -DHAVE_CONFIG_H
SQLite3:    yes
GnuTLS: yes
OpenSSL:
CA Bundle:
LibXML2:    yes
LibExpat:
LibCares:   no
Zlib:   no
Epoll:
Bittorrent: yes
Metalink:   yes
XML-RPC:    yes
Message Digest: yes
WebSocket:  yes
bash_completion dir: ${datarootdir}/doc/${PACKAGE_TARNAME}/bash_completion
Static build:



$ ls -al /usr/bin/aria2c
-rwxr-xr-x 1 root root 3595412 Nov 20 22:07 /usr/bin/aria2c



$ ldd /usr/bin/aria2c
    libgcrypt.so.11 =   /usr/lib/libgcrypt.so.11
    libgpg-error.so.0 = /usr/lib/libgpg-error.so.0
    libgnutls.so.26 =   /usr/lib/libgnutls.so.26
    libsqlite3.so.0 =   /usr/lib/libsqlite3.so.0
    libxml2.so.2 =  /usr/lib/libxml2.so.2
    libz.so.1 = /usr/lib/libz.so.1
    libpthread.so.1 =   /usr/lib/libpthread.so.1
    libsocket.so.1 =    /usr/lib/libsocket.so.1
    libnsl.so.1 =   /usr/lib/libnsl.so.1
    libstdc++.so.6 =    /usr/lib/libstdc++.so.6
    libm.so.2 = /usr/lib/libm.so.2
    libgcc_s.so.1 = /usr/lib/libgcc_s.so.1
    libc.so.1 = /usr/lib/libc.so.1
    libtasn1.so.3 = /usr/lib/libtasn1.so.3
    libmp.so.2 =    /lib/libmp.so.2
    libmd.so.1 =    /lib/libmd.so.1



$ uname -a
SunOS pi 5.11 oi_151a7 i86pc i386 i86pc Solaris

$ file /usr/bin/aria2c
ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, stripped

$ /usr/bin/aria2c --version
aria2 version 1.15.2
Copyright (C) 2006, 2012 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: BitTorrent, Firefox3 Cookie, HTTPS, Message Digest, Metalink,
XML-RPC
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5

Report bugs to t-tujik...@users.sourceforge.net
Visit http://aria2.sourceforge.net/

Hope that helps you,
Ken Mays





 From: Jason Lawrence jjlaw...@gmail.com
To: openindiana-disc...@openindiana.org 
Sent: Tuesday, November 20, 2012 3:57 PM
Subject: [OpenIndiana-discuss] Building aria2 from source
 
I'm having trouble setting up a reasonable build environment on oi_151a7. Using 
aria2 as an example package [https://github.com/tatsuhiro-t/aria2], the 
(initial) limitation seems to be outdated versions of autoconf and gettext as I 
can't find a clean way to configure the package. Any suggestions on where to 
start looking?

(Sorry if this was a repost. My first message was held/rejected as I was not a 
member yet.)

--jason
___
OpenIndiana-discuss mailing list
openindiana-disc...@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] [OpenIndiana-discuss] Building aria2 from source

2012-11-20 Thread ken mays
Jason,

Means you must roll your newer builds of autoconf and gettext and point your 
configure options to that.
You can deinstall the old builds for easier detection in some cases.

~ Ken Mays





 From: Jason Lawrence jjlaw...@gmail.com
To: ken mays maybird1...@yahoo.com 
Cc: opensolaris-discuss@opensolaris.org opensolaris-discuss@opensolaris.org 
Sent: Tuesday, November 20, 2012 5:43 PM
Subject: Re: [OpenIndiana-discuss] Building aria2 from source
 

Sorry, I should have specified this is when building from the master branch 
after checking out the git repo. I can't even get to the point of being able to 
generate a configure script correctly:

$ ~/src $ git clone git://github.com/tatsuhiro-t/aria2.git
Cloning into aria2...
remote: Counting objects: 43660, done.
remote: Compressing objects: 100% (5124/5124), done.
remote: Total 43660 (delta 38635), reused 43527 (delta 38502)
Receiving objects: 100% (43660/43660), 15.49 MiB | 162 KiB/s, done.
Resolving deltas: 100% (38635/38635), done.

$ ~/src $ cd aria2
$ ~/src/aria2 $ autoreconf -i
autopoint: *** The AM_GNU_GETTEXT_VERSION declaration in your configure.ac      
         file requires the infrastructure from gettext-0.18 but this version    
           is older. Please upgrade to gettext-0.18 or newer.
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1

$ ~/src/aria2 $ autoconf 
configure.ac:4: error: Autoconf version 2.67 or higher is required
configure.ac:4: the top level
autom4te: /usr/sfw/bin/gm4 failed with exit status: 63


--jason

On Tuesday, November 20, 2012 at 4:35 PM, ken mays wrote:
Jason,


Using GCC

On oi_151a7:


$ autoconf --version
autoconf (GNU Autoconf) 2.63


$ gettext --version
gettext (GNU gettext-runtime) 0.16.1
$ gcc --version

gcc (GCC) 4.6.2



$ cd aria2-1.15.2



$ ./configure --enable-static=no --with-gnutls --enable-bittorrent 
--enable-metalink --enable-threads=posix --enable-epoll


configure: summary of build options:


Build:  i386-pc-solaris2.11
Host:   i386-pc-solaris2.11
Target: i386-pc-solaris2.11
Install prefix: /usr
CXXFLAGS:   -g -O2
CFLAGS: -g -O2
CPPFLAGS:   -I$(top_builddir)/deps/wslay/lib/includes 
-I$(top_srcdir)/deps/wslay/lib/includes  -I/usr/include/libxml2 
 -D_REENTRANT
LDFLAGS:
LIBS:   $(top_builddir)/deps/wslay/lib/libwslay.la -lgcrypt 
-lgpg-error -lgnutls   -lsqlite3   -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread 
-lm -lsocket -
lnsl
DEFS:   -DHAVE_CONFIG_H
SQLite3:    yes
GnuTLS: yes
OpenSSL:
CA Bundle:
LibXML2:    yes
LibExpat:
LibCares:   no
Zlib:   no
Epoll:
Bittorrent: yes
Metalink:   yes
XML-RPC:    yes
Message Digest: yes
WebSocket:  yes
bash_completion dir:
 ${datarootdir}/doc/${PACKAGE_TARNAME}/bash_completion
Static build:




$ ls -al /usr/bin/aria2c
-rwxr-xr-x 1 root root 3595412 Nov 20 22:07 /usr/bin/aria2c





$ ldd /usr/bin/aria2c
    libgcrypt.so.11 =   /usr/lib/libgcrypt.so.11
    libgpg-error.so.0 = /usr/lib/libgpg-error.so.0
    libgnutls.so.26 =   /usr/lib/libgnutls.so.26
    libsqlite3.so.0 =   /usr/lib/libsqlite3.so.0
    libxml2.so.2 =  /usr/lib/libxml2.so.2
    libz.so.1 = /usr/lib/libz.so.1
    libpthread.so.1 =  
 /usr/lib/libpthread.so.1
    libsocket.so.1 =    /usr/lib/libsocket.so.1
    libnsl.so.1 =   /usr/lib/libnsl.so.1
    libstdc++.so.6 =    /usr/lib/libstdc++.so.6
    libm.so.2 = /usr/lib/libm.so.2
    libgcc_s.so.1 = /usr/lib/libgcc_s.so.1
    libc.so.1 = /usr/lib/libc.so.1
    libtasn1.so.3 = /usr/lib/libtasn1.so.3
    libmp.so.2 =   
 /lib/libmp.so.2
    libmd.so.1 =    /lib/libmd.so.1





$ uname -a
SunOS pi 5.11 oi_151a7 i86pc i386 i86pc Solaris


$ file /usr/bin/aria2c
ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, stripped


$ /usr/bin/aria2c --version
aria2 version
 1.15.2
Copyright (C) 2006, 2012 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: BitTorrent, Firefox3 Cookie, HTTPS, Message Digest, Metalink,
XML-RPC
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5

Report bugs to t-tujik...@users.sourceforge.net
Visit http://aria2.sourceforge.net/


Hope that helps you,
Ken Mays








 From: Jason Lawrence jjlaw...@gmail.com
To: openindiana-disc...@openindiana.org 
Sent: Tuesday, November 20, 2012 3:57 PM
Subject: 

Re: [osol-discuss] [OpenIndiana-discuss] Building aria2 from source

2012-11-20 Thread Brian Cameron


Note spec-files-extra has spec-files for building newer versions of
these modules (some in the archive directory):

  http://pkgbuild.sourceforge.net/spec-files-extra/

Even if you find it too much work to setup the pkgbuild to build the
spec-files, looking at the build recipe in the spec-file and taking
advantage of patches that help modules build and work on Solaris
should help with building.

You may be able to find packages somewhere, but if you always want to
build the latest stuff, this is often the best place to look.

Brian


On 11/20/12 04:54 PM, ken mays wrote:

Jason,

Means you must roll your newer builds of autoconf and gettext and point
your configure options to that.
You can deinstall the old builds for easier detection in some cases.

~ Ken Mays



*From:* Jason Lawrence jjlaw...@gmail.com
*To:* ken mays maybird1...@yahoo.com
*Cc:* opensolaris-discuss@opensolaris.org
opensolaris-discuss@opensolaris.org
*Sent:* Tuesday, November 20, 2012 5:43 PM
*Subject:* Re: [OpenIndiana-discuss] Building aria2 from source

Sorry, I should have specified this is when building from the master
branch after checking out the git repo. I can't even get to the point of
being able to generate a configure script correctly:

$ ~/src $ git clone git://github.com/tatsuhiro-t/aria2.git
Cloning into aria2...
remote: Counting objects: 43660, done.
remote: Compressing objects: 100% (5124/5124), done.
remote: Total 43660 (delta 38635), reused 43527 (delta 38502)
Receiving objects: 100% (43660/43660), 15.49 MiB | 162 KiB/s, done.
Resolving deltas: 100% (38635/38635), done.

$ ~/src $ cd aria2
$ ~/src/aria2 $ autoreconf -i
autopoint: *** The AM_GNU_GETTEXT_VERSION declaration in your
configure.ac file requires the infrastructure from gettext-0.18 but this
version is older. Please upgrade to gettext-0.18 or newer.
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1

$ ~/src/aria2 $ autoconf
configure.ac:4: error: Autoconf version 2.67 or higher is required
configure.ac:4: the top level
autom4te: /usr/sfw/bin/gm4 failed with exit status: 63

--jason

On Tuesday, November 20, 2012 at 4:35 PM, ken mays wrote:

Jason,

Using GCC
On oi_151a7:

$ autoconf --version
autoconf (GNU Autoconf) 2.63

$ gettext --version
gettext (GNU gettext-runtime) 0.16.1

$ gcc --version
gcc (GCC) 4.6.2

$ cd aria2-1.15.2

$ ./configure --enable-static=no --with-gnutls --enable-bittorrent
--enable-metalink --enable-threads=posix --enable-epoll

configure: summary of build options:


Build: i386-pc-solaris2.11
Host: i386-pc-solaris2.11
Target: i386-pc-solaris2.11
Install prefix: /usr
CXXFLAGS: -g -O2
CFLAGS: -g -O2
CPPFLAGS: -I$(top_builddir)/deps/wslay/lib/includes
-I$(top_srcdir)/deps/wslay/lib/includes -I/usr/include/libxml2
-D_REENTRANT
LDFLAGS:
LIBS: $(top_builddir)/deps/wslay/lib/libwslay.la http://libwslay.la/
-lgcrypt -lgpg-error -lgnutls -lsqlite3 -L/usr/lib -R/usr/lib -lxml2
-lz -lpthread -lm -lsocket -
lnsl
DEFS: -DHAVE_CONFIG_H
SQLite3: yes
GnuTLS: yes
OpenSSL:
CA Bundle:
LibXML2: yes
LibExpat:
LibCares: no
Zlib: no
Epoll:
Bittorrent: yes
Metalink: yes
XML-RPC: yes
Message Digest: yes
WebSocket: yes
bash_completion dir: ${datarootdir}/doc/${PACKAGE_TARNAME}/bash_completion
Static build:



$ ls -al /usr/bin/aria2c
-rwxr-xr-x 1 root root 3595412 Nov 20 22:07 /usr/bin/aria2c



$ ldd /usr/bin/aria2c
libgcrypt.so.11 = /usr/lib/libgcrypt.so.11
libgpg-error.so.0 = /usr/lib/libgpg-error.so.0
libgnutls.so.26 = /usr/lib/libgnutls.so.26
libsqlite3.so.0 = /usr/lib/libsqlite3.so.0
libxml2.so.2 = /usr/lib/libxml2.so.2
libz.so.1 = /usr/lib/libz.so.1
libpthread.so.1 = /usr/lib/libpthread.so.1
libsocket.so.1 = /usr/lib/libsocket.so.1
libnsl.so.1 = /usr/lib/libnsl.so.1
libstdc++.so.6 = /usr/lib/libstdc++.so.6
libm.so.2 = /usr/lib/libm.so.2
libgcc_s.so.1 = /usr/lib/libgcc_s.so.1
libc.so.1 = /usr/lib/libc.so.1
libtasn1.so.3 = /usr/lib/libtasn1.so.3
libmp.so.2 = /lib/libmp.so.2
libmd.so.1 = /lib/libmd.so.1



$ uname -a
SunOS pi 5.11 oi_151a7 i86pc i386 i86pc Solaris

$ file /usr/bin/aria2c
ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked,
stripped

$ /usr/bin/aria2c --version
aria2 version 1.15.2
Copyright (C) 2006, 2012 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

** Configuration **
Enabled Features: BitTorrent, Firefox3 Cookie, HTTPS, Message Digest,
Metalink,
XML-RPC
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5

Report bugs to t-tujik...@users.sourceforge.net