I think my mail bounced back hence sending it again
Thanks
Preeti

---------- Forwarded message ----------
From: preeti k <[EMAIL PROTECTED]>
Date: Dec 14, 2006 7:54 PM
Subject: Re: [Tinyos-help] python version
To: "Mr. Jonathan A. Gomez" <[EMAIL PROTECTED]>, Philip Levis <
[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]

Hi,

Finally i think i figured that the problem is of  compilation happening for
linux when i am actually using cygwin.
So i hard coded OSTYPE=cygwin in the sim.extra file. Now it has stopped
throwing undefined reference errors but i am still not done since now i get
the following 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 build/micaz/c-support.o-L/usr/include/python2.3/config
-lstdc++ - lpython2.3 -o _TOSSIM.dll
*/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
cannot
find -lpython2.3
collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1*
******************************************************

I referered to the tinyos-help thread which talks about the same problem but
i cud not find a solution. To rectify the problem i changed
PLATFORM_LIB_FLAGS in sim.extra file as follows

Initially it was
PLATFORM_LIB_FLAGS = -L$(PYDIR)/config .dll -lstdc++  *
-lpython$(PYTHON_VERSION)*

I changed it to PLATFORM_LIB_FLAGS = -L$(PYDIR)/config */bin/libpython2.3*.dll
-lstdc++

I thus deleted the '-lpython$(PYTHON_VERSION) ' and added
/bin/libpython2.3.dll (to -L option), since that is the location of my
python library file.I do not know how correct this is but apparently the
-lpython not found error is gone but now i get the following 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 build/micaz/c-support.o-L/usr/include/python2.3/config
/bin/libpython2.3.dll -lstdc++  -o _TOSSIM.dll
/*usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o
)(.text+0x7
c): undefined reference to [EMAIL PROTECTED]'* <[EMAIL PROTECTED]'>
*collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1*
********************************************
Now I am completely at a loss here as to whats going wrong. Can someone
please help me out?

Preeti




On 12/14/06, preeti k <[EMAIL PROTECTED]> wrote:

Thanks for the reply.
Well the version number i have set is 2.3 ie   'PYTHON_VERSION=2.3'
Also i tried to search for the python library files . In my case /usr/lib
is empty, there is absolutely no file in there. But i tried to search for
files like libpython2.3.dll  etc and found them at /bin
Copying this library file to the /usr/lib location does not work

Any  suggestions please ... it wud be of great help

Preeti



On 12/13/06, Mr. Jonathan A. Gomez <[EMAIL PROTECTED] > wrote:
>
>
> I bow to whomever else wishes to advise you, for I do not use CYGWIN,
> but here are my two cents.
>
> Did you set the version to 2.3.4?  Maybe it would help you to specify
> 2.3 as the version number?
> Since that's the version number suffix on the support directory, it
> might presumably be your
> library file's version number suffix.  From reading the makefile, it
> looks for a library with
> the version number added after the name, so...
>
> If you want, you might look a little more carefully for the python
> library in /usr/lib, because
> you want to locate the actual library file, not just a related
> directory.  You're probably
> looking for something with an appropriate ending, for example things
> like .dll or .so, with
> python in its name, and some version number.  (It will be different for
> you, yet for example, on
> my linux system the library is /usr/lib/libpython2.3.so with a version
> suffix of 2.3 even though
> the real python version is 2.3.5).
>
> -- Jon.
>


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

Reply via email to