<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>33282</bug_id>
          
          <creation_ts>2017-03-25 09:00:08 +0300</creation_ts>
          <short_desc>Паразитарная вставка в agent_trap.h и snmp_agent.h</short_desc>
          <delta_ts>2017-03-27 14:48:19 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>389-ds-base</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Stanislav Levin">slev</assigned_to>
          <cc>cas</cc>
    
    <cc>slev</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>162756</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2017-03-25 09:00:08 +0300</bug_when>
    <thetext>При сборке 389-ds-base обнаружилось, что /usr/include/net-snmp/agent/agent_trap.h
содержит паразитарные 

extern long snmp_enableauthentraps;
extern int snmp_enableauthentrapsset;

extern const oid       snmptrap_oid[];
extern const oid       sysuptime_oid[];
extern const size_t    snmptrap_oid_len;
extern const size_t    sysuptime_oid_len;

(которых в оригинальном .h-файле нет), что приводит к конфликтам типов:
In file included from ldap/servers/snmp/main.c:20:0:
ldap/servers/snmp/ldap-agent.h:126:21: error: conflicting types for &apos;snmptrap_oid&apos;
     extern oid      snmptrap_oid[];
                     ^~~~~~~~~~~~
In file included from /usr/include/net-snmp/agent/net-snmp-agent-includes.h:17:0,
                 from ldap/servers/snmp/ldap-agent.h:43,
                 from ldap/servers/snmp/main.c:20:
/usr/include/net-snmp/agent/agent_trap.h:16:24: note: previous declaration of &apos;snmptrap_oid&apos; was here
 extern const oid       snmptrap_oid[];
                        ^~~~~~~~~~~~

В p7 и в сборке Fedora такой вставки нет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162757</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2017-03-25 09:03:08 +0300</bug_when>
    <thetext>Обнаруженные вставки:
agent/snmp_agent.h:50:    extern const oid version_sysoid[];
agent/snmp_agent.h:51:    extern const int version_sysoid_len;
agent/agent_trap.h:16:extern const oid       snmptrap_oid[];
agent/agent_trap.h:17:extern const oid       sysuptime_oid[];
agent/agent_trap.h:18:extern const size_t    snmptrap_oid_len;
agent/agent_trap.h:19:extern const size_t    sysuptime_oid_len;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162764</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2017-03-27 12:15:38 +0300</bug_when>
    <thetext>На 389-ds-base</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162771</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-03-27 14:48:19 +0300</bug_when>
    <thetext>389-ds-base-1.3.6.3-alt1 -&gt; sisyphus:

* Mon Mar 27 2017 Andrey Cherepanov &lt;cas@altlinux&gt; 1.3.6.3-alt1
- New version
- Fix type conflict for snmptrap_oid and snmptrap_oid_len (ALT #33282)

* Sat Mar 18 2017 Andrey Cherepanov &lt;cas@altlinux&gt; 1.3.6.2-alt1
- New version</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>