Bug 35969 - 389-ds-base build fails
Summary: 389-ds-base build fails
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libnet-snmp-devel (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Stanislav Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-24 17:48 MSK by Stanislav Levin
Modified: 2019-01-29 15:52 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Levin 2019-01-24 17:48:05 MSK
389-ds-base build fails with:
"""
In file included from ldap/servers/snmp/main.c:20:                              
ldap/servers/snmp/ldap-agent.h:128:12: error: conflicting types for snmptrap_oid
 extern oid snmptrap_oid[];                                                     
            ^~~~~~~~~~~~                                                        
In file included from /usr/include/net-snmp/agent/net-snmp-agent-includes.h:17, 
                 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 snmptrap_oid was here
 extern const oid       snmptrap_oid[];                                         
                        ^~~~~~~~~~~~                                            
In file included from ldap/servers/snmp/main.c:20:                              
ldap/servers/snmp/ldap-agent.h:129:15: error: conflicting type qualifiers for snmptrap_oid_len
 extern size_t snmptrap_oid_len;                                                
               ^~~~~~~~~~~~~~~~                                                 
In file included from /usr/include/net-snmp/agent/net-snmp-agent-includes.h:17, 
                 from ldap/servers/snmp/ldap-agent.h:43,                        
                 from ldap/servers/snmp/main.c:20:                              
/usr/include/net-snmp/agent/agent_trap.h:18:24: note: previous declaration of snmptrap_oid_len was here
 extern const size_t    snmptrap_oid_len;                                       
                        ^~~~~~~~~~~~~~~~                                        
make[1]: *** [Makefile:10170: ldap/servers/snmp/ldap_agent-main.o] Error 1      
make[1]: Leaving directory /usr/src/RPM/BUILD/389-ds-base-1.4.0.20
"""

This problem is related to:
https://sourceforge.net/p/net-snmp/code/ci/81b65f4d23a976d2106bbfc2262694c1c90f457c/tree/include/net-snmp/agent/agent_trap.h?diff=09a42c954593f70a09cc1b1925dde40891b0ac0b

bug is filed in upstream:
https://sourceforge.net/p/net-snmp/bugs/2831/

and has a fix.
Comment 2 Stanislav Levin 2019-01-24 19:49:11 MSK
The build is prepared http://git.altlinux.org/tasks/219939/
Waiting for completion of "big" Perl task.
Comment 3 Repository Robot 2019-01-29 15:04:13 MSK
net-snmp30-5.7.3-alt5 -> sisyphus:

Thu Jan 24 2019 Stanislav Levin <slev@altlinux> 5.7.3-alt5
- Applied patches from upstream (closes: #35969).