Skip to contentSkip to conversation

libsemanage swig problem

DISCUSSION Joshua Brindle 2 participants 3 messages May 8, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

does anyone know what is up with this:

gcc -g -shared -o _semanage.so semanageswig_wrap.lo -L. -lsemanage -lpython2.4 -L/usr/lib -Wl,-soname,_semanage.so,-z,defs semanageswig_wrap.lo: In function _wrap_semanage_module_list':semanageswig_wrap.c:(.text+0x38d1): undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_create':semanageswig_wrap.c:(.text+0x44a3): undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_clone':semanageswig_wrap.c:(.text+0x45e8): undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_from_string':semanageswig_wrap.c:(.text+0x47d0): undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_to_string':semanageswig_wrap.c:(.text+0x4903): undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo:semanageswig_wrap.c:(.text+0x4a45): more undefined references to `SWIG_Python_AppendOutput' follow

I can't find where this function is suppose to be defined, there are no swig header files (or libraries for that matter) so I assume it is suppose to pull it in but it isn't. This happens in head right now if you make swigify (apparently hasn't been done in a while) and try to make pywrap. Googling SWIG_Python_AppendOutput is less than helpful :\

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 22 lines · Joshua Brindle

does anyone know what is up with this:

gcc -g -shared -o _semanage.so semanageswig_wrap.lo -L. -lsemanage -lpython2.4 -L/usr/lib -Wl,-soname,_semanage.so,-z,defs semanageswig_wrap.lo: In function `_wrap_semanage_module_list':semanageswig_wrap.c:(.text+0x38d1):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_create':semanageswig_wrap.c:(.text+0x44a3):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_clone':semanageswig_wrap.c:(.text+0x45e8):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_from_string':semanageswig_wrap.c:(.text+0x47d0):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_to_string':semanageswig_wrap.c:(.text+0x4903):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo:semanageswig_wrap.c:(.text+0x4a45): more undefined references to SWIG_Python_AppendOutput' follow

Quoted 5 lines

I can't find where this function is suppose to be defined, there are no swig header files (or libraries for that matter) so I assume it is suppose to pull it in but it isn't. This happens in head right now if you make swigify (apparently hasn't been done in a while) and try to make pywrap. Googling SWIG_Python_AppendOutput is less than helpful :\

Hmmm...just tried doing a make distclean swigify pywrap here, and had no problems (and nothing changed in the generated files). Possibly tied to swig version? swig 1.3.29 here.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 29 lines · Stephen Smalley
Quoted 22 lines · Joshua Brindle

does anyone know what is up with this:

gcc -g -shared -o _semanage.so semanageswig_wrap.lo -L. -lsemanage -lpython2.4 -L/usr/lib -Wl,-soname,_semanage.so,-z,defs semanageswig_wrap.lo: In function `_wrap_semanage_module_list':semanageswig_wrap.c:(.text+0x38d1):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_create':semanageswig_wrap.c:(.text+0x44a3):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_clone':semanageswig_wrap.c:(.text+0x45e8):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_from_string':semanageswig_wrap.c:(.text+0x47d0):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo: In function _wrap_semanage_context_to_string':semanageswig_wrap.c:(.text+0x4903):
undefined reference to SWIG_Python_AppendOutput' semanageswig_wrap.lo:semanageswig_wrap.c:(.text+0x4a45): more undefined references to SWIG_Python_AppendOutput' follow

Quoted 5 lines

I can't find where this function is suppose to be defined, there are no swig header files (or libraries for that matter) so I assume it is suppose to pull it in but it isn't. This happens in head right now if you make swigify (apparently hasn't been done in a while) and try to make pywrap. Googling SWIG_Python_AppendOutput is less than helpful :\

Quoted 3 lines

Hmmm...just tried doing a make distclean swigify pywrap here, and had no problems (and nothing changed in the generated files). Possibly tied to swig version? swig 1.3.29 here.

Defined in /usr/share/swig/x.y.z/python/pyrun.swg.
It replaced t_output_helper, which is deprecated, in libsemanage 1.6.4 2006-04-12.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.