[ playerstage-Bugs-3540417 ] python/ruby swig bindings use uninitialized functions

SourceForge.net <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Bugs item #3540417, was opened at 2012-07-05 03:17
Message generated for change (Tracker Item Submitted) made by dmitrijledkov
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=3540417&group_id=42445

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: player
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dmitrijs Ledkovs (dmitrijledkov)
Assigned to: Rich Mattes (jpgr87)
Summary: python/ruby swig bindings use uninitialized functions

Initial Comment:
I am not sure if it's a problem with python filter that generates swig input file and the header; or the problem is in the new swig.

The generated C file calls "member functions" as _playerc_client_t_read when in the header file only the standard playerc_client_read is defined.

My stupid idea is to do a patch which add #define _playerc_client_t_read playerc_client_read.

The proper fix would be to write/instruct swig to use the correct "global" functions.

/build/buildd/player-3.0.2+dfsg/obj-x86_64-linux-gnu/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c: In function '_wrap_playerc_client_destroy':
/build/buildd/player-3.0.2+dfsg/obj-x86_64-linux-gnu/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c:50457:3: warning: implicit declaration of function '_playerc_client_t_destroy' [-Wimplicit-function-declaration]
/build/buildd/player-3.0.2+dfsg/obj-x86_64-linux-gnu/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c: In function '_wrap_playerc_client_set_transport':
/build/buildd/player-3.0.2+dfsg/obj-x86_64-linux-gnu/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c:50487:3: warning: implicit declaration of function '_playerc_client_t_set_transport' [-Wimplicit-function-declaration]
/build/buildd/player-3.0.2+dfsg/obj-x86_64-linux-gnu/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c: In function '_wrap_playerc_client_connect':
/build/buildd/player-3.0.2+dfsg/obj-x86_64-linux-gnu/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c:50509:3: warning: implicit declaration of function '_playerc_client_t_connect' [-Wimplicit-function-declaration]

the rest of the build log is at:
https://launchpadlibrarian.net/108812838/buildlog_ubuntu-quantal-amd64.player_3.0.2%2Bdfsg-4ubuntu1_FAILEDTOBUILD.txt.gz

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=3540417&group_id=42445

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.