Same here. I built python 2.3 from the sources and copied the libraries to /usr/lib. This resolved the previous linking problems but generated the same error that Carlos is reporting, the unresolved reference [EMAIL PROTECTED] Sivan

Carlos Perez wrote:

I believe I was able to fix the library issue. But now I'm getting this error:

  linking into shared object ./_TOSSIM.dll
g++ -fpic -W1,--enabled-auto-image-base build/micaz/pytossim.o build/micaz/sim.o build/micaz/tossim.o -L/python2.4 -lstdc++ - lpython2.4 -o _TOSSIM.dll /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):: undefined reference to [EMAIL PROTECTED]'

I googled the error for some solutions, and tried adding "-Wl,u,[EMAIL PROTECTED]" to the linking command but that didn't help. Any ideas on this one?

On 10/8/06, *Carlos Perez* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi,

    I'm having the same problem with my python libraries. I tried the
    "configure;make" with Python 2.5 and changed my sim-cygwin.extra
    and sim.extra but had no luck. Now it's complaining about
    "Python.h : No such file or directory". Can you give me some
    insight into how exactly do I make it find Python.h? What else
    must I point sim-cygwin.extra to?


    On 10/8/06, * Sivan Toledo* <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        It seems that there is no shared-object library in the python
        package of
        cygwin (neither in the version on that is part of the cygwin
        bundle on
        tinyos.net <http://tinyos.net> nor in the current versions on
        cygwin.com <http://cygwin.com>), and that there is
        nothing called cygwin-devel, so I guess that this library
        might have
        been created by a full "configure;make;" of the python sources.


        If you have a working copy of the .so file, I would appreciate
        a copy to
        try to void the "configure;make" hassle.


        Sivan


        Philip Levis wrote:

        > On Oct 7, 2006, at 12:02 PM, Sivan Toledo wrote:
        >
        >>  I'm using tinyos-2.0.0beta2-3.cygwin.noarch.rpm which is
        what the
        >> TinyOS installation page specifies.
        >> <
        
http://www.tinyos.net/dist-2.0.0/tinyos/windows/tinyos-2.0.0beta2-3.cygwin.noarch.rpm>
        >>
        >>
        >>
        >> I don't think the problem is with the version of python. The
        command
        >> that fails is
        >>
        >>
        >> g++ -shared -fPIC  build/micaz/pytossim.o build/micaz/sim.o
        >> build/micaz/tossim.o -lstdc++  -o _TOSSIMmodule.so
        >>
        >>
        >> The unresolved references are in pytossim.o, and they seem
        to refer
        >> to some Python-related library (symbols like
        _PyString_FromString and
        >> __imp__PyExc_NameError). I don't see on this command line
        the library
        >> from which they should come. They are not in tossim.o (I
        checked with
        >> nm).
        >>
        >>
        >> The instructions in the TOSSIM tutorial seem pretty similar
        to the
        >> one in the first tutorial, it basically just say to run
        "make micaz
        >> sim" in apps/Blink.
        >
        >
        > Hm. This is weird. -fPIC suggests that it thinks it's
        compiling for
        > Linux, not Cygwin. The default sim.extra tries to figure out
        which OS
        > you are with the OSTYPE environment variable. If it is
        "cygwin", it
        > compiles for Cygwin, if "darwin" it compiles for Mac OSX,
        otherwise
        > Linux.
        >
        > What is this environment variable on your machine? Can you try
        >
        > OSTYPE=cygwin make micaz sim
        >
        > and see what happens?
        >
        > The other possibility is that you don't have the Python
        development
        > libraries. I had though that this was standard on most
        Cygwins, but...
        > did you install the one linked on the TinyOS site?
        >
        > Phil
        >
        > +++++++++++++++++++++++++++++++++++++++++++
        > This Mail Was Scanned By Mail-seCure System
        > at the Tel-Aviv University CC.

        _______________________________________________
        Tinyos-help mailing list
        [email protected]
        <mailto:[email protected]>
        
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
        
<https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>




+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to