[gnutls-help] Compiling gnutls on solaris

dev dev at cor0.com
Wed Oct 1 01:03:04 CEST 2014



On September 30, 2014 at 5:48 PM Nikos Mavrogiannopoulos
<nmav at gnutls.org> wrote:
> On Tue, 2014-09-30 at 16:53 -0400, dev wrote:
>
> > configure.ac:45: installing 'build-aux/compile'
> > configure.ac:27: installing 'build-aux/config.guess'
> > configure.ac:27: installing 'build-aux/config.sub'
> > configure.ac:29: installing 'build-aux/install-sh'
> > configure.ac:29: installing 'build-aux/missing'
> > Makefile.am: installing './INSTALL'
> > Makefile.am: error: required file './ChangeLog' not found
> > doc/Makefile.am: installing 'build-aux/depcomp'
> > doc/Makefile.am:135: installing 'build-aux/mdate-sh'
> > doc/Makefile.am:135: installing 'build-aux/texinfo.tex'
> > guile/src/Makefile.am:113: warning: '%'-style pattern rules are a
> > GNU
> > make extension
> > autoreconf: automake failed with exit status: 1
> > node000$
> > odd given that :
> > node000$ gmake --version
>
> The issue is the missing changelog :) Autotools are pretty weird in
> that
> aspect. Try running gmake autoreconf after a clone.

once more with feeling :

$ cd $HOME/git
$ git clone git://gitorious.org/gnutls/gnutls.git
Cloning into 'gnutls'...
remote: Counting objects: 150872, done.
remote: Compressing objects: 100% (28191/28191), done.
remote: Total 150872 (delta 127843), reused 145266 (delta 122296)
Receiving objects: 100% (150872/150872), 61.01 MiB | 306.00 KiB/s, done.
Resolving deltas: 100% (127843/127843), done.
Checking connectivity... done.
Checking out files: 100% (1977/1977), done.

$ dt
Tue_Sep_30_222149_GMT_2014
$ mkdir
/usr/local/build/gnutls-3.3.8_Tue_Sep_30_222149_GMT_2014_SunOS5.10_sparcv9.001
$ star -copy -p -acl -sparse -dump -xdir -xdot -U \
> -C `pwd`/gnutls . \
> /usr/local/build/gnutls-3.3.8_Tue_Sep_30_222149_GMT_2014_SunOS5.10_sparcv9.001
star: 0 blocks + 105584128 bytes (total of 105584128 bytes =
103109.50k).

$ cd
/usr/local/build/gnutls-3.3.8_Tue_Sep_30_222149_GMT_2014_SunOS5.10_sparcv9.001

$ ls -Ap
.clcopying       NEWS             doc/             maint.mk
.git/            README           extra/           po/
.gitignore       README-alpha     gl/              src/
.gitmodules      THANKS           gtk-doc.make     symbols.last
AUTHORS          build-aux/       guile/           tests/
COPYING          cfg.mk           lib/             win32/
COPYING.LESSER   configure.ac     libdane/
GNUmakefile      cross.mk         ltmain.sh
Makefile.am      devel/           m4/

$ gmake autoreconf
for f in po/*.po.in; do \
        cp $f `echo $f | sed 's/.in//'`; \
done
mv build-aux/config.rpath build-aux/config.rpath-
autopoint
Copying file ABOUT-NLS
Copying file build-aux/config.rpath
Copying file m4/codeset.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
.
.
.
Copying file po/boldquot.sed
Copying file po/en at boldquot.header
Copying file po/en at quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
rm -f m4/codeset.m4 m4/gettext.m4 m4/glibc21.m4 m4/glibc2.m4 m4/iconv.m4
m4/intdiv0.m4 m4/intldir.m4 m4/intl.m4 m4/intlmacosx.m4 m4/intmax.m4
m4/inttypes_h.m4 m4/inttypes-pri.m4 m4/lcmessage.m4 m4/lib-ld.m4
m4/lib-link.m4 m4/lib-prefix.m4 m4/lock.m4 m4/longlong.m4 m4/nls.m4
m4/po.m4 m4/printf-posix.m4 m4/progtest.m4 m4/size_max.m4 m4/stdint_h.m4
m4/uintmax_t.m4 m4/wchar_t.m4 m4/wint_t.m4 m4/visibility.m4 m4/xsize.m4
touch ChangeLog
test -f ./configure || AUTOPOINT=true autoreconf --install
.
.
.


I see the touch Changelog there.  Good.

.
.
.
src/libopts/m4/libopts.m4:362: LIBOPTS_RUN_FOPEN_BINARY is expanded
from...
src/libopts/m4/libopts.m4:424: INVOKE_LIBOPTS_MACROS is expanded from...
src/libopts/m4/libopts.m4:559: AM_COND_IF is expanded from...
src/libopts/m4/libopts.m4:580: LIBOPTS_CHECK is expanded from...
configure.ac:463: the top level
configure.ac:463: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2729: _AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
src/libopts/m4/libopts.m4:385: LIBOPTS_RUN_FOPEN_TEXT is expanded
from...
src/libopts/m4/libopts.m4:424: INVOKE_LIBOPTS_MACROS is expanded from...
src/libopts/m4/libopts.m4:559: AM_COND_IF is expanded from...
src/libopts/m4/libopts.m4:580: LIBOPTS_CHECK is expanded from...
configure.ac:463: the top level
configure.ac:45: installing 'build-aux/compile'
configure.ac:27: installing 'build-aux/config.guess'
configure.ac:27: installing 'build-aux/config.sub'
configure.ac:29: installing 'build-aux/install-sh'
configure.ac:29: installing 'build-aux/missing'
Makefile.am: installing './INSTALL'
doc/Makefile.am: installing 'build-aux/depcomp'
doc/Makefile.am:135: installing 'build-aux/mdate-sh'
doc/Makefile.am:135: installing 'build-aux/texinfo.tex'
guile/src/Makefile.am:113: warning: '%'-style pattern rules are a GNU
make extension
mv build-aux/config.rpath- build-aux/config.rpath
$


Good stuff.

Now let's try a simply configure :


$
$ LIBS=\-lsocket\ \-lnsl LD_LIBRARY_PATH=/usr/local/lib \
> ./configure --enable-dependency-tracking \
> --enable-shared --enable-static --disable-hardware-acceleration \
> --with-libiconv-prefix=/usr/local --with-libintl-prefix=/usr/local \
> --with-libz-prefix=/usr/local
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... gawk
checking whether /usr/local/bin/gmake sets $(MAKE)... yes
checking whether /usr/local/bin/gmake supports nested variables... yes
checking whether /usr/local/bin/gmake supports nested variables...
(cached) yes
***
*** Checking for compilation programs...

checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gcc... /opt/solarisstudio12.3/bin/c99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
.
.
.
checking for LIBIDN... yes
checking whether to build libdane... yes
checking for unbound library... no
configure: WARNING:
***
*** libunbound was not found. Libdane will not be built.
***
checking for P11_KIT... no
configure: error:
***
*** p11-kit >= 0.20.7 was not found. To disable PKCS #11 support
*** use --without-p11-kit, otherwise you may get p11-kit from
*** http://p11-glue.freedesktop.org/p11-kit.html
***
$

Abruptly fails.

$
$ tail config.log
#define HAVE_RAW_DECL_WCSWIDTH 1
#define HAVE_STDINT_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE_LIBIDN 1
#define ENABLE_NON_SUITEB_CURVES 1
#define UNBOUND_ROOT_KEY_FILE "/etc/unbound/root.key"
#define SYSTEM_PRIORITY_FILE "/etc/gnutls/default-priorities"

configure: exit 1
$

Yep, that's not good :-\

dc



More information about the Gnutls-help mailing list