Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2015 09:11:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 197785] security/libssh : won't build with -Wpedantic on gcc-5
Message-ID:  <bug-197785-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 197785
           Summary: security/libssh : won't build with -Wpedantic on gcc-5
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: fluffy@FreeBSD.org
          Reporter: marino@FreeBSD.org
             Flags: maintainer-feedback?(fluffy@FreeBSD.org)
          Assignee: fluffy@FreeBSD.org

gcc-5 adjusted the gcc interpretation of pedantic, which libssh violates (see
below).  Is there a fix upstream?  Or should -Werror or -Wpedantic flag be
removed?


--- src/CMakeFiles/ssh_static.dir/agent.c.o ---
In file included from
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:53:0:
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c: In function
'ssh_set_agent_channel':
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:200:33: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__)
                                 ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:181:5: note: in
expansion of macro 'ssh_set_error'
     ssh_set_error(session, SSH_REQUEST_DENIED, "Session has no active agent");
     ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c: In function
'agent_talk':
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:260:3: note: in
expansion of macro 'SSH_LOG'
   SSH_LOG(SSH_LOG_TRACE, "Request length: %u", len);
   ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:267:7: note: in
expansion of macro 'SSH_LOG'
       SSH_LOG(SSH_LOG_WARN, "atomicio sending request failed: %s",
       ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:272:5: note: in
expansion of macro 'SSH_LOG'
     SSH_LOG(SSH_LOG_WARN,
     ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:280:5: note: in
expansion of macro 'SSH_LOG'
     SSH_LOG(SSH_LOG_WARN, "atomicio read response length failed: %s",
     ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:200:33: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__)
                                 ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:287:5: note: in
expansion of macro 'ssh_set_error'
     ssh_set_error(session, SSH_FATAL,
     ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:291:3: note: in
expansion of macro 'SSH_LOG'
   SSH_LOG(SSH_LOG_TRACE, "Response length: %u", len);
   ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:299:7: note: in
expansion of macro 'SSH_LOG'
       SSH_LOG(SSH_LOG_WARN,
       ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:304:7: note: in
expansion of macro 'SSH_LOG'
       SSH_LOG(SSH_LOG_WARN, "Not enough space");
       ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c: In function
'ssh_agent_get_ident_count':
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:207:31: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error_oom(error, __FUNCTION__)
                               ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:337:7: note: in
expansion of macro 'ssh_set_error_oom'
       ssh_set_error_oom(session);
       ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:207:31: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error_oom(error, __FUNCTION__)
                               ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:341:7: note: in
expansion of macro 'ssh_set_error_oom'
       ssh_set_error_oom(session);
       ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:200:33: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__)
                                 ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:349:5: note: in
expansion of macro 'ssh_set_error'
     ssh_set_error(session, SSH_FATAL, "Not enough space");
     ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:200:33: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__)
                                 ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:363:5: note: in
expansion of macro 'ssh_set_error'
     ssh_set_error(session, SSH_FATAL,
     ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:369:3: note: in
expansion of macro 'SSH_LOG'
   SSH_LOG(SSH_LOG_WARN,
   ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:200:33: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__)
                                 ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:377:7: note: in
expansion of macro 'ssh_set_error'
       ssh_set_error(session, SSH_FATAL,
       ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:385:3: note: in
expansion of macro 'SSH_LOG'
   SSH_LOG(SSH_LOG_DEBUG, "Agent count: %d",
   ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:200:33: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__)
                                 ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:388:5: note: in
expansion of macro 'ssh_set_error'
     ssh_set_error(session, SSH_FATAL,
     ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c: In function
'ssh_agent_sign_data':
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:182:24: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
                        ^
/wrkdirs/security/libssh/work/libssh-0.6.3/src/agent.c:560:9: note: in
expansion of macro 'SSH_LOG'
         SSH_LOG(SSH_LOG_WARN, "Agent reports failure in signing the key");
         ^
/wrkdirs/security/libssh/work/libssh-0.6.3/include/libssh/priv.h:200:33: error:
ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__)
                                 ^

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer fluffy@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-197785-13>