Whoops. LDLIBS = -lpython3.3m -lpthread -ldl -lutil -lm
On 10/04/2014, at 11:58 AM, [email protected] wrote: > python3m is not found: > > egon@CupidoServer:~/mod_wsgi-3.4$ make > /usr/bin/apxs2 -c -I/usr/local/include/python3.3m -DNDEBUG mod_wsgi.c > -L/usr/local/lib -L/usr/local/lib/python3.3/config-3.3m -Wl,-F -lpython3m > -lpthread -ldl -lutil -lm > /usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static > x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE > -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl > -I/usr/include/xmltok -pthread -I/usr/include/apache2 > -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 > -I/usr/local/include/python3.3m -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && > touch mod_wsgi.slo > /usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static > x86_64-linux-gnu-gcc -o mod_wsgi.la -rpath /usr/lib/apache2/modules -module > -avoid-version mod_wsgi.lo -L/usr/local/lib > -L/usr/local/lib/python3.3/config-3.3m -Wl,-F -lpython3m -lpthread -ldl > -lutil -lm > /usr/bin/ld: cannot find -lpython3m > collect2: ld returned 1 exit status > apxs:Error: Command failed with rc=65536 > . > make: *** [mod_wsgi.la] Fehler 1 > > > On Thursday, April 10, 2014 1:41:11 PM UTC+2, Graham Dumpleton wrote: > Change Makefile to: > > LDLIBS = -lpython3m -lpthread -ldl -lutil -lm > > What happens then? > > Make sure you do a 'make clean' before rebuilding source code. > > Graham > > On 10/04/2014, at 7:19 AM, [email protected] wrote: > >> I want to use mod_wsgi with Python3 and Apache2.2 on Ubuntu12.4. Python3.3.5 >> is in /usr/local/lib: >> - /usr/local/lib/python3.3 >> - /usr/local/lib/libpython3.3m.so >> - /usr/local/lib/libpython3.3m.so.1.0 >> - /usr/local/lib/libpython3.so >> >> /usr/local/lib/libpython3.3m.so is a link to >> /usr/local/lib/libpython3.3m.so.1.0. >> >> I configuired with the Python-Version. >> ./configure --with-python=/usr/local/bin/python3.3 >> Then I added arguments to the generated Makefile. The Makefile is attacvhed. >> >> make comes to a normal end: >> /usr/bin/apxs2 -c -I/usr/local/include/python3.3m -DNDEBUG mod_wsgi.c >> -L/usr/local/lib -L/usr/local/lib/python3.3/config-3.3m -Wl,-F -lpython3 >> -lpthread -ldl -lutil -lm >> /usr/share/apr-1.0/build/libtool --silent --mode=compile >> --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2 >> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 >> -I/usr/include/openssl -I/usr/include/xmltok -pthread >> -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 >> -I/usr/local/include/python3.3m -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && >> touch mod_wsgi.slo >> /usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static >> x86_64-linux-gnu-gcc -o mod_wsgi.la -rpath /usr/lib/apache2/modules -module >> -avoid-version mod_wsgi.lo -L/usr/local/lib >> -L/usr/local/lib/python3.3/config-3.3m -Wl,-F -lpython3 -lpthread -ldl >> -lutil -lm >> >> But ldd mod_wsgi.so shows that there is no shared python library: >> linux-vdso.so.1 => (0x00007fff2d3dc000) >> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 >> (0x00007ff506855000) >> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff506495000) >> /lib64/ld-linux-x86-64.so.2 (0x00007ff506cc2000) >> >> What is wrong in the Makefile? >> >> Egon >> >> # Copyright 2007 GRAHAM DUMPLETON >> # >> # Licensed under the Apache License, Version 2.0 (the "License"); >> # you may not use this file except in compliance with the License. >> # You may obtain a copy of the License at >> # >> # http://www.apache.org/licenses/LICENSE-2.0 >> # >> # Unless required by applicable law or agreed to in writing, software >> # distributed under the License is distributed on an "AS IS" BASIS, >> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. >> # See the License for the specific language governing permissions and >> # limitations under the License. >> >> APXS = /usr/bin/apxs2 >> PYTHON = /usr/local/bin/python3.3 >> >> DESTDIR = >> LIBEXECDIR = /usr/lib/apache2/modules >> >> CPPFLAGS = -I/usr/local/include/python3.3m -DNDEBUG >> CFLAGS = >> LDFLAGS = -L/usr/local/lib -L/usr/local/lib/python3.3/config-3.3m -Wl,-F >> >> LDLIBS = -lpython3 -lpthread -ldl -lutil -lm >> >> all : mod_wsgi.la >> >> mod_wsgi.la : mod_wsgi.c >> $(APXS) -c $(CPPFLAGS) $(CFLAGS) mod_wsgi.c $(LDFLAGS) $(LDLIBS) >> >> $(DESTDIR)$(LIBEXECDIR) : >> mkdir -p $@ >> >> install : all $(DESTDIR)$(LIBEXECDIR) >> $(APXS) -i -S LIBEXECDIR=$(DESTDIR)$(LIBEXECDIR) -n 'mod_wsgi' >> mod_wsgi.la >> >> clean : >> -rm -rf .libs >> -rm -f mod_wsgi.o mod_wsgi.la mod_wsgi.lo mod_wsgi.slo mod_wsgi.loT >> -rm -f config.log config.status >> -rm -rf autom4te.cache >> >> distclean : clean >> -rm -f Makefile Makefile.in >> >> realclean : distclean >> -rm -f configure >> >> -- >> You received this message because you are subscribed to the Google Groups >> "modwsgi" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/modwsgi. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
