|
From: Xiaofan C. <xia...@gm...> - 2012-08-30 12:52:45
|
On Thu, Aug 30, 2012 at 6:15 AM, Spencer Oliver <sp...@sp...> wrote: > On 29/08/12 22:34, Andreas Fritiofson wrote: >> >> It seems --enable-shared is broken: >> >> ./.libs/libopenocd.so: undefined reference to `openocd_startup_tcl' >> > > just done a clean build and i get the following: > make[4]: *** No rule to make target `../jimtcl/libjim.a', needed by > `openocd'. > > seems the issue may be caused by jimtcl. > I got the same problem under Mac OS X Lion 10.7.4 if if add the --enable-shared configure option. There are no problems if I do not have this option. libtool: link: ranlib .libs/libopenocd.a libtool: link: rm -fr .libs/libopenocd.lax .libs/libopenocd.lax libtool: link: ( cd ".libs" && rm -f "libopenocd.la" && ln -s "../libopenocd.la" "libopenocd.la" ) gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -I.. -I../../src -I../src -I../../src/helper -DPKGDATADIR=\"/usr/local/Cellar/open-ocd/HEAD/share/openocd\" -DPKGLIBDIR=\"/usr/local/Cellar/open-ocd/HEAD/lib/openocd\" -I../../jimtcl -I../jimtcl -g -O2 -I/usr/local/Cellar/open-ocd/HEAD/include -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o ../../src/main.c mv -f .deps/main.Tpo .deps/main.Po make[4]: *** No rule to make target `../jimtcl/libjim.a', needed by `openocd'. Stop. make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 -- Xiaofan |