On Fri, May 28, 2010 at 3:30 PM, Leonardo Chiquitto < [email protected]> wrote:
> Some weeks ago, our build checks started to complain about "portability > issues" > when building net-snmp from trunk: > > E: net-snmp 64bit-portability-issue host/hr_swinst.c:573, 574, 679, 681 > > Here's the list of warnings printed by gcc: > > host/hr_swinst.c: In function ‘var_hrswinst’: > host/hr_swinst.c:484:13: warning: ‘headerGetEntry’ is deprecated > (declared at /usr/include/rpm/rpmlegacy.h:48) > host/hr_swinst.c:503:13: warning: ‘headerGetEntry’ is deprecated > (declared at /usr/include/rpm/rpmlegacy.h:48) > host/hr_swinst.c: In function ‘Check_HRSW_cache’: > host/hr_swinst.c:573:9: warning: implicit declaration of function > ‘rpmdbInitIterator’ > host/hr_swinst.c:573:12: warning: assignment makes pointer from > integer without a cast > host/hr_swinst.c:574:9: warning: implicit declaration of function > ‘rpmdbNextIterator’ > host/hr_swinst.c:574:19: warning: assignment makes pointer from > integer without a cast > host/hr_swinst.c:575:13: warning: implicit declaration of function > ‘rpmdbGetIteratorOffset’ > host/hr_swinst.c:595:9: warning: implicit declaration of function > ‘rpmdbFreeIterator’ > host/hr_swinst.c: In function ‘Init_HR_SWInst’: > host/hr_swinst.c:612:5: warning: implicit declaration of function > ‘rpmdbOpen’ > host/hr_swinst.c: In function ‘Save_HR_SW_info’: > host/hr_swinst.c:679:16: warning: assignment makes pointer from > integer without a cast > host/hr_swinst.c:681:20: warning: assignment makes pointer from > integer without a cast > host/hr_swinst.c:701:9: warning: ‘headerGetEntry’ is deprecated > (declared at /usr/include/rpm/rpmlegacy.h:48) > host/hr_swinst.c:702:9: warning: ‘headerGetEntry’ is deprecated > (declared at /usr/include/rpm/rpmlegacy.h:48) > host/hr_swinst.c:704:9: warning: ‘headerGetEntry’ is deprecated > (declared at /usr/include/rpm/rpmlegacy.h:48) > host/hr_swinst.c: In function ‘End_HR_SWInst’: > host/hr_swinst.c:740:5: warning: implicit declaration of function > ‘rpmdbClose’ > > As you can see, the problem is caused by the missing function declarations. > Configure seems to no longer detect the header rpm/rpmdb.h and thus is not > defining HAVE_RPM_RPMDB_H. > > I tracked this down to the following commit: > > r18030 | bvassche | 2010-01-23 15:51:42 -0200 (Sat, 23 Jan 2010) | 2 lines > CHANGES: building: OS header detection check is now run before IPv6 > stack detection. > This is new to me -- I'll have a look at it. But I'm not sure that it is possible to fix this easily -- there are circular dependencies in the configure process, which means that no order of the configure steps is right. Bart.
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
