Forum: GNU Radio GSL function error on Cygwin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
051a38020a2f15e4604075dfc309b3aa?d=identicon&s=25 Yong J. Chang (Guest)
on 2009-02-24 15:01
(Received via mailing list)
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. :)
--
View this message in context:
http://www.nabble.com/GSL-function-error-on-Cygwin...
Sent from the GnuRadio mailing list archive at Nabble.com.
Ad84973e0d95196c6e59bed61c3f349a?d=identicon&s=25 Don Ward (Guest)
on 2009-02-24 15:57
(Received via mailing list)
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. :)

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.
This topic is locked and can not be replied to.