[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Build problems under Ubuntu

From: Peter Spiess-Knafl
Subject: Re: [libmicrohttpd] Build problems under Ubuntu
Date: Fri, 31 Oct 2014 18:56:05 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.1.2


I managed to fix this copying the required includes from the latest libmicrohttpd package found in debian testing. It works fine now.

Code can be found here:

I am talking about the first few lines:

#include <stdarg.h>
#include <stdint.h>
#include <sys/types.h>
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <ws2tcpip.h>
#if defined(_MSC_FULL_VER) && !defined (_SSIZE_T_DEFINED)
typedef intptr_t ssize_t;
#endif // !_SSIZE_T_DEFINED */
#include <unistd.h>
#include <sys/time.h>
#include <sys/socket.h>


On 10/30/2014 09:48 PM, Piotr Grzybowski wrote:
hi Peter, hi Christian, hi everyone ;-)

 just in passing: do you have stddef.h included somewhere possibly
with using namespace std? one thing is sized-int types but for me a
more serious problem is the apparent lack of size_t definition.


On Thu, Oct 30, 2014 at 1:26 AM, Peter Spiess-Knafl <address@hidden> wrote:

I built a JSON-RPC framework which I currently try to move from mongoose
to libmicrohttpd.

Everything builds fine under Debian Jessie. But on the travis-ci agent,
which runs Ubuntu 12.04 Server I get the following compile error:

/usr/include/microhttpd.h:497:3: error: unknown type name 'intptr_t'

Build log can be found here:

The corresponding source code can be found here:

Has anyone any ideas on that?

Thanks in advance,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]