csnippets-bugs
[Top][All Lists]
Advanced

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

Re: [Csnippets-bugs] Build fails in FreeBSD 9.1 and NetBSD 6.0.1


From: Allan Ference
Subject: Re: [Csnippets-bugs] Build fails in FreeBSD 9.1 and NetBSD 6.0.1
Date: Mon, 5 Aug 2013 20:05:09 +0200

Hi,

On Mon, Aug 5, 2013 at 7:37 PM, Ernesto Celis <address@hidden> wrote:
Hi, a few weeks ago I did a clone from Sahvanna repo and tried to build
in both FreeBSD and NetBSD systems, I had to tweak build.sh a little so
it works in these two systems but build still fails. Let me know if you
like patch attachments or any other form to send you the small changes I
did in build.sh and any future contribution.

Sure, please do so, but not in this thread, go for the dev mailing list. 
FreeBSD fails with cc1: error: unrecognized command line option
"-Wno-unused-result" at 11% build when trying to compile buffer.c and
asprintf.c I'm sure this one has easy fix but I'm not familiar with
cmake yet so I couldn't find where the -Wno-unused-result is set in the
CmakeList.txt files.

It's set in src/CMakeLists.txt search for "WARN_FLAGS" .  See if you can find a replacement for it, if not, just remove it.
GCC is 4.2.1 in a vanilla FreeBSD 9.1 install

NetBSD GCC 4.5 build stops at 17% with following errors:

/arpa/af/e/ecelis/Software/src/csnippets/src/event.c:17:3: error:
redefinition o
f typedef ‘event_t’
/arpa/af/e/ecelis/Software/src/csnippets/src/../csnippets/event.h:12:22:
note: p
revious declaration of ‘event_t’ was here
/arpa/af/e/ecelis/Software/src/csnippets/src/buffer.c:10:3: error:
redefinition of typedef ‘buffer_t’
/arpa/af/e/ecelis/Software/src/csnippets/src/../csnippets/buffer.h:8:23:
note: p
revious declaration of ‘buffer_t’ was here

Hmm, those errors are quite odd...  Since I just forward declare in the headers (buffer.h, event.h) and then define in the sources (to get a hidden definition). 

--
             SDF Public Access UNIX System
http://ecelis.sdf.org - gopher://sdf.org/1/users/ecelis
      +1 206-299-2120 ext.1106 - C*Net 1-333-1106

If you submit patches, please make sure you sign them off.

Cheers,
Allan

reply via email to

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