Hi,

Can you confirm where libreadline (the library) is installed?

There is something else you can do too:

export LDFLAGS="-L/usr/local/lib"

So in that line you have down there -I/usr/local/include it should say -L/usr/local/lib, you may need to fix the makefile/configure script to account for /usr/local/lib.

Justin.

On Tue, 13 Apr 2010, [email protected] wrote:

Thanks Justin.  Unfortunately, the result is the same.  gcc is detected
though:

configure:2897: checking for a BSD-compatible install
configure:2965: result: build-aux/install-sh -c
configure:2976: checking whether build environment is sane
configure:3019: result: yes
configure:3044: checking for a thread-safe mkdir -p
configure:3083: result: build-aux/install-sh -c -d
configure:3097: checking for gawk
configure:3113: found /scl/share/bin/gawk
configure:3124: result: gawk
configure:3135: checking whether make sets $(MAKE)
configure:3157: result: yes
configure:3350: checking build system type
configure:3368: result: sparc-sun-solaris2.10
configure:3390: checking host system type
configure:3405: result: sparc-sun-solaris2.10
configure:3439: checking for style of include used by make
configure:3467: result: GNU
configure:3537: checking for gcc
configure:3553: found /usr/sfw/bin/gcc
configure:3564: result: gcc
configure:3796: checking for C compiler version
configure:3804: gcc --version >&5
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

The relevant bit from config.log is:

configure:66636: checking for readline
configure:66670: gcc -o conftest -g -O2 -Wall -I/usr/local/include  -s
conftest.c -lreadline  -lcurses -lresolv
-lnsl -lsocket -lsupc++  >&5
conftest.c: In function `main':
conftest.c:428: warning: implicit declaration of function
`rl_completion_matches'
ld: fatal: library -lreadline: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status

-----Original Message-----
From: Justin Piszcz [mailto:[email protected]]
Sent: Tuesday, April 13, 2010 2:07 PM
To: Rempel, Curtis SCAN-DFI 3541
Cc: [email protected]
Subject: Re: Compile on Solaris 10

Hi,

Try:

export C_INCLUDE_PATH=/usr/local/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/usr/local/include:$CPLUS_INCLUDE_PATH

Re-run configure, does it find it?
Above is for GCC.

Justin.

On Tue, 13 Apr 2010, [email protected] wrote:

Hello,

I'm attempting to compile 4.0.6 on Solaris 10 but ./configure only
gets
as far as this:

[ snip ]

checking term.h presence... yes
configure: WARNING: term.h: present but cannot be compiled
configure: WARNING: term.h:     check for missing prerequisite
headers?
configure: WARNING: term.h: see the Autoconf documentation
configure: WARNING: term.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: term.h: proceeding with the preprocessor's result
configure: WARNING: term.h: in the future, the compiler will take
precedence
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to [email protected] ##
configure: WARNING:     ## ------------------------------------ ##
checking for term.h... yes
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncurses/term.h usability... yes
checking ncurses/term.h presence... yes
checking for ncurses/term.h... yes
checking for library containing tigetstr... -lcurses
checking for tgetstr... yes
checking for readline... configure: error: need installed
readline-devel
package

I do have a readline package installed:

# pkginfo -l SMCreadl
  PKGINST:  SMCreadl
     NAME:  readline
 CATEGORY:  application
     ARCH:  sparc
  VERSION:  5.2
  BASEDIR:  /usr/local
   VENDOR:  Lionel Cons et al
   PSTAMP:  Steve Christensen
 INSTDATE:  Feb 09 2010 11:12
    EMAIL:  [email protected]
   STATUS:  completely installed
    FILES:       72 installed pathnames
                  6 shared pathnames
                  9 directories
                  2 executables
              12393 blocks used (approx)

And there are header files there:

# pkgchk -l SMCreadl | grep ^Pathname | grep '\.h$'
Pathname: /usr/local/include/readline/chardefs.h
Pathname: /usr/local/include/readline/history.h
Pathname: /usr/local/include/readline/keymaps.h
Pathname: /usr/local/include/readline/readline.h
Pathname: /usr/local/include/readline/rlconf.h
Pathname: /usr/local/include/readline/rlstdc.h
Pathname: /usr/local/include/readline/rltypedefs.h
Pathname: /usr/local/include/readline/tilde.h

So it would seem it's a path issue perhaps.

I've tried a few things based on output from ./configure --help but so
far nothing has worked.

I know it must be possible as sunfreeware.com has a fresh package for
4.0.6 available.

The reason I need to compile is to test a patch.

Thanks!

Curtis




Reply via email to