# Cygwin Compile Errors from trunk

**URL:** <https://www.ruby-forum.com/t/cygwin-compile-errors-from-trunk/108357>\
**Category:** GNU Radio\
**Created:** [July 2, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/cygwin-compile-errors-from-trunk/108357 "2007-07-02T18:35:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Kelley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@Ben\_Kelley](https://www.ruby-forum.com/u/Ben_Kelley)\
**Post date:** [July 2, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/cygwin-compile-errors-from-trunk/108357/1 "2007-07-02T18:35:37Z")

</div>

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-trunk-tf4012935.html#a11396049](http://www.nabble.com/Cygwin-Compile-Errors-from-trunk-tf4012935.html#a11396049)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Ben\_Kelley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@Ben\_Kelley](https://www.ruby-forum.com/u/Ben_Kelley)\
**Post date:** [July 2, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/cygwin-compile-errors-from-trunk/108357/2 "2007-07-02T19:25:43Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Ben\_Kelley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@Ben\_Kelley](https://www.ruby-forum.com/u/Ben_Kelley)\
**Post date:** [July 3, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/cygwin-compile-errors-from-trunk/108357/3 "2007-07-03T18:21:55Z")

</div>

> > > “Don W.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](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++
