On Fri, Feb 25, 2011 at 6:06 PM, Roberto De Ioris <[email protected]> wrote: > > Il giorno 25/feb/2011, alle ore 18.02, luigi scarso ha scritto: > >> On Fri, Feb 25, 2011 at 5:52 PM, Roberto De Ioris <[email protected]> wrote: >>> >>> Il giorno 25/feb/2011, alle ore 15.15, luigi scarso ha scritto: >>> >>>> On Fri, Feb 11, 2011 at 11:18 AM, Roberto De Ioris <[email protected]> >>>> wrote: >>>>> >>>>> Pull from the mercurial and build with >>>>> >>>>> python uwsgiconfig.py --build pyerl >>>>> >>>>> This will build a binary with erlang and python bridge plugin embedded >>>> >>>> Compilations fails with >>>> *** uWSGI building plugins *** >>>> *** building plugin: *** >>>> gcc -pthread -fPIC -shared -o ./http_plugin.so -I. -O2 -Wall -Werror >>>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing >>>> -Wextra -Wno-unused-parameter -Wno-missing-field-initializers >>>> -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL >>>> -DUWSGI_EVENT_TIMER_USE_NONE -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY >>>> -DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_PCRE -DUWSGI_ASYNC >>>> -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML >>>> -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/include/libxml2 >>>> -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_PLUGIN_DIR=\".\" >>>> -DUWSGI_SPOOLER >>>> -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(ping);UDEP(nagios);UDEP(rpc);UDEP(fastrouter);UDEP(http);" >>>> -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(ping);ULEP(nagios);ULEP(rpc);ULEP(fastrouter);ULEP(http);" >>>> plugins/http.c -lpthread -rdynamic -L/usr/lib -lpcre -lxml2 -lpthread >>>> -ldl -lutil -lm -L/usr/lib/python2.5/config -lpython2.5 >>>> gcc: plugins/http.c: Nessun file o directory >>>> *** unable to build http plugin *** >>>> >>> >>> Fixed >> >> In file included from plugins/erlang/erlang.c:2: >> plugins/erlang/erlang.h:1:16: error: ei.h: Nessun file o directory >> >> My erlang is not on a default include path >> (currently it's >> /opt/otp/lib/erlang/lib/erl_interface-3.6.3/include/ei.h >> ) >> Is there a way to specify the path ? > > edit plugins/erlang/uwsgiplugin.py hm, better export CFLAGS=-I/opt/otp/lib/erlang/lib/erl_interface-3.6.3/include
But now I have cc1: warnings being treated as errors plugins/pyerl/pyerl.c: In function ‘erl_to_py’: plugins/pyerl/pyerl.c:79: warning: implicit declaration of function ‘PyUnicode_FromString’ plugins/pyerl/pyerl.c:79: warning: assignment makes pointer from integer without a cast >> But pyerl include erlang, if I've undestood pyerl.ini correctly . > > i have named the ini files as their plugin counterpart, but they are not > related. > > pyerl plugins require symbols defined by the erlang one and when not embedded > they are separate shared libraries. Ah, ok I didn't understood . > > This is because i want to implement in the near future a luaerl and a plerl > plugin :) luaerl sounds exciting.. Is it different from http://projects.unbit.it/uwsgi/wiki/Lua ? -- luigi _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
