pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41610: security/gnutls does not compile on Solaris 10



>Number:         41610
>Category:       pkg
>Synopsis:       security/gnutls does not compile on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 17 14:20:00 +0000 2009
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
SunOS spare4200 5.10 Generic_139556-08 i86pc i386 i86pc

>Description:
Building security/gnutls on Solaris 10 fails with

gmake[4]: Entering directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/gl/tests'
/usr/pkgsrc/20090421/bin/gmkdir -p sys
rm -f sys/ioctl.h-t sys/ioctl.h
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''HAVE_SYS_IOCTL_H''@|1|g' \
              -e 's|@''INCLUDE_NEXT''@|include_next|g' \
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
              -e 's|@''NEXT_SYS_IOCTL_H''@|<sys/ioctl.h>|g' \
              -e 's|@''GNULIB_IOCTL''@|1|g' \
              -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|0|g' \
              -e '/definition of GL_LINK_WARNING/r ' \
              < ./sys_ioctl.in.h; \
        } > sys/ioctl.h-t
sed: 1: "/definition of GL_LINK_ ...": filename expected
gmake[4]: *** [sys/ioctl.h] Error 1
gmake[4]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/gl/tests'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/gl'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/gl'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0'
gmake: *** [all] Error 2
*** Error code 2


After adding "gsed" to USE_TOOLS, compilation breaks here:

gcc -std=gnu99 -O 
-I/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/.buildlink/include
 -I/software/pkgsrc/source/pkgsr
c/security/gnutls/work.spare4200/.buildlink/gcc34/include 
-Wl,-R/usr/pkgsrc/20090421/lib -Wl,-R/usr/pkgsrc/20090421/gcc34/lib -o ex-
serv1 ex-serv1.o  
-L/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/lib/.libs
 -L/software/pkgsrc/source/p
kgsrc/security/gnutls/work.spare4200/.buildlink/gcc34/bin/../lib/gcc/i386-pc-solaris2.10/3.4.6
 -L/software/pkgsrc/source/pkgsrc/secu
rity/gnutls/work.spare4200/.buildlink/gcc34/bin/../lib 
-L/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/.buildlink/li
b 
-L/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/.buildlink/gcc34/lib
 ./.libs/libexamples.a ../../lib/.libs/libgnut
ls.so ../../libextra/.libs/libgnutls-extra.so 
/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/lib/.libs/l
ibgnutls.so 
/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/.buildlink/lib/libtasn1.so
 /software/pkgsrc/source/pkgsrc/
security/gnutls/work.spare4200/.buildlink/lib/libz.so 
/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/.buildlink/lib/l
ibgcrypt.so 
/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/.buildlink/lib/libgpg-error.so
 /software/pkgsrc/source/pkg
src/security/gnutls/work.spare4200/.buildlink/lib/libintl.so 
/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/.buildlin
k/lib/libiconv.so -lc ../../gl/.libs/libgnu.a -lsocket  
-R/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0
/lib/.libs 
-R/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/libextra/.libs
 -R/software/pkgsrc/source/pkg
src/security/gnutls/work.spare4200/.buildlink/lib -R/usr/pkgsrc/20090421/lib 
-R/software/pkgsrc/source/pkgsrc/security/gnutls/work.s
pare4200/.buildlink/lib
ld: warning: file 
/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/lib/.libs/libgnutls.so:
 linked to ../..
/lib/.libs/libgnutls.so: attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
inet_ntop                           ex-serv1.o  (symbol belongs to implicit 
dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to ex-serv1
collect2: ld returned 1 exit status
gmake[4]: *** [ex-serv1] Error 1
gmake[4]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/doc/examples'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/doc'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0/doc'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/security/gnutls/work.spare4200/gnutls-2.8.0'
gmake: *** [all] Error 2
*** Error code 2


Please see pkg/39612 for another error in the example directory.
>How-To-Repeat:

>Fix:
Add "gsed" to USE_TOOLS, probably only for SunOS.

And again, I suggest to remove the examples directory from the build process, 
as none of the generated binaries are installed. I.e. add this to patch-ab:

--- doc/Makefile.in.orig        2009-05-27 07:54:55.000000000 +0200
+++ doc/Makefile.in
@@ -196,7 +196,7 @@ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGE
        distdir
 ETAGS = etags
 CTAGS = ctags
-DIST_SUBDIRS = examples cyclo scripts manpages credentials reference
+DIST_SUBDIRS = cyclo scripts manpages credentials reference
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 am__relativize = \
   dir0=`pwd`; \
@@ -746,7 +746,7 @@ top_srcdir = @top_srcdir@
 EXTRA_DIST = TODO README.gaa certtool.cfg gnutls.ps gnutls.pdf \
        gnutls.html extract-guile-c-doc.scm doxygen/Doxyfile.in \
        doxygen/Doxyfile.orig texinfo.css $(guile_texi)
-SUBDIRS = examples cyclo scripts manpages credentials $(am__append_1)
+SUBDIRS = cyclo scripts manpages credentials $(am__append_1)
 info_TEXINFOS = gnutls.texi
 
 # Generated texinfos.



Home | Main Index | Thread Index | Old Index