LIBS="-ldl -lpthread"
or "LIBS=-ldl" CFLAGS="-DNO_THREADS"
On Thu, Aug 28, 2008 at 8:27 PM, Peda, Allan (NYC-GIS) <
[EMAIL PROTECTED]> wrote:
> I received a pthreaqd error running make for RedHat EL 5,
>
> [EMAIL PROTECTED] src]$ LIBS="-ldl" make unix
> cc standalone.c -o shttpd -ldl -L. -lshttpd
> ./libshttpd.a(shttpd.o): In function `set_workers':
> shttpd.c:(.text+0x480f): undefined reference to `pthread_create'
> collect2: ld returned 1 exit status
> make: *** [unix] Error 1
>
> src]$ !uname
> uname -srvp
> Linux 2.6.18-92.1.6.el5 #1 SMP Fri Jun 20 02:36:06 EDT 2008 x86_64
>
> This fixed it:
>
> src]$ LIBS="-lpthread -ldl" make unix
> cc standalone.c -o shttpd -lpthread -ldl -L. -lshttpd
> src]$
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, August 28, 2008 11:52 AM
> To: [email protected]
> Subject: shttpd-general Digest, Vol 24, Issue 7
>
> Send shttpd-general mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/shttpd-general
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of shttpd-general digest..."
>
>
> Today's Topics:
>
> 1. SHTTPD version 1.42 - cannot run as a service
> (Peda, Allan (NYC-GIS))
> 2. TR: Remark + Question (LAVIER Bruno)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 28 Aug 2008 11:21:27 -0400
> From: "Peda, Allan (NYC-GIS)" <[EMAIL PROTECTED]>
> Subject: [shttpd-general] SHTTPD version 1.42 - cannot run as a
> service
> To: <[email protected]>
> Message-ID:
>
> <[EMAIL PROTECTED]
> m>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
>
>
> I just tried to install shttpd 1.42 on windows server 2003 and on my
> local XP box, and I had mixed results. I could run it manually, but if
> I tried to run the service, it just kept terminating. The only message
> I could find in the event viewer was:
>
>
>
> The SHTTPD 1.42 service terminated unexpectedly. It has done this 1
> time(s).
>
>
>
> So I grabbed version 1.41, removed 1.42 using the uninstaller, and that
> dropped in the new one without a hitch.
>
>
>
> I made it into a service using sc.exe
>
> sc create "SHTTPD 1.41" binpath= "C:\shttpd-1.41\shttpd.exe shttpd.conf"
>
>
>
> Anyone else having this problem?
>
>
>
> Allan
>
>
>
>
>
> This message contains information which may be confidential and
> privileged.
> Unless you are the intended recipient (or authorized to receive this
> message
> for the intended recipient), you may not use, copy, disseminate or
> disclose to
> anyone the message or any information contained in the message. If you
> have
> received the message in error, please advise the sender by reply e-mail,
> and
> delete the message. Thank you very much.
> (A)
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Thu, 28 Aug 2008 17:51:44 +0200
> From: "LAVIER Bruno" <[EMAIL PROTECTED]>
> Subject: [shttpd-general] TR: Remark + Question
> To: <[email protected]>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
>
>
> OK, I've found the problem.
>
>
>
> 1. SHTTPD and IE are running on the same PC (I've use the 127.0.0.1
> address).
> 2. On browser side, I'm using the XMLHttpRequest for FireFox and
> the Microsoft.XMLHTTP ActiveX on IE - with javascript.
> 3. I suppose that :
>
> a. The XMLHttpRequest is doing just one write on the TCP
> socket to send the POST Request on Firefox
> b. The Activex X is doing one write to send the request
> POST and the header and one other write to send the data (thus 2
> Ethernet frames are sent)
> c. On server side, the recv in fct read_socket
> (io_socket.c) retrieve only the data from the first write and not the
> data from the second one (if I put a breakpoint just before the recv =>
> it works !!!)
> => it's a timing problem.
>
> 4. I solve the problem by adding a Sleep(1) before the recv in
> read_socket => thus a reschedule occurs and during this time, the data
> from the second write are also received by the system => and when the
> recv occurs, the data from the second write are also consumed ...
>
>
>
> It works without this Sleep when the browser and the server are not on
> the same PC.
>
> Are you agree with this analysis ?
>
>
>
> Bruno.
>
>
>
> ________________________________
>
> De : LAVIER Bruno
> Envoy? : jeudi 28 ao?t 2008 16:04
> ? : '[email protected]'
> Objet : Remark + Question
>
>
>
> Hi,
>
>
>
> Thanks you for this works.
>
> I'm using SHTTPD in an MFC application and it works great !!!
>
>
>
> One remark:
>
> Freeing of the error handler is missing in shttpd_fini (join a patch).
>
>
>
> One question:
>
>
>
> I'm doing an application which sent POST request with a small amount of
> data to the server.
>
> When using Firefox, it works great.
>
> When using IE, it doesn't work.
>
>
>
> I think the reason is that Firefox send the POST request and data in the
> same ethernet frame as IE send the two frames: an HTTP frame with the
> headers and an HHTP frame with only the data.
>
> These observations were made with Ethereal by capturing the frames
> exchanges between Firefox and the server and IE and the server (not an
> SHTTPD server but a php server).
>
>
>
> So my question is: does SHTTPD handle these two cases? Is there an
> option to set?
>
>
>
> Thanks,
>
> Bruno.
>
>
>
>
>
>
>
>
>
> Bruno LAVIER
>
> Adeneo
>
> Adetel Group
>
> 2, chemin du Ruisseau
> 69134 ECULLY - FRANCE
> T?l. : +33 (0)4 72 18 57 73 - Fax : +33 (0)4 72 18 57 73 - Gsm : +33
> (0)6 23 39 00 41
>
> <http://www.adetelgroup.com/> www.adetelgroup.com
> <http://www.adetelgroup.com/>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: shttpd.c
> Type: application/octet-stream
> Size: 51485 bytes
> Desc: shttpd.c
>
> ------------------------------
>
> ------------------------------------------------------------------------
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
> ------------------------------
>
> _______________________________________________
> shttpd-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/shttpd-general
>
>
> End of shttpd-general Digest, Vol 24, Issue 7
> *********************************************
>
>
> This message contains information which may be confidential and privileged.
> Unless you are the intended recipient (or authorized to receive this
> message
> for the intended recipient), you may not use, copy, disseminate or disclose
> to
> anyone the message or any information contained in the message. If you
> have
> received the message in error, please advise the sender by reply e-mail,
> and
> delete the message. Thank you very much.
> (A)
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> shttpd-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/shttpd-general
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general