Forum: GNU Radio Cygwin Compile Errors from trunk

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.
641485908656a31e54a47e8458183f0b?d=identicon&s=25 Ben Kelley (Guest)
on 2007-07-02 18:35
(Received via mailing list)
Hi, I had checked out the source from trunk on Friday, and I keep
running
into an error where it appears to be dying on a linking stage.  The
./configure line was
$  ./configure --with-boost-include-dir=/usr/include/boost-1_33_1
I've run make two or three times, as well as make clean and checking out
again.  I still run into the same issues.  I didn't see anything
documenting
this.  I'm going to go with the tar.gz for now, but I just thought I'd
see
if anyone had had this issue or resolved it.

make  all-am
make[6]: Entering directory
`/cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src
lib/swig'
/bin/sh ../../../../libtool --tag=CXX   --mode=link g++ -g1 -O1 -Wall
-Woverloa
ed-virtual  -module -avoid-version -no-undefined  -o
_gnuradio_swig_py_runtime.
a -rpath /usr/local/lib/python2.4/site-packages/gnuradio/gr
_gnuradio_swig_py_r
ntime_la-gnuradio_swig_py_runtime.lo
../../../../gnuradio-core/src/lib/libgnura
io-core.la -L/usr/lib/python2.4/config -lpython2.4 -lstdc++ -lwinmm
rm -fr  .libs/_gnuradio_swig_py_runtime.dll.a
g++ -shared -nostdlib
.libs/_gnuradio_swig_py_runtime_la-gnuradio_swig_py_run
ime.o  ../../../../gnuradio-core/src/lib/.libs/libgnuradio-core.dll.a
-L/cygdri
e/c/usr/KELLEBC/gnuradio/omnithread/.libs -L/usr/local/lib
-L/usr/lib/python2.4
config -lpython2.4 -lstdc++ -lwinmm -L/usr/lib/gcc/i686-pc-cygwin/3.4.4
-L/usr/
ib/gcc/i686-pc-cygwin/3.4.4/../../.. -lstdc++ -lgcc -lcygwin -luser32
-lkernel3
 -ladvapi32 -lshell32 -lgcc   -o .libs/_gnuradio_swig_py_runtime.dll
-Wl,--enab
e-auto-image-base -Xlinker --out-implib -Xlinker
.libs/_gnuradio_swig_py_runtim
.dll.a
.libs/_gnuradio_swig_py_runtime_la-gnuradio_swig_py_runtime.o: In
function
`_Z4
__static_initialization_and_destruction_0ii':
/cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src/lib/swig/gnuradio_swig_py_ru
time.cc:(.text+0x325be): undefined reference to
`omni_thread::init_t::init_t()'
/cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src/lib/swig/gnuradio_swig_py_ru
time.cc:(.text+0x325dc): undefined reference to
`omni_thread::init_t::~init_t()

Creating library file: .libs/_gnuradio_swig_py_runtime.dll.a
collect2: ld returned 1 exit status
make[6]: *** [_gnuradio_swig_py_runtime.la] Error 1
make[6]: Leaving directory
`/cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src/
ib/swig'
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src/
ib/swig'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src/
ib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/usr/KELLEBC/gnuradio'
make: *** [all] Error 2


--
View this message in context:
http://www.nabble.com/Cygwin-Compile-Errors-from-t...
Sent from the GnuRadio mailing list archive at Nabble.com.
Ad84973e0d95196c6e59bed61c3f349a?d=identicon&s=25 Don Ward (Guest)
on 2007-07-02 19:25
(Received via mailing list)
Ben Kelley wrote:

> make  all-am
> ../../../../gnuradio-core/src/lib/libgnura
> ib/gcc/i686-pc-cygwin/3.4.4/../../.. -lstdc++ -lgcc -lcygwin -luser32
> time.cc:(.text+0x325be): undefined reference to
> `omni_thread::init_t::init_t()'
> /cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src/lib/swig/gnuradio_swig_py_ru
> time.cc:(.text+0x325dc): undefined reference to
> `omni_thread::init_t::~init_t()

This problem is documented at http://www.gnuradio.org/trac/ticket/138.
I
think all the problems in the ticket have been fixed except for item
(2); a
fix for that is shown in the last item in the change history.

You may want to check out ticket #139 while you're at it.

If you continue to have trouble with these, let me know and I will send
you
the patches I use to get around them.

-- Don W.
641485908656a31e54a47e8458183f0b?d=identicon&s=25 Benjamin Kelley (Guest)
on 2007-07-03 18:21
(Received via mailing list)
>>> "Don Ward" <don2387ward@sprynet.com> 07/02/07 12:25 PM >>>
Ben Kelley wrote:

> make  all-am
> ../../../../gnuradio-core/src/lib/libgnura
> ib/gcc/i686-pc-cygwin/3.4.4/../../.. -lstdc++ -lgcc -lcygwin -luser32
> time.cc:(.text+0x325be): undefined reference to
> `omni_thread::init_t::init_t()'
> /cygdrive/c/usr/KELLEBC/gnuradio/gnuradio-core/src/lib/swig/gnuradio_swig_py_ru
> time.cc:(.text+0x325dc): undefined reference to
> `omni_thread::init_t::~init_t()

This problem is documented at http://www.gnuradio.org/trac/ticket/138.
I
think all the problems in the ticket have been fixed except for item
(2); a
fix for that is shown in the last item in the change history.

You may want to check out ticket #139 while you're at it.

If you continue to have trouble with these, let me know and I will send
you
the patches I use to get around them.

-- Don W.

Don,

Thanks, that seemed to work.

Using bug 138, 139, CPPFLAGS=-DINFINITY=HUGE_VAL in front of configure,
and editing Makefile.AM to include {PMT,MBLOCK,OMNITHREAD}_LA when need
seems to have done the trick.


Using svn diff, this was what I modified to get everything to compile.

Thanks.
Ben

Index: usrp/host/lib/inband/Makefile.am
===================================================================
--- usrp/host/lib/inband/Makefile.am  (revision 5886)
+++ usrp/host/lib/inband/Makefile.am  (working copy)
@@ -51,6 +51,9 @@

 libusrp_inband_la_LIBADD =    \
   $(MBLOCK_LA)      \
+  $(PMT_LA)      \
+  $(OMNITHREAD_LA)    \
+  $(OMNITHREAD_LIBS)    \
   -lstdc++


@@ -79,6 +82,10 @@
 libusrp_inband_qa_la_LIBADD =      \
   libusrp_inband.la    \
   $(CPPUNIT_LIBS)      \
+  $(PMT_LA)      \
+  $(OMNITHREAD_LIBS)    \
+  $(OMNITHREAD_LA)    \
+  $(MBLOCK_LA)      \
   -lstdc++

 #
------------------------------------------------------------------------
Index: gnuradio-core/src/lib/swig/Makefile.am
===================================================================
--- gnuradio-core/src/lib/swig/Makefile.am  (revision 5886)
+++ gnuradio-core/src/lib/swig/Makefile.am  (working copy)
@@ -119,6 +119,7 @@

 _gnuradio_swig_py_runtime_la_LIBADD  =     \
   $(GNURADIO_CORE_LA)      \
+  $(OMNITHREAD_LIBS)      \
   $(PYTHON_LDFLAGS)      \
   -lstdc++

@@ -151,6 +152,7 @@
 _gnuradio_swig_py_general_la_LIBADD  =     \
   $(GNURADIO_CORE_LA)      \
   $(PYTHON_LDFLAGS)      \
+  $(OMNITHREAD_LIBS)      \
   -lstdc++

 _gnuradio_swig_py_general_la_LDFLAGS = -module -avoid-version
$(NO_UNDEFINED)
@@ -244,6 +246,7 @@
 _gnuradio_swig_py_io_la_LIBADD  =     \
   $(GNURADIO_CORE_LA)      \
   $(PYTHON_LDFLAGS)      \
+  $(OMNITHREAD_LIBS)      \
   -lstdc++

 _gnuradio_swig_py_io_la_LDFLAGS = -module -avoid-version
$(NO_UNDEFINED)
Index: pmt/src/lib/Makefile.am
===================================================================
--- pmt/src/lib/Makefile.am  (revision 5886)
+++ pmt/src/lib/Makefile.am  (working copy)
@@ -99,6 +99,7 @@
 libpmt_qa_la_LIBADD =       \
   libpmt.la      \
   $(CPPUNIT_LIBS)      \
+  $(PMT_LIBS)      \
   -lstdc++


Index: Makefile.common
===================================================================
--- Makefile.common  (revision 5886)
+++ Makefile.common  (working copy)
@@ -67,8 +67,10 @@
 OMNITHREAD_LA = $(top_builddir)/omnithread/libgromnithread.la

 # How to link in GNU Radio core library from inside the tree
-GNURADIO_CORE_LA =
$(top_builddir)/gnuradio-core/src/lib/libgnuradio-core.la
+GNURADIO_CORE_LA =
$(top_builddir)/gnuradio-core/src/lib/libgnuradio-core.la \
+       $(OMNITHREAD_LA)

+
 # This is a dependency for many swig operations
 GNURADIO_I = $(top_srcdir)/gnuradio-core/src/lib/swig/gnuradio.i

Index: run_tests.sh.in
===================================================================
--- run_tests.sh.in  (revision 5886)
+++ run_tests.sh.in  (working copy)
@@ -39,7 +39,7 @@
 export DYLD_LIBRARY_PATH

 # For Win32
-PATH=$grlibdir:$PATH
+PATH=$grlibdir:$gromnidir:$PATH

 # Don't load user or system prefs
 GR_DONT_LOAD_PREFS=1
Index: mblock/src/lib/Makefile.am
===================================================================
--- mblock/src/lib/Makefile.am  (revision 5886)
+++ mblock/src/lib/Makefile.am  (working copy)
@@ -130,6 +130,8 @@
 libmblock_qa_la_LIBADD =     \
   libmblock.la      \
   $(CPPUNIT_LIBS)      \
+  $(OMNITHREAD_LA)    \
+  $(PMT_LA)      \
   -lstdc++
This topic is locked and can not be replied to.