Skip to content

Instantly share code, notes, and snippets.

@pheaver
Created September 30, 2009 23:25
Show Gist options
  • Save pheaver/198560 to your computer and use it in GitHub Desktop.
Save pheaver/198560 to your computer and use it in GitHub Desktop.
configure:2958: checking for readline in -lreadline
gcc -o conftest -g -O2 conftest.c -lreadline -lncurses
configure:3003: gcc -o conftest -g -O2 conftest.c -lreadline -lncurses >&5
ld: warning: in /Users/pweaver/local/homebrew/lib/libreadline.dylib, missing required architecture x86_64 in file
Undefined symbols:
"_readline", referenced from:
_main in cc55aPDM.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:3009: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Haskell readline package"
| #define PACKAGE_TARNAME "readline"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "Haskell readline package 1.0"
| #define PACKAGE_BUGREPORT "libraries@haskell.org"
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char readline ();
| int
| main ()
| {
| return readline ();
| ;
| return 0;
| }
configure:3027: result: no
configure:3039: checking for rl_readline_version
configure:3095: gcc -o conftest -g -O2 conftest.c -lncurses -lreadline >&5
ld: warning: in /Users/pweaver/local/homebrew/lib/libreadline.dylib, missing required architecture x86_64 in file
Undefined symbols:
"_rl_readline_version", referenced from:
_main in ccBs9z1q.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:3101: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Haskell readline package"
| #define PACKAGE_TARNAME "readline"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "Haskell readline package 1.0"
| #define PACKAGE_BUGREPORT "libraries@haskell.org"
| /* end confdefs.h. */
| /* Define rl_readline_version to an innocuous variant, in case <limits.h> declares rl_readline_version.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define rl_readline_version innocuous_rl_readline_version
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char rl_readline_version (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef rl_readline_version
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char rl_readline_version ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined __stub_rl_readline_version || defined __stub___rl_readline_version
| choke me
| #endif
|
| int
| main ()
| {
| return rl_readline_version ();
| ;
| return 0;
| }
configure:3118: result: no
configure:3220: error: readline not found, so this package cannot be built
See `config.log' for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment