Because I told it to. In 3.3 I had:

mod_wsgi.la : mod_wsgi.c
        $(APXS) -c $(CPPFLAGS) $(CFLAGS) mod_wsgi.c $(LDFLAGS) $(LDLIBS)

When I did 4.0 and had to add more files, for whatever reason I have
changed it to $<. The $< variable is meant to be first prerequisite.

I am not sure why it is dropping it with version of make you are using.

Graham

On 12 March 2012 11:11, Ruben K. <[email protected]> wrote:
> That did it :D Why did it place that in the Makefile anyways?
>
>
> On Monday, March 12, 2012 6:44:56 PM UTC+1, Graham Dumpleton wrote:
>>
>> I may be to do with the Makefile then. For a test, try changing:
>>
>> mod_wsgi.la : mod_wsgi.c $(SRCFILES)
>>         $(APXS) -c $(CPPFLAGS) $(CFLAGS) $< $(SRCFILES) $(LDFLAGS)
>> $(LDLIBS)
>>
>> to:
>>
>> mod_wsgi.la : mod_wsgi.c $(SRCFILES)
>>         $(APXS) -c $(CPPFLAGS) $(CFLAGS) mod_wsgi.c $(SRCFILES)
>> $(LDFLAGS) $(LDLIBS)
>>
>> The issue may be that $< is not added and so I should be listing it
>> explicitly now that compiling multiple files at same time.
>>
>> Graham
>>
>> On 12 March 2012 10:27, Adam Stein <[email protected]> wrote:
>> > I thought I replied before but didn't see my note.  I compared the
>> > output to my own (Fedora 13 & 14 systems).  The only real difference was
>> > the last libtool line.  The output file being generated in the output
>> > log given is 'wsgi_apache.la' not 'mod_wsgi.la' like it does for mine.
>> >
>> > On Mon, 2012-03-12 at 10:04 -0700, Graham Dumpleton wrote:
>> >> I'll see if I can compare your build output with that for my own Mac
>> >> system and work something out. Being at PyCon means being pulled in
>> >> all directions right now, so not sure when.
>> >>
>> >> Graham
>> >>
>> >> On 12 March 2012 01:37, Ruben K. <[email protected]> wrote:
>> >> > Could anyone give me some tips as to how to debug why this is going
>> >> > wrong?
>> >> > Doesn't seem to get anywhere myself :-(
>> >> >
>> >> >
>> >> > On Thursday, March 8, 2012 9:13:35 AM UTC+1, Ruben K. wrote:
>> >> >>
>> >> >> I don't know how well supported mod_wsgi is but from the recent
>> >> >> changes in trunk I figure it should be pretty functional. Yet, I
>> >> >> just
>> >> >> can't seem to get get it compiled (trunk version, since latest
>> >> >> stable
>> >> >> doesn't compile against apache24 at all)
>> >> >>
>> >> >> So my setup: apache2.4.1 on FreeBSD9-release
>> >> >>
>> >> >> This is what happens:
>> >> >>
>> >> >> [root@freebsd0 ~/wsgi/modwsgi/mod_wsgi]# ./configure
>> >> >> --with-apxs=/usr/
>> >> >> local/apache2/bin/apxs --with-python=/usr/local/bin/python
>> >> >> checking Apache version... 2.4.1
>> >> >> configure: creating ./config.status
>> >> >> config.status: creating Makefile
>> >> >> [root@freebsd0 ~/wsgi/modwsgi/mod_wsgi]# make
>> >> >> /usr/local/apache2/bin/apxs -c -I/usr/local/include/python2.7 -
>> >> >> DNDEBUG   wsgi_apache.c wsgi_convert.c wsgi_validate.c -L/usr/local/
>> >> >> lib -L/usr/local/lib/python2.7/config -lpython2.7 -lutil -lm
>> >> >> /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -
>> >> >> std=gnu99 -prefer-pic    -g -O2 -I/usr/local/apache2/include
>> >> >>  -I/usr/
>> >> >> local/include/apr-1   -I/usr/local/include/apr-1
>> >> >> -I/usr/local/include -
>> >> >> I/usr/local/include/db42 -I/usr/local/include/python2.7 -DNDEBUG  -c
>> >> >> -
>> >> >> o wsgi_apache.lo wsgi_apache.c && touch wsgi_apache.slo
>> >> >> /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -
>> >> >> std=gnu99 -prefer-pic    -g -O2 -I/usr/local/apache2/include
>> >> >>  -I/usr/
>> >> >> local/include/apr-1   -I/usr/local/include/apr-1
>> >> >> -I/usr/local/include -
>> >> >> I/usr/local/include/db42 -I/usr/local/include/python2.7 -DNDEBUG  -c
>> >> >> -
>> >> >> o wsgi_convert.lo wsgi_convert.c && touch wsgi_convert.slo
>> >> >> /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -
>> >> >> std=gnu99 -prefer-pic    -g -O2 -I/usr/local/apache2/include
>> >> >>  -I/usr/
>> >> >> local/include/apr-1   -I/usr/local/include/apr-1
>> >> >> -I/usr/local/include -
>> >> >> I/usr/local/include/db42 -I/usr/local/include/python2.7 -DNDEBUG  -c
>> >> >> -
>> >> >> o wsgi_validate.lo wsgi_validate.c && touch wsgi_validate.slo
>> >> >> /usr/local/share/apr/build-1/libtool --silent --mode=link cc -
>> >> >> std=gnu99 -o wsgi_apache.la  -rpath /usr/local/apache2/modules
>> >> >> -module
>> >> >> -avoid-version    wsgi_validate.lo wsgi_convert.lo wsgi_apache.lo
>> >> >> -L/
>> >> >> usr/local/lib -L/usr/local/lib/python2.7/config -lpython2.7 -lutil
>> >> >> -lm
>> >> >> [root@freebsd0 ~/wsgi/modwsgi/mod_wsgi]# make install
>> >> >> /usr/local/apache2/bin/apxs -c -I/usr/local/include/python2.7 -
>> >> >> DNDEBUG   wsgi_apache.c wsgi_convert.c wsgi_validate.c -L/usr/local/
>> >> >> lib -L/usr/local/lib/python2.7/config -lpython2.7 -lutil -lm
>> >> >> /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -
>> >> >> std=gnu99 -prefer-pic    -g -O2 -I/usr/local/apache2/include
>> >> >>  -I/usr/
>> >> >> local/include/apr-1   -I/usr/local/include/apr-1
>> >> >> -I/usr/local/include -
>> >> >> I/usr/local/include/db42 -I/usr/local/include/python2.7 -DNDEBUG  -c
>> >> >> -
>> >> >> o wsgi_apache.lo wsgi_apache.c && touch wsgi_apache.slo
>> >> >> /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -
>> >> >> std=gnu99 -prefer-pic    -g -O2 -I/usr/local/apache2/include
>> >> >>  -I/usr/
>> >> >> local/include/apr-1   -I/usr/local/include/apr-1
>> >> >> -I/usr/local/include -
>> >> >> I/usr/local/include/db42 -I/usr/local/include/python2.7 -DNDEBUG  -c
>> >> >> -
>> >> >> o wsgi_convert.lo wsgi_convert.c && touch wsgi_convert.slo
>> >> >> /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -
>> >> >> std=gnu99 -prefer-pic    -g -O2 -I/usr/local/apache2/include
>> >> >>  -I/usr/
>> >> >> local/include/apr-1   -I/usr/local/include/apr-1
>> >> >> -I/usr/local/include -
>> >> >> I/usr/local/include/db42 -I/usr/local/include/python2.7 -DNDEBUG  -c
>> >> >> -
>> >> >> o wsgi_validate.lo wsgi_validate.c && touch wsgi_validate.slo
>> >> >> /usr/local/share/apr/build-1/libtool --silent --mode=link cc -
>> >> >> std=gnu99 -o wsgi_apache.la  -rpath /usr/local/apache2/modules
>> >> >> -module
>> >> >> -avoid-version    wsgi_validate.lo wsgi_convert.lo wsgi_apache.lo
>> >> >> -L/
>> >> >> usr/local/lib -L/usr/local/lib/python2.7/config -lpython2.7 -lutil
>> >> >> -lm
>> >> >> /usr/local/apache2/bin/apxs -i -S LIBEXECDIR=/usr/local/apache2/
>> >> >> modules -n 'mod_wsgi' mod_wsgi.la
>> >> >> /usr/local/apache2/build/instdso.sh
>> >> >> SH_LIBTOOL='/usr/local/share/apr/
>> >> >> build-1/libtool' mod_wsgi.la /usr/local/apache2/modules
>> >> >> /usr/local/share/apr/build-1/libtool --mode=install install
>> >> >> mod_wsgi.la /usr/local/apache2/modules/
>> >> >> libtool: install: `mod_wsgi.la' is not a valid libtool archive
>> >> >> libtool: install: Try `libtool --help --mode=install' for more
>> >> >> information.
>> >> >> apxs:Error: Command failed with rc=65536
>> >> >> .
>> >> >> *** Error code 1
>> >> >>
>> >> >> Stop in /root/wsgi/modwsgi/mod_wsgi.
>> >> >> [root@freebsd0 ~/wsgi/modwsgi/mod_wsgi]# ls .libs
>> >> >>
>> >> >> wsgi_apache.a        wsgi_apache.la        wsgi_apache.lai
>> >> >>  wsgi_apache.o
>> >> >> wsgi_apache.so        wsgi_convert.o        wsgi_validate.o
>> >> >> [root@freebsd0 ~/wsgi/modwsgi/mod_wsgi]#
>> >> >>
>> >> >> From what I can deduct, mod_wsgi.la seems to be missing in the
>> >> >> .libs,
>> >> >> which I think isn't supposed to happen.
>> >> >> Can't say I've got enough experience to figure out myself as to why
>> >> >> this is happening.
>> >> >>
>> >> >> Could anyone assist me in this matter?
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "modwsgi" group.
>> >> > To view this discussion on the web visit
>> >> > https://groups.google.com/d/msg/modwsgi/-/4RFmNzJbatkJ.
>> >> >
>> >> > To post to this group, send email to [email protected].
>> >> > To unsubscribe from this group, send email to
>> >> > [email protected].
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/modwsgi?hl=en.
>> >>
>> >
>> > --
>> > Adam Stein @ HCL America Inc.        Email: [email protected]
>> >
>> > Disclaimer: Any/All views expressed
>> > here have been proven to be my own.  [http://www.csh.rit.edu/~adam/]
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "modwsgi" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/modwsgi?hl=en.
>> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/modwsgi/-/aKfMOruLNEIJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to