Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Feb 2015 19:02:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 197330] devel/libcli: needs -Werror flag removed for DragonFly support
Message-ID:  <bug-197330-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197330

            Bug ID: 197330
           Summary: devel/libcli: needs -Werror flag removed for DragonFly
                    support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tj@FreeBSD.org
          Reporter: marino@FreeBSD.org
          Assignee: tj@FreeBSD.org
             Flags: maintainer-feedback?(tj@FreeBSD.org)

on the libcli port, the Makefile was patched, specifically this line

-CFLAGS += $(DEBUG) $(OPTIM) -Wall -std=c99 -pedantic -Wformat-security
-Wno-format-zero-length -Werror -Wwrite-strings -Wformat
-fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align
-Wno-unused-parameter
+CFLAGS += -Wall -Wformat-security -Wno-format-zero-length -Werror
-Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wsign-compare
-Wcast-align -Wno-unused-parameter


The "-Werror" flag should have been removed as well.  ON DragonFly:

cc  -pipe -O2 -fno-strict-aliasing -Wall -Wformat-security
-Wno-format-zero-length -Werror -Wwrite-strings -Wformat
-fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align
-Wno-unused-parameter -fPIC -o clitest.o -c clitest.c
In file included from libcli.c:13:0:
/usr/include/malloc.h:2:2: error: #warning "this file includes <malloc.h> which
is deprecated, use <stdlib.h> instead" [-Werror=cpp]
cc1: all warnings being treated as errors
Makefile:32: recipe for target 'libcli.o' failed


portmgr has issued a blanket to remove Werror as a rule (fyi) because in almost
every cause the warning should not prevent the build from succeeding.

Can the patch be updated to remove -Werror too?

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer tj@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197330-13>