Thread: Readline causing grief in build

Readline causing grief in build

From
Dave Stewart
Date:
Hi!


I'm very new with this list and postgresql databases and having major
trouble trying to build this thing. Every attempt I make gives ends
with the following message:



<<begin error>

...

checking for readline... no

configure: error: readline library not found

If you have readline already installed, see config.log for details on
the

failure.  It is possible the compiler isn't looking in the proper
directory.

Use --without-readline to disable readline support.

<<end error>



OK, look at the config.log file for details. I can handle that (or so
I thought). It looks like the configure script is trying to compile a
test program, but all it shows is:



<<begin config.log snip>

...

<fixed>configure:5786: result: no

configure:5800: checking for readline

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lm  >&5

ld: can't locate file for: -lreadline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"

</fixed>

...

<fixed>configure:5837: gcc -traditional-cpp -o conftest -g -O2
conftest.c -ledit -lm  >&5

ld: Undefined symbols:

_readline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


</fixed><fontfamily><param>Garamond</param>...</fontfamily><fixed>

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -ltermcap -lm  >&5

ld: can't locate file for: -lreadline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


</fixed><fontfamily><param>Garamond</param>...</fontfamily><fixed>

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -ltermcap -lm  >&5

ld: Undefined symbols:

_readline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lncurses -lm  >&5

ld: can't locate file for: -lreadline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lncurses -lm  >&5

ld: Undefined symbols:

_readline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lcurses -lm  >&5

ld: can't locate file for: -lreadline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lcurses -lm  >&5

ld: Undefined symbols:

_readline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5883: result: no

configure:5890: error: readline library not found

If you have readline already installed, see config.log for details on
the

failure.  It is possible the compiler isn't looking in the proper
directory.

Use --without-readline to disable readline support.</fixed>


<<end config.log snip>



Hmmm. I don't get it. Here's the particulars:


OS: Mac OSX.2.3 (Latest Jaguar)

GCC: 3.1 {Thread model: posix

Apple Computer, Inc. GCC version 1161, based on gcc version 3.1
20020420 (prerelease)}

ANT: 1.5.1


I swear readline is there, located at
/System/Library/PrivateFrameworks/readline.framework/Version/A. Am I
just missing something very elementary? My head is bleeding from
smashing it against this problem and I'm hoping someone here has some
Excedrin (TM) to help.


TIA for any suggestions anyone may have.




Dave Stewart

Aqua-flo (Goleta)

dstewart@aquaflo.com
Hi!

I'm very new with this list and postgresql databases and having major
trouble trying to build this thing. Every attempt I make gives ends
with the following message:


<begin error>
...
checking for readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on
the
failure.  It is possible the compiler isn't looking in the proper
directory.
Use --without-readline to disable readline support.
<end error>


OK, look at the config.log file for details. I can handle that (or so I
thought). It looks like the configure script is trying to compile a
test program, but all it shows is:


<begin config.log snip>
...
configure:5786: result: no
configure:5800: checking for readline
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lm  >&5
ld: can't locate file for: -lreadline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lm  >&5
ld: Undefined symbols:
_readline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -ltermcap -lm  >&5
ld: can't locate file for: -lreadline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -ltermcap -lm  >&5
ld: Undefined symbols:
_readline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lncurses -lm  >&5
ld: can't locate file for: -lreadline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lncurses -lm  >&5
ld: Undefined symbols:
_readline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lcurses -lm  >&5
ld: can't locate file for: -lreadline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lcurses -lm  >&5
ld: Undefined symbols:
_readline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5883: result: no
configure:5890: error: readline library not found
If you have readline already installed, see config.log for details on
the
failure.  It is possible the compiler isn't looking in the proper
directory.
Use --without-readline to disable readline support.

<end config.log snip>


Hmmm. I don't get it. Here's the particulars:

OS: Mac OSX.2.3 (Latest Jaguar)
GCC: 3.1 {Thread model: posix
Apple Computer, Inc. GCC version 1161, based on gcc version 3.1
20020420 (prerelease)}
ANT: 1.5.1

I swear readline is there, located at
/System/Library/PrivateFrameworks/readline.framework/Version/A. Am I
just missing something very elementary? My head is bleeding from
smashing it against this problem and I'm hoping someone here has some
Excedrin (TM) to help.

TIA for any suggestions anyone may have.



Dave Stewart
Aqua-flo (Goleta)
dstewart@aquaflo.com

Re: Readline causing grief in build

From
Tom Lane
Date:
Dave Stewart <dstewart@aquaflo.com> writes:
> I swear readline is there, located at
> /System/Library/PrivateFrameworks/readline.framework/Version/A.

Does the linker know to look for it there?  Unless Apple is providing a
very customized version of gcc/ld, I'd bet not.  You probably need
something along the lines of --with-libraries, but I've never tried to
do that on OS X ...

            regards, tom lane

Re: Readline causing grief in build

From
David C.Oshel
Date:
You need to download the readline library from Fink.  I agree, there
oughta be another way ... and there is.  Download the binary as a
standard OS X package from Marc Liyanage's website at
http://www.entropy.ch/software/macosx/postgresql/



On Friday, December 20, 2002, at 06:58  PM, Dave Stewart wrote:

> Hi!
>
> I'm very new with this list and postgresql databases and having major
> trouble trying to build this thing. Every attempt I make gives ends
> with the following message:
>
>
> <begin error>
> ...
> checking for readline... no
> configure: error: readline library not found
> If you have readline already installed, see config.log for details on
> the
> failure.  It is possible the compiler isn't looking in the proper
> directory.
> Use --without-readline to disable readline support.
> <end error>
>
>
> OK, look at the config.log file for details. I can handle that (or so
> I thought). It looks like the configure script is trying to compile a
> test program, but all it shows is:
>
>
> <begin config.log snip>
> ...
> configure:5786: result: no
> configure:5800: checking for readline
> configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
> -lreadline -lm  >&5
> ld: can't locate file for: -lreadline
> configure:5840: $? = 1
> configure: failed program was:
> #line 5811 "configure"
>
> ...
> configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
> -ledit -lm  >&5
> ld: Undefined symbols:
> _readline
> configure:5840: $? = 1
> configure: failed program was:
> #line 5811 "configure"
>
> ...
> configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
> -lreadline -ltermcap -lm  >&5
> ld: can't locate file for: -lreadline
> configure:5840: $? = 1
> configure: failed program was:
> #line 5811 "configure"
>
> ...
> configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
> -ledit -ltermcap -lm  >&5
> ld: Undefined symbols:
> _readline
> configure:5840: $? = 1
> configure: failed program was:
> #line 5811 "configure"
>
> ...
> configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
> -lreadline -lncurses -lm  >&5
> ld: can't locate file for: -lreadline
> configure:5840: $? = 1
> configure: failed program was:
> #line 5811 "configure"
>
> ...
> configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
> -ledit -lncurses -lm  >&5
> ld: Undefined symbols:
> _readline
> configure:5840: $? = 1
> configure: failed program was:
> #line 5811 "configure"
>
> ...
> configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
> -lreadline -lcurses -lm  >&5
> ld: can't locate file for: -lreadline
> configure:5840: $? = 1
> configure: failed program was:
> #line 5811 "configure"
>
> ...
> configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
> -ledit -lcurses -lm  >&5
> ld: Undefined symbols:
> _readline
> configure:5840: $? = 1
> configure: failed program was:
> #line 5811 "configure"
>
> ...
> configure:5883: result: no
> configure:5890: error: readline library not found
> If you have readline already installed, see config.log for details on
> the
> failure.  It is possible the compiler isn't looking in the proper
> directory.
> Use --without-readline to disable readline support.
>
> <end config.log snip>
>
>
> Hmmm. I don't get it. Here's the particulars:
>
> OS: Mac OSX.2.3 (Latest Jaguar)
> GCC: 3.1 {Thread model: posix
> Apple Computer, Inc. GCC version 1161, based on gcc version 3.1
> 20020420 (prerelease)}
> ANT: 1.5.1
>
> I swear readline is there, located at
> /System/Library/PrivateFrameworks/readline.framework/Version/A. Am I
> just missing something very elementary? My head is bleeding from
> smashing it against this problem and I'm hoping someone here has some
> Excedrin (TM) to help.
>
> TIA for any suggestions anyone may have.
>
>
>
> Dave Stewart
> Aqua-flo (Goleta)
> dstewart@aquaflo.com
--
David C. Oshel               mailto:dcoshel@inav.net
Cedar Rapids, Iowa       http://soli.inav.net/~dcoshel
``I think most pleasantly in metaphors, and smoking brings metaphors to
mind." - Augustus Srb, in Alexei Panshin's  _Star Well_


Re: Readline causing grief in build

From
Dave Stewart
Date:
Thanks are in order ...

First off to Tom Lane for the "excedrin" that I asked for, although it
wasn't working for me as quickly as I liked (read "I had to think").
Using --with-libraries seemed to be throwing different errors, in fact
it wasn't getting as far as it was without that option (I must be
missing something elementary about this library, I've only been playing
on a Mac for a year and it's very different than a Windows box. If it
wasn't for the Darwin core I'd still be lost!).

Most especially, thanks to David Oshel for the "vicodan" that I really
wanted. The OSX binary was just what I needed. Any ideas if it will be
this easy to install on OSX Server? That will be next, once I have set
up what I need OMM and am ready to move it over.

Now to learn how to work this crazy thing (read "You'll hear from me
again").

Happy holidays to all!


On Friday, December 20, 2002, at 06:59  PM, David C. Oshel wrote:

> You need to download the readline library from Fink.  I agree, there
> oughta be another way ... and there is.  Download the binary as a
> standard OS X package from Marc Liyanage's website at
> http://www.entropy.ch/software/macosx/postgresql/
>
>
>
> On Friday, December 20, 2002, at 06:58  PM, Dave Stewart wrote:
>
>> Hi!
>>
>> I'm very new with this list and postgresql databases and having major
>> trouble trying to build this thing. Every attempt I make gives ends
>> with the following message:
>>
>> <snip the good stuff>
>>
>>
>> Hmmm. I don't get it. Here's the particulars:
>>
>> OS: Mac OSX.2.3 (Latest Jaguar)
>> GCC: 3.1 {Thread model: posix
>> Apple Computer, Inc. GCC version 1161, based on gcc version 3.1
>> 20020420 (prerelease)}
>> ANT: 1.5.1
>>
>> I swear readline is there, located at
>> /System/Library/PrivateFrameworks/readline.framework/Version/A. Am I
>> just missing something very elementary? My head is bleeding from
>> smashing it against this problem and I'm hoping someone here has some
>> Excedrin (TM) to help.
>>
>> TIA for any suggestions anyone may have.
>>
>>
>>
>> Dave Stewart
>> Aqua-flo (Goleta)
>> dstewart@aquaflo.com
> --
> David C. Oshel               mailto:dcoshel@inav.net
> Cedar Rapids, Iowa       http://soli.inav.net/~dcoshel
> ``I think most pleasantly in metaphors, and smoking brings metaphors
> to mind." - Augustus Srb, in Alexei Panshin's  _Star Well_
>
>


Dave Stewart
Aqua-flo (Goleta)
dstewart@aquaflo.com