add fcgi-2.4.0 package to buildroot
Hi at all
I'm trying to add the fcgi-2.4.0 package to buildroot. I'm new in doing this.
For my advantage this package works already with automake/autoconfig.
I added the package with the help from this side:
http://buildroot.uclibc.org/buildroot.html#autotools-tutorial
Here is my libfcgi.mk file:
############################################################################
##
#
# libfcgi
#
# makefile for automake/autoconf by Rico Bachmann
#############################################################################
##
LIBFCGI_VERSION = 2.4.0
LIBFCGI_SOURCE = fcgi-$(LIBFCGI_VERSION).tar.gz
LIBFCGI_SITE = http://www.fastcgi.com/dist
LIBFCGI_INSTALL_STAGING = YES
LIBFCGI_INSTALL_TARGET= YES
LIBFCGI_CONF_OPT = --enable-shared$(eval $(call AUTOTARGETS,package,libfcgi))
and here is my Config.in file:
config BR2_PACKAGE_LIBFCGI
bool "libfcgi"
help
This is a fcgi developer
librarz to use in C.
http://www.fastcgi.com/
My problem is if i try to build my rootfs with this packag, i got some errors, and i don't see how to fix them.
Here is my output from the make (the last lines):
Making all in cgi-fcgi
make[3]: Entering directory
`/mnt/clfs/buildroot-2011.08/output/build/libfcgi-2.4.0/cgi-fcgi'
source='cgi-fcgi.c' object='cgi-fcgi.o' libtool=no \
depfile='.deps/cgi-fcgi.Po'tmpdepfile='.deps/cgi-fcgi.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
/mnt/clfs/buildroot-2011.08/output/host/usr/bin/arm-unknown-linux-uclibcgnue
abi-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pipe -Os -Wall -ctest -f cgi-fcgi.c || echo './'cgi-fcgi.c
/bin/sh ../libtool --mode=link
/mnt/clfs/buildroot-2011.08/output/host/usr/bin/arm-unknown-linux-uclibcgnue
abi-gcc -pipe -Os -Wall -o cgi-fcgi cgi-fcgi.o ../libfcgi/libfcgi.la
-lnsl
mkdir .libs
/mnt/clfs/buildroot-2011.08/output/host/usr/bin/arm-unknown-linux-uclibcgnue abi-gcc -pipe -Os -Wall -o .libs/cgi-fcgi cgi-fcgi.o ../libfcgi/.libs/libfcgi.so -lnsl
../libfcgi/.libs/libfcgi.so: warning: gethostbyname is
obsolescent, use getnameinfo() instead.
../libfcgi/.libs/libfcgi.so: undefined reference to `frexp'
collect2: ld returned 1 exit status
make[3]: *** [cgi-fcgi] Fehler 1
make[3]: Leaving directory
`/mnt/clfs/buildroot-2011.08/output/build/libfcgi-2.4.0/cgi-fcgi'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory
`/mnt/clfs/buildroot-2011.08/output/build/libfcgi-2.4.0'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory
`/mnt/clfs/buildroot-2011.08/output/build/libfcgi-2.4.0'
make: ***
[/mnt/clfs/buildroot-2011.08/output/build/libfcgi-2.4.0/.stamp_built] Fehler 2
if it would help i can upload the hole output from make.
I see that i need the 'frexp' but how do i link this? If I'm not wrong, thats a function of math.h
And are there some other errors i don't see myself? I'm happy about every hint.
greez bluefire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110916/8713a057/attachment-0001.html>
Hello,
The global formatting of your e-mail is terrible. You should fix your e-mail client.
Le Fri, 16 Sep 2011 17:33:47 +0200,
"Rico Bachmann" <[email protected]> a ?crit :
Quoted 5 lines
LIBFCGI_VERSION= 2.4.0LIBFCGI_SOURCE= fcgi-$(LIBFCGI_VERSION).tar.gzLIBFCGI_SITE= http://www.fastcgi.com/dist
LIBFCGI_INSTALL_STAGING= YES LIBFCGI_INSTALL_TARGET= YES
This last line is not needed.
Quoted 1 line
LIBFCGI_CONF_OPT = --enable-shared
This is not needed.
Quoted 9 lines
/mnt/clfs/buildroot-2011.08/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -pipe -Os -Wall -o .libs/cgi-fcgi cgi-fcgi.o ../libfcgi/.libs/libfcgi.so -lnsl../libfcgi/.libs/libfcgi.so: warning: gethostbyname is
obsolescent, usegetnameinfo()instead.../libfcgi/.libs/libfcgi.so: undefined reference to
`frexp'
Looks like it forgets to link against the math library, i.e -lm is missing from the link command line. Probably something not completely correct in fcgi build system.
Regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 21 lines
-----Urspr?ngliche Nachricht-----
Von: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
Gesendet: Freitag, 16. September 2011 18:44
An: buildroot at busybox.net
Cc: bachmann at tofwerk.com
Betreff: Re: [Buildroot] add fcgi-2.4.0 package to buildrootHello,
The global formatting of your e-mail is terrible. You should fix your e-mail client.
Le Fri, 16 Sep 2011 17:33:47 +0200,
"Rico Bachmann" <[email protected]> a ?crit :Quoted 5 lines
LIBFCGI_VERSION= 2.4.0LIBFCGI_SOURCE= fcgi-$(LIBFCGI_VERSION).tar.gzLIBFCGI_SITE= http://www.fastcgi.com/dist
LIBFCGI_INSTALL_STAGING= YES LIBFCGI_INSTALL_TARGET= YES
Quoted 5 lines
This last line is not needed.
Quoted 1 line
LIBFCGI_CONF_OPT = --enable-sharedThis is not needed.
I've deleted this 2 lines.
Quoted 17 lines
Quoted 2 lines
/mnt/clfs/buildroot-2011.08/output/host/usr/bin/arm-unknown-linux-uclibcgnue
Quoted 4 lines
abi-gcc -pipe -Os -Wall -o .libs/cgi-fcgi cgi-fcgi.o ../libfcgi/.libs/libfcgi.so -lnsl
../libfcgi/.libs/libfcgi.so: warning: gethostbyname
is
Quoted 4 lines
obsolescent, use
getnameinfo()instead.../libfcgi/.libs/libfcgi.so: undefined reference to
`frexp'Looks like it forgets to link against the math library, i.e -lm is missing from the link command line. Probably something not completely correct in fcgi build system.
Quoted 8 lines
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux development, consulting, training and support.
http://free-electrons.com
If I see this right, I have to patch the buildsystem from the original fcgi package? Then I could add the link to the math library and add the -lm to the command? Is that the right way to go? Or didn't I understood you right?
I'm now try to understand the automake files of the fcgi.
Greetings Bluefire
Mit freundlichen Gr?ssen
Tofwerk AG, Rico Bachmann
+41 33 511 11 69
bachmann at tofwerk.com
http://www.tofwerk.com
Uttigenstrasse 22
CH - 3600 Thun
Le Mon, 19 Sep 2011 16:14:45 +0200,
"Rico Bachmann" <[email protected]> a ?crit :
Quoted 2 lines
If I see this right, I have to patch the buildsystem from the original fcgi package?
Yes, probably. Or sometimes a workaround can be done in the package .mk file. It depends on what the workaround is :)
Quoted 5 lines
Then I could add the link to the math library
and add the -lm to the command? Is that the right way to go? Or didn't I understood you right?I'm now try to understand the automake files of the fcgi.
Can you post a proper patch (sent with git send-email so that it doesn't get screwed up by your e-mail client) so that we can test and help you in fixing the problem?
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Am 19.09.2011, 22:46 Uhr, schrieb Thomas Petazzoni <[email protected]>:
Quoted 8 lines
Can you post a proper patch (sent with git send-email so that it doesn't get screwed up by your e-mail client) so that we can test and help you in fixing the problem?
Thanks!
Thomas
As soon as I've done a proper patch, i will send it. But I could use a moment. I'm really a newbie in that section
Am 21.09.2011, 11:29 Uhr, schrieb Rico Bachmann
<[email protected]>:
Quoted 7 lines
Am 19.09.2011, 22:46 Uhr, schrieb Thomas Petazzoni <[email protected]>:
Quoted 5 lines
Can you post a proper patch (sent with git send-email so that it doesn't get screwed up by your e-mail client) so that we can test and help you in fixing the problem?
Quoted 6 lines
Quoted 3 lines
Thanks!
Thomas
As soon as I've done a proper patch, i will send it. But I could use a moment. I'm really a newbie in that section
Is there a good tutorial to use git send-email, at the moment i have a patch
that allows me to build my rootfs with the libfcgi.
I attached the patches without git send-email. I hope it's not totaly screwed up.
How can i use the patch automatically in buildroot?
it should patch the make files from the libfcgi package after extracting them from the tarball.
At the moment I run make, wait for the error, patch the files, run make again...
I think i have to add some commands in the libfcgi.mk file.
And should I commit my integration of libfcgi to the buildroot project? Maybe there are other people that like to compile some fcgi applications directly on the embedded system.
Greez
Rico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fcgiex.patch
Type: application/octet-stream
Size: 419 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110928/d83722e9/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fcgicf.patch
Type: application/octet-stream
Size: 393 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110928/d83722e9/attachment-0001.obj>
Quoted 14 lines · Rico Bachmann
Am 21.09.2011, 11:29 Uhr, schrieb Rico Bachmann
<[email protected]>:Quoted 11 lines
Am 19.09.2011, 22:46 Uhr, schrieb Thomas Petazzoni <[email protected]>:
Quoted 8 lines
Can you post a proper patch (sent with git send-email so that it doesn't get screwed up by your e-mail client) so that we can test and help you in fixing the problem?
Thanks!
Thomas
Quoted 9 lines
Quoted 2 lines
As soon as I've done a proper patch, i will send it. But I could use a moment. I'm really a newbie in that section
Is there a good tutorial to use git send-email, at the moment i have a patch
that allows me to build my rootfs with the libfcgi.
I attached the patches without git send-email.
I hope it's not totaly screwed up.
You might want to check the contents of the patch files attached to your post. ;-)
Unless you intended to send two, one-line, patches - something is missing from each.
Mike
Quoted 14 lines
How can i use the patch automatically in buildroot?
it should patch the make files from the libfcgi package after extracting them from the tarball.
At the moment I run make, wait for the error, patch the files, run make again...
I think i have to add some commands in the libfcgi.mk file.And should I commit my integration of libfcgi to the buildroot project? Maybe there are other people that like to compile some fcgi applications directly on the embedded system.
Greez
Rico
Am 28.09.2011, 13:03 Uhr, schrieb Michael S. Zick
<[email protected]>:
Quoted 25 lines · Rico Bachmann
Quoted 14 lines
Am 21.09.2011, 11:29 Uhr, schrieb Rico Bachmann
<[email protected]>:Quoted 11 lines
Am 19.09.2011, 22:46 Uhr, schrieb Thomas Petazzoni <[email protected]>:
Quoted 8 lines
Can you post a proper patch (sent with git send-email so that it doesn't get screwed up by your e-mail client) so that we can test and help you in fixing the problem?
Thanks!
Thomas
Quoted 9 lines
Quoted 2 lines
As soon as I've done a proper patch, i will send it. But I could use a moment. I'm really a newbie in that section
Is there a good tutorial to use git send-email, at the moment i have a patch
that allows me to build my rootfs with the libfcgi.
I attached the patches without git send-email.
I hope it's not totaly screwed up.
Quoted 7 lines
You might want to check the contents of the patch files attached to your post. ;-)
Unless you intended to send two, one-line, patches - something is missing from each.
Mike
I created the patches with this command:
diff -u path/originalfile path/newfile > mypatch.patch
there should be everything needed in the file content.
at least they're working fine for me, i can use the patches wih this command:
patch p0 -i mypatch.patch
and it is only one-line per patch i have to change.
It's the missing link to the math library by the LDFLAGS which wasn't set.
Rico
Quoted 14 lines
Quoted 14 lines
How can i use the patch automatically in buildroot?
it should patch the make files from the libfcgi package after extracting them from the tarball.
At the moment I run make, wait for the error, patch the files, run make again...
I think i have to add some commands in the libfcgi.mk file.And should I commit my integration of libfcgi to the buildroot project? Maybe there are other people that like to compile some fcgi applications directly on the embedded system.
Greez
Rico
Quoted 40 lines · Rico Bachmann
Am 28.09.2011, 13:03 Uhr, schrieb Michael S. Zick
<[email protected]>:Quoted 25 lines · Rico Bachmann
Quoted 14 lines
Am 21.09.2011, 11:29 Uhr, schrieb Rico Bachmann
<[email protected]>:Quoted 11 lines
Am 19.09.2011, 22:46 Uhr, schrieb Thomas Petazzoni <[email protected]>:
Quoted 8 lines
Can you post a proper patch (sent with git send-email so that it doesn't get screwed up by your e-mail client) so that we can test and help you in fixing the problem?
Thanks!
Thomas
Quoted 9 lines
Quoted 2 lines
As soon as I've done a proper patch, i will send it. But I could use a moment. I'm really a newbie in that section
Is there a good tutorial to use git send-email, at the moment i have a patch
that allows me to build my rootfs with the libfcgi.
I attached the patches without git send-email.
I hope it's not totaly screwed up.Quoted 7 lines
You might want to check the contents of the patch files attached to your post. ;-)
Unless you intended to send two, one-line, patches - something is missing from each.
Mike
I created the patches with this command:
diff -u path/originalfile path/newfile > mypatch.patch
Quoted 9 lines
there should be everything needed in the file content.
at least they're working fine for me, i can use the patches wih this command:patch p0 -i mypatch.patch
and it is only one-line per patch i have to change.
It's the missing link to the math library by the LDFLAGS which wasn't set.
My bad, I thought the patches where the topic line of this thread.
Thread topic reads: "add fcgi-2.4.0 package..."
Not: "correct fcgi-2.4.0 package..."
I will have to re-read the topic thread to see where it got hijacked.
Mike
Quoted 23 lines
Rico
Quoted 8 lines
Quoted 8 lines
How can i use the patch automatically in buildroot?
it should patch the make files from the libfcgi package after extracting them from the tarball.
At the moment I run make, wait for the error, patch the files, run make again...
I think i have to add some commands in the libfcgi.mk file.Quoted 6 lines
Quoted 6 lines
And should I commit my integration of libfcgi to the buildroot project? Maybe there are other people that like to compile some fcgi applications directly on the embedded system.
Greez
Rico_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Am 28.09.2011, 13:33 Uhr, schrieb Michael S. Zick
<[email protected]>:
Quoted 55 lines · Rico Bachmann
Quoted 47 lines
Am 28.09.2011, 13:03 Uhr, schrieb Michael S. Zick
<[email protected]>:Quoted 6 lines · Rico Bachmann
Quoted 5 lines
Am 21.09.2011, 11:29 Uhr, schrieb Rico Bachmann <[email protected]>:
Quoted 2 lines
Am 19.09.2011, 22:46 Uhr, schrieb Thomas Petazzoni
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Can you post a proper patch (sent with git send-email so that it doesn't get screwed up by your e-mail client) so that we can test
and
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines
help you in fixing the problem?
Thanks!
Thomas
As soon as I've done a proper patch, i will send it. But I could use a moment. I'm really a newbie in that section
Is there a good tutorial to use git send-email, at the moment i have
a
Quoted 6 lines
Quoted 5 lines
patch
that allows me to build my rootfs with the libfcgi. I attached the patches without git send-email. I hope it's not totaly screwed up.Quoted 7 lines
You might want to check the contents of the patch files attached to your post. ;-)
Unless you intended to send two, one-line, patches - something is missing from each.
Mike
I created the patches with this command:
diff -u path/originalfile path/newfile > mypatch.patch
there should be everything needed in the file content.
at least they're working fine for me, i can use the patches wih this command:Quoted 6 lines
patch p0 -i mypatch.patch
and it is only one-line per patch i have to change.
It's the missing link to the math library by the LDFLAGS which wasn't set.
Quoted 8 lines
My bad, I thought the patches where the topic line of this thread.
Thread topic reads: "add fcgi-2.4.0 package..."
Not: "correct fcgi-2.4.0 package..."I will have to re-read the topic thread to see where it got hijacked.
Mike
If I manage my two patches to automatically run from buildroot I can create and upload a patchfile which add the hole package. But at this moment i don't really know how to do that. Because I am new to the buildroot developing.
Quoted 27 lines
Quoted 27 lines
Rico
Quoted 3 lines
Quoted 3 lines
How can i use the patch automatically in buildroot? it should patch the make files from the libfcgi package after
extracting
Quoted 2 lines
Quoted 2 lines
them from the tarball.
At the moment I run make, wait for the error, patch the files, runmake
Quoted 4 lines
Quoted 4 lines
again...
I think i have to add some commands in the libfcgi.mk file.And should I commit my integration of libfcgi to the buildroot
project?
Quoted 1 line
Quoted 1 line
Maybe there are other people that like to compile some fcgi
applications
Quoted 4 lines
Quoted 4 lines
directly on the embedded system.
Greez
Rico_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Erstellt mit Operas revolution?rem E-Mail-Modul: http://www.opera.com/mail/
Le Wed, 28 Sep 2011 12:18:51 +0200,
"Rico Bachmann" <[email protected]> a ?crit :
Quoted 5 lines
Is there a good tutorial to use git send-email, at the moment i have a patch
that allows me to build my rootfs with the libfcgi.
I attached the patches without git send-email. I hope it's not totaly screwed up.
You can read
http://lists.busybox.net/pipermail/buildroot/2010-December/039181.html
for a very basic introduction on how to contribute to Buildroot using git.
Regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Am 28.09.2011, 14:16 Uhr, schrieb Thomas Petazzoni <[email protected]>:
Quoted 9 lines
Le Wed, 28 Sep 2011 12:18:51 +0200,
"Rico Bachmann" <[email protected]> a ?crit :Quoted 5 lines
Is there a good tutorial to use git send-email, at the moment i have a patch
that allows me to build my rootfs with the libfcgi.
I attached the patches without git send-email. I hope it's not totaly screwed up.
Quoted 8 lines
You can read
http://lists.busybox.net/pipermail/buildroot/2010-December/039181.html
for a very basic introduction on how to contribute to Buildroot using git.Regards,
Thomas
I'm now working with this link.
But I'm stock at this point:
after I did this cmd:
git format-patch HEAD
i try to do this cmd:
git send-email --to buildroot at uclibc.org --compose *.patch
the problem is, after git format-patch HEAD, i can't find any created patch!
Le Wed, 28 Sep 2011 15:36:15 +0200,
"Rico Bachmann" <[email protected]> a ?crit :
Quoted 3 lines
after I did this cmd:
git format-patch HEAD
That line is wrong, you should do:
git format-patch master
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com