pkgsrc-Bugs archive

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

pkg/45495: tnftp under OpenIndiana - build error



>Number:         45495
>Category:       pkg
>Synopsis:       tnftp under OpenIndiana - build error
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 19 12:00:00 +0000 2011
>Originator:     Andrey N. Oktyabrski
>Release:        OpenIndiana 151a
>Organization:
>Environment:
$ uname -a
SunOS thinkpot 5.11 oi_151a i86pc i386 i86pc Solaris
$ isainfo 
amd64 i386
$ which gcc
/usr/bin/gcc
$ /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.1/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.6.1/configure --prefix=/usr/gcc/4.6 
--libdir=/usr/gcc/4.6/lib --libexecdir=/usr/gcc/4.6/lib 
--mandir=/usr/gcc/4.6/share/man --infodir=/usr/gcc/4.6/info 
--with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
--with-ld=/opt/dtbld/bin/ld-wrapper --without-gnu-ld 
--enable-languages=c,c++,fortran,objc --enable-shared --disable-static 
--enable-decimal-float --with-gmp=/usr/gnu --with-mpfr=/usr/gnu 
--with-mpc=/usr/gnu --with-libiconv-prefix=/usr/gnu -enable-nls
Thread model: posix
gcc version 4.6.1 (GCC)
>Description:

>How-To-Repeat:
$ cd /usr/pkgsrc/net/tnftp
$ bmake
...
gcc -O -I/usr/include -L../libedit -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib 
-L../libnetbsd -o ftp cmds.o cmdtab.o complete.o domacro.o fetch.o ftp.o main.o 
progressbar.o ruserpass.o util.o -ledit -lsocket -lnsl -ledit -ltermcap  
-lnetbsd
Undefined                       first referenced
 symbol                             in file
strvis                              ../libedit/libedit.a(history.o)
strunvis                            ../libedit/libedit.a(history.o)
ld: fatal: symbol referencing errors. No output written to ftp
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /tmp/pkgwrk/net/tnftp/work/tnftp-20070806/src
*** Error code 1

Stop.
bmake: stopped in /tmp/pkgwrk/net/tnftp/work/tnftp-20070806
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/tnftp
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/tnftp

>Fix:
The fix is simple :-)
--- Makefile.orig       2011-10-19 15:32:58.475993062 +0400
+++ Makefile    2011-10-19 15:31:44.459837527 +0400
@@ -19,6 +19,7 @@
 
 GNU_CONFIGURE=         yes
 CHECK_PERMS=           no
+CONFIGURE_ARGS+=       --disable-editcomplete
 
 OPSYSVARS+=            MAKE_ENV
 MAKE_ENV.SunOS+=       CPPFLAGS=""



Home | Main Index | Thread Index | Old Index