On Mon, Sep 03, 2007 at 03:56:21PM +0300, Villem Alari wrote: > Hi! > > I have error and can't install Flood. Error is: > > /usr/share/apr-1.0/build/libtool --silent --mode=compile gcc -g - > O2 -pipe -Wall -g -O2 -pthread -DLINUX=2 -D_REENTRANT - > D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/ > include/apr-1.0 -I/usr/include/postgresql -I. -c flood.c && touch > flood.lo > libtool: compile: unable to infer tagged configuration > libtool: compile: specify a tag with `--tag' > make: *** [flood.lo] Error 1 > > I installed latest libtool with apt-get for my Ubuntu 7.04 server > version but it seems that there is still some kind of problem with > libtool: I googled for that but couldn't find solution. Can someone > help me please?
This may not be the correct solution & answer, but it helped me when I had a similar message. The libtool script, when used to compile or link, wants to see the same compiler that was used while the libtool script was generated. It the uses the compiler/linker name as given on the command line to deduce its operation mode (i.e. to guess whether it was called to compile, or to link). It may help to add, as the message suggests, an explicit operation mode when invoking libtool (or, of course, to use the same compiler as used when creating libtool) in the form --tag=CC. The patch shows this on the example of a 2.2.4 httpd build rules file. Martin -- <[EMAIL PROTECTED]> | Fujitsu Siemens http://www.fujitsu-siemens.com/imprint.html | 81730 Munich, Germany
diff --exclude=config.log --exclude=*.o --exclude=*.a --exclude=*~ --exclude=cscope.out --exclude=*.out --exclude=ssl_expr_scan.c --exclude=ssl_expr_parse.c --exclude=ssl_expr_parse.h --exclude=ssl_expr_parse.c --exclude=ssl_expr_parse.h --exclude=ssl_expr_scan.c --exclude=pdo_sql_parser.c --exclude=parse_date.c --exclude=parse.c --exclude=parse.h --exclude=parse.c --exclude=parse.h --exclude=url_scanner_ex.c --exclude=url_scanner_ex.h --exclude=var_unserializer.c --exclude=zend_ini_scanner.c --exclude=zend_ini_scanner.h --exclude=zend_language_parser.c --exclude=zend_language_parser.h --exclude=zend_ini_parser.c --exclude=zend_ini_parser.h --exclude=zend_language_scanner.c --exclude=zend_language_scanner.h --exclude=pdo_sql_parser.c --exclude=parse_date.c --exclude=parse.h --exclude=parse.c --exclude=parse.h --exclude=url_scanner_ex.c --exclude=url_scanner_ex.h --exclude=var_unserializer.c --exclude=zend_ini_scanner.c --exclude=zend_ini_scanner.h --exclude=zend_language_parser.c --exclude=zend_language_parser.h --exclude=zend_ini_parser.c --exclude=zend_ini_parser.h --exclude=zend_language_scanner.c --exclude=zend_language_scanner.h -burp httpd-2.2.4.orig/build/rules.mk.in httpd-2.2.4/build/rules.mk.in --- httpd-2.2.4.orig/build/rules.mk.in Wed Jul 12 05:38:44 2006 +++ httpd-2.2.4/build/rules.mk.in Fri Jan 26 15:00:50 2007 @@ -38,17 +38,17 @@ BASE_CXX = $(CXX) $(ALL_CXXFLAGS) $(ALL_ COMPILE = $(BASE_CC) @PICFLAGS@ CXX_COMPILE = $(BASE_CXX) @PICFLAGS@ -SH_COMPILE = $(LIBTOOL) --mode=compile $(BASE_CC) @SHLTCFLAGS@ -c $< && touch $@ -SH_CXX_COMPILE = $(LIBTOOL) --mode=compile $(BASE_CXX) @SHLTCFLAGS@ -c $< && touch $@ +SH_COMPILE = $(LIBTOOL) --mode=compile --tag=CC $(BASE_CC) @SHLTCFLAGS@ -c $< && touch $@ +SH_CXX_COMPILE = $(LIBTOOL) --mode=compile --tag=CXX $(BASE_CXX) @SHLTCFLAGS@ -c $< && touch $@ -LT_COMPILE = $(LIBTOOL) --mode=compile $(COMPILE) @LTCFLAGS@ -c $< && touch $@ -LT_CXX_COMPILE = $(LIBTOOL) --mode=compile $(CXX_COMPILE) @LTCFLAGS@ -c $< && touch $@ +LT_COMPILE = $(LIBTOOL) --mode=compile --tag=CC $(COMPILE) @LTCFLAGS@ -c $< && touch $@ +LT_CXX_COMPILE = $(LIBTOOL) --mode=compile --tag=CXX $(CXX_COMPILE) @LTCFLAGS@ -c $< && touch $@ # Link-related commands -LINK = $(LIBTOOL) --mode=link $(CC) $(ALL_CFLAGS) @PILDFLAGS@ $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ -SH_LINK = $(SH_LIBTOOL) --mode=link $(CC) $(ALL_CFLAGS) $(LT_LDFLAGS) $(ALL_LDFLAGS) $(SH_LDFLAGS) $(CORE_IMPLIB) $(SH_LIBS) -o $@ -MOD_LINK = $(LIBTOOL) --mode=link $(CC) $(ALL_CFLAGS) -static $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ +LINK = $(LIBTOOL) --mode=link --tag=CC $(CC) $(ALL_CFLAGS) @PILDFLAGS@ $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ +SH_LINK = $(SH_LIBTOOL) --mode=link --tag=CC $(CC) $(ALL_CFLAGS) $(LT_LDFLAGS) $(ALL_LDFLAGS) $(SH_LDFLAGS) $(CORE_IMPLIB) $(SH_LIBS) -o $@ +MOD_LINK = $(LIBTOOL) --mode=link --tag=CC $(CC) $(ALL_CFLAGS) -static $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ # Cross compile commands