gnucap-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with g


From: Patrick Mulder
Subject: Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap)
Date: Sun, 11 Feb 2018 19:59:33 +0100

On Sun, Feb 11, 2018 at 7:36 PM, Felix Salfelder <address@hidden>
wrote:

> On Sun, Feb 11, 2018 at 07:31:13PM +0100, Patrick Mulder wrote:
> > gnucap.cc:20:3: warning: 'tmpnam' is deprecated: This function is
> provided
> > for compatibility reasons only. Due to security concerns inherent in the
> >       design of tmpnam(3), it is highly recommended that you use
> mkstemp(3)
> > instead. [-Wdeprecated-declarations]
> >   tmpnam(filename);
> >   ^
> > /usr/include/stdio.h:276:7: note: 'tmpnam' has been explicitly marked
> > deprecated here
> > char    *tmpnam(char *);
>
> that should be an easy fix. just follow the advice ;)
>
> i don't think it's very urgent, perhaps creating temporary files is not
> the right thing to do anyway.
>
> $ make
> > /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
> > swig -python -c++ -Wall  gnucap.i
> > make[1]: swig: No such file or directory
> > make[1]: *** [gnucap_wrap.cxx] Error 1
> > make: *** [all] Error 2
>
> swig is that tool that turns the interface description into python
> module source code. you need to install that.
>
>
Yes, just did a quick experiment, and it brings us a step closer, but still
some problems too:

pm:gnucap-python pmu$ python setup.py build
running build
running build_py
creating build
creating build/lib.macosx-10.11-intel-2.7
copying gnucap.py -> build/lib.macosx-10.11-intel-2.7
running build_ext
building '_gnucap' extension
swigging gnucap.i to gnucap_wrap.cpp
swig -python -c++ -DHAS_NUMPY -Wall -o gnucap_wrap.cpp gnucap.i
creating build/temp.macosx-10.11-intel-2.7
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os
-pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv
-Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c gnucap.cc -o build/temp.macosx-10.11-intel-2.7/gnucap.o
gnucap.cc:2:10: fatal error: 'u_lang.h' file not found
#include <u_lang.h>
         ^
1 error generated.
error: command 'cc' failed with exit status 1


Well, I am probably joining the weekend folks for the next hours - maybe I
can try on my Debian system the next days.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]