Re: [ANNOUNCE] tig-0.9

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

 




On Sep 13, 2007, at 5:45 AM, Jonas Fonseca wrote:

Thanks to Steven Grimm, tig now comes with optional autoconf based
intelligence to figure out various system dependencies. Using it should
be as easy as:

	make configure
	./configure --prefix=$HOME --with-libiconv=/usr/local
	make install

Complete build failure using autoconf here. Just using the Makefile like I always have works fine, but "autoconf ; ./configure" (from the git repo) fails with "configure: error: iconv() not found. Please install libiconv." This confuses me because I have /usr/lib/ libiconv.dylib, and compiling with -liconv works. I fail to have the autoconf-foo to figure out what's wrong.

~~ Brian

working make line:

make prefix=/usr/local/stow/tig mandir=/usr/local/stow/tig/share/man LDLIBS="-lcurses -liconv"


autoconf --version:

autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.

Copyright (C) 2003 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.


relivant portion of config.log:

configure:2345: checking for library containing iconv
configure:2375: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
/usr/bin/ld: Undefined symbols:
_iconv
collect2: ld returned 1 exit status
configure:2381: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "tig"
| #define PACKAGE_TARNAME "tig"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "tig 0"
| #define PACKAGE_BUGREPORT "Jonas Fonseca <fonseca@xxxxxxx>"
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char iconv ();
| int
| main ()
| {
| iconv ();
|   ;
|   return 0;
| }
configure:2430: gcc -o conftest -g -O2 conftest.c -liconv - lncurses >&5
/usr/bin/ld: Undefined symbols:
_iconv
collect2: ld returned 1 exit status
configure:2436: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "tig"
| #define PACKAGE_TARNAME "tig"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "tig 0"
| #define PACKAGE_BUGREPORT "Jonas Fonseca <fonseca@xxxxxxx>"
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char iconv ();
| int
| main ()
| {
| iconv ();
|   ;
|   return 0;
| }
configure:2464: result: no
configure:2475: error: iconv() not found. Please install libiconv.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux