Opened 10 years ago

Closed 10 years ago

#682 closed defect (invalid)

static_test.sh fails on thep system

Reported by: Peter Owned by: Peter
Priority: major Milestone:
Component: test Version: trunk
Keywords: Cc:

Description

static_test.sh fails with log

<SNIP>
config.status: executing libtool commands
+ make
make[4]: Entering directory `/home/william/peter/projects/yat/test/testSubDir/static_test.sh.dir'
g++ -DPACKAGE_NAME=\"hello\" -DPACKAGE_TARNAME=\"hello\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"hello\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"hello\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_YAT=1 -I.  -I/home/william/peter/projects/yat   -g -O2 -MT hello.o -MD -MP -MF .deps/hello.Tpo -c -o hello.o hello.cc
mv -f .deps/hello.Tpo .deps/hello.Po
/bin/sh ./libtool --tag=CXX   --mode=link g++  -g -O2 -all-static  -o hello hello.o /home/william/peter/projects/yat/yat/libyat.la -lgslcblas 
libtool: link: g++ -g -O2 -static -o hello hello.o  /home/william/peter/projects/yat/yat/.libs/libyat.a -L/usr/lib64 -lgsl -lgslcblas
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/local/lib/libgsl.a when searching for -lgsl
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -lgsl
collect2: ld returned 1 exit status
make[4]: *** [hello] Error 1
make[4]: Leaving directory `/home/william/peter/projects/yat/test/testSubDir/static_test.sh.dir'

Looks like there is no gsl on this system, in which case I suppose it makes most sense to skip the test (not fail).

Change History (2)

comment:1 Changed 10 years ago by Peter

Status: newassigned

comment:2 Changed 10 years ago by Peter

Milestone: yat 0.8
Resolution: invalid
Status: assignedclosed

If configured with --disable-static the test is SKIPped. In other cases I think it is a feature that the test detects for the user that this will not work, you won't be able to link statically against yat.

Note: See TracTickets for help on using tickets.