--with-libtool breaks build on bind 930

Mark Andrews Mark_Andrews at isc.org
Tue Nov 30 21:56:40 UTC 2004


> hi,
> 
> the add'n of
> 
> 	--with-libtool
> 
> to v930 configure fails 'make' at:
> 
>     > 	gcc -dynamiclib -undefined dynamic_lookup -o .libs/libisccfg.1.
> 0.4.dylib
>     > .libs/log.o .libs/namedconf.o .libs/parser.o .libs/version.o
>     > -L/usr/local/ssl/lib /usr/ports/bind930/lib/isc/.libs/libisc.dylib
>     -lpthread
>     > ../../lib/dns/.libs/libdns.dylib ../../lib/isccc/.libs/libisccc.dylib
>     > ../../lib/isc/.libs/libisc.dylib -install_name
>     > /usr/local/bind930/lib/libisccfg.1.dylib -compatibility_version 2
>     > -current_version 2.4
>     > 	ld: multiple definitions of symbol _cfg_rep_boolean
>     > 	.libs/namedconf.o definition of _cfg_rep_boolean in section
>     (__DATA,__common)
>     > 	.libs/parser.o definition of _cfg_rep_boolean in section (__DAT
> A,__data)
>     > 	ld: multiple definitions of symbol _cfg_rep_list
>     > 	.libs/namedconf.o definition of _cfg_rep_list in section
>     (__DATA,__common)
>     > 	.libs/parser.o definition of _cfg_rep_list in section (__DATA,_
> _data)
>     > 	<snip> (a bunch of multiple symbol defs)
>     > 	/usr/bin/libtool: internal link edit command failed
>     > 	make[2]: *** [libisccfg.la] Error 1
>     > 	make[1]: *** [subdirs] Error 1
>     > 	make: *** [subdirs] Error 1
> 
> OTOH, v930 w/o --with-libtool, and v923 WITH --with-libtool both build withou
> t 
> error.
> 
> is this known?  i've only found issues on the list w.r.t. AIX & --with-libtoo
> l 
> so far ...
> 
> thx!
> 
> richard
> 
> 
	It will be addressed in 9.3.1.   You can add the missing "extern"s
	to lib/isccfg/include/isccfg/grammar.h

	e.g.

LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_uint32;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_uint64;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_string;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_boolean;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_map;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_list;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_tuple;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_sockaddr;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_netprefix;
LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_void;

--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list