GSL function error on Cygwin

Hi all,

I’m trying to use GNU radio on Cygwin environment. It has taken couple
of
days to compile depedent stuffs. I’m on my almost final stage. I have
following error messages when I compile ‘gnuradio-core’.

*** Warning: This system can not link to static lib archive
/usr/local/lib/libgsl.la.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This system can not link to static lib archive
/usr/local/lib/libgslcblas.la.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
libtool: link: rm -fr .libs/libgnuradio-core.dll.a
libtool: link: g++ -shared -nostdlib .libs/bug_work_around_6.o
-Wl,–whole-archive filter/.libs/libfilter.a g72x/.libs/libccitt.a
viterbi/.libs/libviterbi.a general/.libs/libgeneral.a
gengen/.libs/libgengen.a io/.libs/libio.a missing/.libs/libmissing.a
reed-solomon/.libs/librs.a runtime/.libs/libruntime.a
-Wl,–no-whole-archive
/home/ychang/gnuradio/omnithread/.libs/libgromnithread.dll.a
/home/ychang/gnuradio/gruel/src/lib/.libs/libgruel.dll.a
-L/opt/boost_1_37_0/lib -lboost_thread-gcc34-mt-1_37 -L/usr/local/lib
/usr/local/lib/libfftw3f.dll.a -L/usr/lib/gcc/i686-pc-cygwin/3.4.4
-L/usr/lib/gcc/i686-pc-cygwin/3.4.4/…/…/… -lstdc++ -lgcc -lcygwin
-luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc -o
.libs/cyggnuradio-core-0.dll -Wl,–enable-auto-image-base -Xlinker
–out-implib -Xlinker .libs/libgnuradio-core.dll.a
general/.libs/libgeneral.a(gr_squash_ff.o): In function
_ZN5boost6detail17sp_counted_impl_pI12gr_squash_ffE11get_deleterERKSt9type_info': /opt/boost_1_37_0/include/boost-1_37/boost/detail/sp_counted_impl.hpp:(.text+0x7f): undefined reference to _gsl_interp_accel_free’
/opt/boost_1_37_0/include/boost-1_37/boost/detail/sp_counted_impl.hpp:(.text+0x8d):
undefined reference to _gsl_spline_free' general/.libs/libgeneral.a(gr_squash_ff.o): In function _ZN12gr_squash_ffD1Ev’:
/home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:66:
undefined reference to _gsl_interp_accel_free' /home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:67: undefined reference to _gsl_spline_free’
general/.libs/libgeneral.a(gr_squash_ff.o): In function
_ZN12gr_squash_ffD0Ev': /home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:66: undefined reference to _gsl_interp_accel_free’
/home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:67:
undefined reference to _gsl_spline_free' general/.libs/libgeneral.a(gr_squash_ff.o): In function ZN12gr_squash_ffC1ERKSt6vectorIfSaIfEES4’:
/home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:57:
undefined reference to _gsl_interp_accel_alloc' /home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:58: undefined reference to _gsl_interp_cspline’
/home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:58:
undefined reference to _gsl_spline_alloc' general/.libs/libgeneral.a(gr_squash_ff.o): In function ZN12gr_squash_ffC2ERKSt6vectorIfSaIfEES4’:
/home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:57:
undefined reference to _gsl_interp_accel_alloc' /home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:58: undefined reference to _gsl_interp_cspline’
/home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:58:
undefined reference to _gsl_spline_alloc' general/.libs/libgeneral.a(gr_squash_ff.o): In function _ZN12gr_squash_ff4workEiRSt6vectorIPKvSaIS2_EERS0_IPvSaIS6_EE’:
/home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:83:
undefined reference to _gsl_spline_init' /home/ychang/gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc:86: undefined reference to _gsl_spline_eval’

I definitely installed gsl_1_12 library. Any helps are appreciated. :slight_smile:

View this message in context:
http://www.nabble.com/GSL-function-error-on-Cygwin-tp22181041p22181041.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Yong J. Chang wrote:

I’m trying to use GNU radio on Cygwin environment. It has taken couple of
days to compile depedent stuffs. I’m on my almost final stage. I have
following error messages when I compile ‘gnuradio-core’.

*** Warning: This system can not link to static lib archive
/usr/local/lib/libgsl.la.
*** I have the capability to make that library automatically link in when
. . .
I definitely installed gsl_1_12 library. Any helps are appreciated. :slight_smile:

It should be looking in /usr/lib (not /usr/local/lib) and it should be
looking for libgsl.dll.a (not libgsl.la).

You should have a gsl.pc file in /usr/lib/pkgconfig. If you also have a
gsl.pc file (with old or incorrect information) in
/usr/local/lib/pkgconfig,
that could be the problem.

– Don W.