Mailinglist Archive: opensuse-packaging (232 mails)

< Previous Next >
Re: [opensuse-packaging] Need gcc / makefile / autotools help with a new python/C package
  • From: Greg Freemyer <greg.freemyer@xxxxxxxxx>
  • Date: Mon, 13 Feb 2012 18:29:51 -0500
  • Message-id: <CAGpXXZL4nbN5EdYMEGESpsG0CYH5rTqZ+i=c4V__mouHVaRXQA@mail.gmail.com>
On Mon, Feb 13, 2012 at 6:26 PM, Cristian Rodríguez
<crrodriguez@xxxxxxxxxxxx> wrote:
On 13/02/12 19:08, Greg Freemyer wrote:

All,

As I've blasted across the universe, I'm trying to package a set of
computer forensic apps.

I'm tracking my progress here.

http://en.opensuse.org/Portal:Digital_Forensics_/_Incident_Response

The next one on my list is pyflag.  I have a package in OBS:

               home:gregfreemyer:Tools-for-forensic-boot-cd>  pyflag

But the build is failing in the INSTALL section with:

==
gcc -shared  -I/usr/include/python2.7 -I../../src/include -L
-lpython2.7 -o pypacket.so pypacket.c .libs/pypacket.a -lpthread -ldl
-lutil
In file included from /usr/include/python2.7/Python.h:8:0,
                 from ../../src/include/pypacket.h:4,


Upstream autotools usage is messed up, I will send you a patch :-)

Thanks, and glad to hear it. I've been looking at it and just getting confused.

If I just need to patch -fPIC on to the end of this rule:

%.so: %.c
$(CC) -shared $(AM_CFLAGS) $(PYTHON_CPPFLAGS)
-I$(top_srcdir)/src/include $(PYTHON_LDFLAGS) -o $@ $? .libs/$*.a
$(PYTHON_EXTRA_LIBS) $(AM_LDFLAGS)


I can figure out the patch, there are several Makefile.in files that
have that rule, but knowing that doing that is right would give me
confidence to proceed.

Greg
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups