pkgsrc-Bugs archive

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

pkg/46093: [LINUX] lang/clisp fails to build, "-R for gcc" and "test -nt" problems



>Number:         46093
>Category:       pkg
>Synopsis:       [LINUX] lang/clisp fails to build, "-R for gcc" and "test -nt" 
>problems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 25 06:55:00 +0000 2012
>Originator:     Litvinov Sergey
>Release:        Ubuntu Linux
>Organization:
>Environment:
Linux vital303-desktop 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 
2012 i686 athlon i386 GNU/Linu
>Description:
I have two problems with lang/clisp

The first one is  "-R is passed to gcc"

gcc -O2 -Wno-error -I/home/vital303/netbsd/include -I/usr/include -W -Wswitch 
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations 
-Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations 
-falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. 
-L/home/vital303/netbsd/lib -Wl,-R/home/vital303/netbsd/lib -L/usr/lib 
-Wl,-R/usr/lib -Wl,--export-dynamic spvw.o  spvwtabf.o  spvwtabs.o  spvwtabo.o  
eval.o  control.o  encoding.o  pathname.o  stream.o  socket.o  io.o  funarg.o  
array.o  hashtabl.o  list.o  package.o  record.o  weak.o  sequence.o  
charstrg.o  debug.o  error.o  misc.o  time.o  predtype.o  symbol.o  lisparit.o  
i18n.o  foreign.o  unixaux.o  built.o  ari80386.o modules.o 
/usr/lib/libreadline.so -ltermcap -ldl /home/vital303/netbsd/lib/libavcall.so 
-Wl,-rpath -Wl,/home/vital303/netbsd/lib 
/home/vital303/netbsd/lib/libcallback.so  -L/home/vital303/netbsd/lib -lsigsegv 
-lc -R/home/vital303/netbsd/lib libgnu_cl.a -o lisp.run
gcc: error: unrecognized option '-R'
*** Error code 1

Stop.
bmake: stopped in /media/sdb2/src/pkgsrc/lang/clisp/work/clisp-2.49/src
*** Error code 1

The second problem is

mkdir -p i18n
m=`cd ../modules/i18n; pwd`;  if test -f $m/configure -a $m/configure -nt 
i18n/config.status ; then ( cd i18n ; rm -rf gllib; cache=`echo i18n/ | sed -e 
's,[^/][^/]*//*,../,g'`config.cache;  if test -f ${cache} ; then  . ${cache};  
if test "${ac_cv_env_CC_set}" = set; then CC="${ac_cv_env_CC_value}"; export 
CC; fi;  if test "${ac_cv_env_CFLAGS_set}" = set; then 
CFLAGS="${ac_cv_env_CFLAGS_value}"; export CFLAGS; fi;  if test 
"${ac_cv_env_LDFLAGS_set}" = set; then LDFLAGS="${ac_cv_env_LDFLAGS_value}"; 
export LDFLAGS; fi;  if test "${ac_cv_env_CLFLAGS_set}" = set; then 
CLFLAGS="${ac_cv_env_CLFLAGS_value}"; export CLFLAGS; fi;  if test 
"${ac_cv_env_LIBS_set}" = set; then LIBS="${ac_cv_env_LIBS_value}"; export 
LIBS; fi;  if test "${ac_cv_env_CPPFLAGS_set}" = set; then 
CPPFLAGS="${ac_cv_env_CPPFLAGS_value}"; export CPPFLAGS; fi;  if test 
"${ac_cv_env_CPP_set}" = set; then CPP="${ac_cv_env_CPP_value}"; export CPP; 
fi;  if test "${ac_cv_env_CXX_set}" = set; then CXX="${ac_cv_env_CXX_
 value}"; export CXX; fi;  if test "${ac_cv_env_CXXFLAGS_set}" = set; then 
CXXFLAGS="${ac_cv_env_CXXFLAGS_value}"; export CXXFLAGS; fi;  if test 
"${ac_cv_env_X_LIBS_set}" = set; then X_LIBS="${ac_cv_env_X_LIBS_value}"; 
export X_LIBS; fi;  /bin/bash $m/configure 
--with-clisp="/media/sdb2/src/pkgsrc/lang/clisp/work/clisp-2.49/src/clisp -K 
boot  -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" --srcdir=$m 
--disable-option-checking --disable-maintainer-mode --without-included-regex 
--with-gettext --with-readline; else  /bin/bash $m/configure --srcdir=$m 
--disable-option-checking --disable-maintainer-mode --without-included-regex 
--with-gettext --with-readline;  fi ) ; fi;  test -f $m/Makefile -a $m/Makefile 
-nt i18n/Makefile && sed "s,srcdir = .,srcdir = $m," "$m/Makefile" > 
i18n/Makefile ;  
CLISP="/media/sdb2/src/pkgsrc/lang/clisp/work/clisp-2.49/src/clisp -K boot  -E 
UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" ;  cd i18n ; 
/home/vital303/netbsd/bin//bmake clisp-module CC="gcc" CPPFLAGS="-I
 /home/vital303/netbsd/include -I/usr/include  
-I/media/sdb2/src/pkgsrc/lang/clisp/work/clisp-2.49/src/gllib 
-I/media/sdb2/src/pkgsrc/lang/clisp/work/clisp-2.49/src" CFLAGS="-O2 -Wno-error 
-I/home/vital303/netbsd/include -I/usr/include -W -Wswitch -Wcomment 
-Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations 
-Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations 
-falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -fPIC" 
CLFLAGS="-L/home/vital303/netbsd/lib -Wl,-R/home/vital303/netbsd/lib -L/usr/lib 
-Wl,-R/usr/lib -Wl,--export-dynamic" LIBS="/usr/lib/libreadline.so -ltermcap 
-ldl /home/vital303/netbsd/lib/libavcall.so -Wl,-rpath 
-Wl,/home/vital303/netbsd/lib /home/vital303/netbsd/lib/libcallback.so  
/home/vital303/netbsd/lib/libsigsegv.so -lc -Wl,-rpath 
-Wl,/home/vital303/netbsd/lib libgnu_cl.a" RANLIB="ranlib" CLISP="$CLISP -q" 
SHREXT=.so
bmake: don't know how to make clisp-module. Stop

It is mentioned here
http://permalink.gmane.org/gmane.lisp.clisp.general/10330

I think this file is relevant
http://clisp.hg.sourceforge.net/hgweb/clisp/clisp/file/dfb5a78b146e/src/m4/test.m4

>How-To-Repeat:
bmake build
in
lang/clisp
on Linux

>Fix:
To fix the "-R" problem I replaced
LTLIBSIGSEGV by LIBSIGSEGV in 
lang/clisp/work/clisp-2.49/src/makemake

for the "test -nt" problem I add 
USE_TOOLS+=             gmake
to
lang/clisp/Makefile

===================================================================
RCS file: /cvsroot/pkgsrc/lang/clisp/Makefile,v
retrieving revision 1.86
diff -u -r1.86 Makefile
--- Makefile    6 Feb 2012 12:40:46 -0000       1.86
+++ Makefile    25 Feb 2012 06:41:01 -0000
@@ -29,6 +29,7 @@
 USE_PKGLOCALEDIR=      yes
 BUILD_DIRS=            src
 USE_TOOLS+=            dvipdf
+USE_TOOLS+=            gmake
 UNLIMIT_RESOURCES=     datasize stacksize
 
 USE_GNU_CONFIGURE_HOST=        NO      # work around broken reasoning: 
"configure --host=..." => cross-building
cvs diff: Diffing patches
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/lang/clisp/patches/patch-aa,v
retrieving revision 1.18
diff -u -r1.18 patch-aa
--- patches/patch-aa    9 Jul 2010 18:08:05 -0000       1.18
+++ patches/patch-aa    25 Feb 2012 06:41:01 -0000
@@ -4,9 +4,18 @@
 Don't use cache file to avoid trailing space problem.
 Support staged installation of modules.
 
---- src/makemake.in.orig       2010-07-07 19:15:35.000000000 +0400
-+++ src/makemake.in    2010-07-08 01:39:27.000000000 +0400
-@@ -1416,42 +1416,42 @@
+--- src/makemake.in.orig       2010-07-07 15:15:35.000000000 +0000
++++ src/makemake.in
+@@ -544,7 +544,7 @@ LIBS='@LIBS@'                       # li
+ LIBTERMCAP='@LIBTERMCAP@'           # '-L/usr/??/lib' or 'broken' or ''
+ INCTERMCAP='@INCTERMCAP@'           # '-I/usr/??/include' or ''
+ LIBICONV='@LIBICONV@'               # either '-liconv' or ''
+-LIBSIGSEGV='@LTLIBSIGSEGV@'         # '-lsigsegv -L/usr/local/lib' or ''
++LIBSIGSEGV='@LIBSIGSEGV@'         # '-lsigsegv -L/usr/local/lib' or ''
+ X_CFLAGS='@X_CFLAGS@'               # either '-I/usr/somewhere/include' or ''
+ X_LIBS='@X_LIBS@'                   # either '-L/usr/somewhere/lib -lX11' or 
''
+ FFCALL_LIBS='@LIBAVCALL@ @LIBCALLBACK@' # libavcall.a libcallback.a
+@@ -1416,42 +1416,42 @@ if [ "${with_dynamic_modules}" != no ];
        XCC_PICFLAG=''
        ;;
    esac
@@ -63,7 +72,7 @@
        ;;
      *) echo "$0: how do you create a shared library on ${host_os}?" >&2;
        ;;
-@@ -1917,7 +1917,7 @@
+@@ -1917,7 +1917,7 @@ echol "htmldir = ${HTMLDIR}"
  echol "psdir   = ${PSDIR}"
  echol "pdfdir  = ${PDFDIR}"
  echol "libdir  = ${LIBDIR}"
@@ -72,7 +81,7 @@
  test -n "$USE_GETTEXT" && echol "localedir = ${LOCALEDIR}"
  echol "elispdir = ${ELISPDIR}"
  echol "vimdir = ${VIMDIR}"
-@@ -3315,7 +3315,7 @@
+@@ -3315,7 +3315,7 @@ for var in ${PRECIOUS_VARS}; do
  done
  # we must use $(SHELL) for sub-configures because when the top CONFIG_SHELL
  # is bash, config.cache may be unparsable with sh on Solaris



Home | Main Index | Thread Index | Old Index