[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cannot make using Solaris ld (Re: Cannot make ftp; is this a bug?)
From: |
ITO Tsuyoshi |
Subject: |
Cannot make using Solaris ld (Re: Cannot make ftp; is this a bug?) |
Date: |
Sat, 03 Feb 2001 19:48:16 +0900 |
Hello,
In the mail I posted on Jan. 10, I forgot to tell that I was speaking
about CVS version of inetutils.
Here is more specific description about the problem and how to avoid
it.
The linker error I reported occurs only when Solaris ld is used.
Solaris ld requires to put ``-l'' options after the file which depends
the library.
Because libreadline.a depends on TERMCAP library (libncurses.a in my
environment), -lreadline must be before $LIBTERMCAP.
The following patch corrected the problem in my environment.
Any comments are welcome.
Index: configure.in
===================================================================
RCS file: /cvs/inetutils/configure.in,v
retrieving revision 1.86
diff -c -r1.86 configure.in
*** configure.in 2000/08/23 02:54:10 1.86
--- configure.in 2001/02/03 10:22:53
***************
*** 542,547 ****
--- 542,550 ----
# guile hackers have had problems because there is a Solaris libreadline
# that is different from the GNU libreadline; therefore we test for an obscure
# function in the GNU libreadline.
+ if test -n "$LIBTERMCAP"; then
+ LIBS="$LIBTERMCAP $LIBS"
+ fi
#AC_CHECK_LIB(termcap, tputs)
#AC_CHECK_LIB(readline, rl_bind_key,,, -ltermcap)
AC_CHECK_LIB(readline, rl_bind_key,,, "$LIBTERMCAP")
Index: ftp/Makefile.am
===================================================================
RCS file: /cvs/inetutils/ftp/Makefile.am,v
retrieving revision 1.8
diff -c -r1.8 Makefile.am
*** ftp/Makefile.am 2000/07/19 04:08:38 1.8
--- ftp/Makefile.am 2001/02/03 10:22:53
***************
*** 14,19 ****
INCLUDES = $(PATHDEF_TMP) $(PATHDEF_BSHELL)
! LDADD = -L../libinetutils -linetutils $(LIBGLOB) $(LIBTERMCAP)
EXTRA_DIST = $(man_MANS)
--- 14,19 ----
INCLUDES = $(PATHDEF_TMP) $(PATHDEF_BSHELL)
! LDADD = -L../libinetutils -linetutils $(LIBGLOB)
EXTRA_DIST = $(man_MANS)
Index: telnet/Makefile.am
===================================================================
RCS file: /cvs/inetutils/telnet/Makefile.am,v
retrieving revision 1.5
diff -c -r1.5 Makefile.am
*** telnet/Makefile.am 2000/07/19 04:08:38 1.5
--- telnet/Makefile.am 2001/02/03 10:22:53
***************
*** 17,22 ****
LIBCRYPT = @LIBCRYPT@
LDADD = -L../libinetutils -L../libtelnet -linetutils -ltelnet \
! $(LIBTERMCAP) $(LIBCRYPT)
EXTRA_DIST = $(man_MANS)
--- 17,22 ----
LIBCRYPT = @LIBCRYPT@
LDADD = -L../libinetutils -L../libtelnet -linetutils -ltelnet \
! $(LIBCRYPT)
EXTRA_DIST = $(man_MANS)
Index: telnetd/Makefile.am
===================================================================
RCS file: /cvs/inetutils/telnetd/Makefile.am,v
retrieving revision 1.7
diff -c -r1.7 Makefile.am
*** telnetd/Makefile.am 2000/07/19 04:08:39 1.7
--- telnetd/Makefile.am 2001/02/03 10:22:53
***************
*** 21,26 ****
LIBUTIL = @LIBUTIL@
LDADD = -L../libinetutils -L../libtelnet -linetutils -ltelnet \
! $(LIBTERMCAP) $(LIBUTIL) $(LIBCRYPT)
EXTRA_DIST = $(man_MANS)
--- 21,26 ----
LIBUTIL = @LIBUTIL@
LDADD = -L../libinetutils -L../libtelnet -linetutils -ltelnet \
! $(LIBUTIL) $(LIBCRYPT)
EXTRA_DIST = $(man_MANS)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Cannot make using Solaris ld (Re: Cannot make ftp; is this a bug?),
ITO Tsuyoshi <=