On Wed, 8 Oct 2014, Tim Jenness wrote:
> I have no real idea why people are coming across this problem now.
Indeed, this is odd. Worried about a new linker issue, I've attempted to
reproduce this myself and the only way that I could get the GWM error was
to build from clean sources without the -Wl,--no-as-needed flag:
pdraper@mint17 $ ./libtool --tag=CC --mode=link gcc -g -O2
-L/home/pdraper/starlink_git/build/lib -o xmake
xmake.o libgwm.la -lSM -lICE -lX11 `ems_link` `cnf_link`
libtool: link: gcc -g -O2 -o .libs/xmake xmake.o
-L/home/pdraper/starlink_git/build/lib ./.libs/libgwm.so -lSM -lICE -lX11
/home/pdraper/starlink_git/build/lib/libemsf.so
/home/pdraper/starlink_git/build/lib/libems.so
/home/pdraper/starlink_git/build/lib/libcnf.so -lpthread
/home/pdraper/starlink_git/build/lib/libstarmem.so -Wl,-rpath
-Wl,/home/pdraper/starlink_git/build/lib
./.libs/libgwm.so: undefined reference to `emsSetnc'
./.libs/libgwm.so: undefined reference to `emsRep'
collect2: error: ld returned 1 exit status
adding it manually, or as an environment variable before starting the
build worked as expected:
pdraper@mint17 $ ./libtool --tag=CC --mode=link gcc -g -O2
-L/home/pdraper/starlink_git/build/lib -o xmake
xmake.o libgwm.la -lSM -lICE -lX11 `ems_link` `cnf_link`
-Wl,--no-as-needed
libtool: link: gcc -g -O2 -o .libs/xmake xmake.o -Wl,--no-as-needed
-L/home/pdraper/starlink_git/build/lib ./.libs/libgwm.so -lSM -lICE -lX11
/home/pdraper/starlink_git/build/lib/libemsf.so
/home/pdraper/starlink_git/build/lib/libems.so
/home/pdraper/starlink_git/build/lib/libcnf.so -lpthread
/home/pdraper/starlink_git/build/lib/libstarmem.so -Wl,-rpath
-Wl,/home/pdraper/starlink_git/build/lib
So as far as I can tell we don't have a new issue, so this must have been
down to some confused states in the build trees (so a good git clean would
have fixed this). Couldn't try Mint 14 as that is no longer supported with
a Ubuntu base, so clearly not definitive...
Cheers,
Peter.
|