[sysrepo-devel] Merging devel into master

Joan Landry JoLandry at advaoptical.com
Sat Oct 8 07:58:24 UTC 2016


Was able to build new sysrepo, libyang, Libnetcof2, netopeer2

After completely starting over.
thanks



-----Original Message-----
From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On Behalf Of Joan Landry
Sent: Saturday, October 08, 2016 2:34 AM
To: Lukas Macko -X (lmacko - PANTHEON TECHNOLOGIES at Cisco) <lmacko at cisco.com>; sysrepo-devel at sysrepo.org
Cc: Vishal Chandankhede <VChandankhede at advaoptical.com>
Subject: Re: [sysrepo-devel] Merging devel into master

I wiped out the existing netopeer2 and sysrepo directories, and rebooted my server.
I can build libyang, libnetconf2 and sysrepo.

But I am still not able to build Netopeer2

[  5%] Building C object CMakeFiles/serverobj.dir/ietf_netconf_server.c.o
/mnt/images/netopeer2/Netopeer2/server/ietf_netconf_server.c: In function \u2018module_change_cb\u2019:
/mnt/images/netopeer2/Netopeer2/server/ietf_netconf_server.c:352:18: error: \u2018SR_EV_APPLY\u2019 undeclared (first use in this function)
     if (event != SR_EV_APPLY) {
                  ^
/mnt/images/netopeer2/Netopeer2/server/ietf_netconf_server.c:352:18: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [CMakeFiles/serverobj.dir/ietf_netconf_server.c.o] Error 1
make[1]: *** [CMakeFiles/serverobj.dir/all] Error 2
make: *** [all] Error 2

Any ideas???


-----Original Message-----
From: Lukas Macko -X (lmacko - PANTHEON TECHNOLOGIES at Cisco) [mailto:lmacko at cisco.com]
Sent: Friday, October 07, 2016 2:43 AM
To: Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
Cc: Vishal Chandankhede <VChandankhede at advaoptical.com>
Subject: RE: [sysrepo-devel] Merging devel into master

Hi,

you need to update libnetconf2 library also.
However your errors seems to be related to changes in build process. Some generated files are placed into build directory instead of src. Try to remove these files
	src/common/sr_constants.h
	src/common/sysrepo.pb-c.c
	src/common/sysrepo.pb-c.h
	tests/helpers/test_data.h

call cmake and try compile it again.
This should fix sysrepo build.

Before building Netopeer2 make sure that you don't have previous version of sysrepo installed on you system /usr/lib or /usr/local/lib

Regards,
Lukas

> -----Original Message-----
> From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On 
> Behalf Of Joan Landry
> Sent: Thursday, October 06, 2016 11:51 PM
> To: Radek Krejčí <rkrejci at cesnet.cz>; Rastislav Szabo -X (raszabo - 
> PANTHEON TECHNOLOGIES at Cisco) <raszabo at cisco.com>; 
> sysrepo-devel at sysrepo.org
> Cc: Vishal Chandankhede <VChandankhede at advaoptical.com>
> Subject: Re: [sysrepo-devel] Merging devel into master
> 
> I did a git pull on sysrepo, libyang, and netopeer2 and I am no able 
> to build
> netopeer2 or sysrepo.
> Can you tell me if there is some other library I need to update to 
> correct compiler errors or what I might be missing.
> Thanks
> 
> Netoperr:
> [root at MaestrOS build]# make
> [  5%] Building C object
> CMakeFiles/serverobj.dir/ietf_netconf_server.c.o
> /mnt/images/netopeer2/Netopeer2/server/ietf_netconf_server.c: In 
> function
> \u2018module_change_cb\u2019:
> /mnt/images/netopeer2/Netopeer2/server/ietf_netconf_server.c:352:18: error:
> \u2018SR_EV_APPLY\u2019 undeclared (first use in this function)
>      if (event != SR_EV_APPLY) {
>                   ^
> /mnt/images/netopeer2/Netopeer2/server/ietf_netconf_server.c:352:18: note:
> each undeclared identifier is reported only once for each function it 
> appears in
> make[2]: *** [CMakeFiles/serverobj.dir/ietf_netconf_server.c.o] Error
> 1
> make[1]: *** [CMakeFiles/serverobj.dir/all] Error 2
> make: *** [all] Error 2
> [root at MaestrOS build]#
> 
> 
> Sysrepo:
> [  1%] Built target proto
> [ 14%] Built target COMMON
> [ 27%] Built target SR_ENGINE
> [ 27%] Built target sysrepo-engine
> [ 31%] Built target SR_SRC
> [ 31%] Built target sysrepo
> [ 33%] Built target _sysrepoPy
> [ 33%] Built target sysrepo-engine_a
> [ 34%] Built target sysrepo-plugind
> [ 34%] Built target sysrepo_a
> [ 35%] Building C object
> src/CMakeFiles/sysrepocfg.dir/executables/sysrepocfg.c.o
> /mnt/images/netopeer2/sysrepo/src/executables/sysrepocfg.c:66:47: error:
> \u2018SR_INTERNAL_DATA_SEARCH_DIR\u2019 undeclared here (not in a
> function)  static char *srcfg_internal_data_search_dir = 
> SR_INTERNAL_DATA_SEARCH_DIR;
>                                                ^
> make[2]: ***
> [src/CMakeFiles/sysrepocfg.dir/executables/sysrepocfg.c.o] Error
> 1
> make[1]: *** [src/CMakeFiles/sysrepocfg.dir/all] Error 2
> make: *** [all] Error 2
> 
> -----Original Message-----
> From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On 
> Behalf Of Radek Krejcí
> Sent: Thursday, October 06, 2016 8:15 AM
> To: Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) 
> <raszabo at cisco.com>; sysrepo-devel at sysrepo.org
> Subject: Re: [sysrepo-devel] Merging devel into master
> 
> Hi all,
> the last devel branch - the Netopeer2 - is merged so everything is now 
> synced again.
> 
> There is no big new feature in Neteopeer2 now, just all the changes in 
> libyang,
> libnetconf2 and sysrepo were reflected.
> 
> Regards,
> Radek
> 
> 
> Dne 6.10.2016 v 13:46 Rastislav Szabo -X (raszabo - PANTHEON 
> TECHNOLOGIES at Cisco) napsal(a):
> > Hi all,
> >
> > devel branch of sysrepo has been just merged to master too. We are 
> > now
> continuing with Netopeer2 and will let you know as soon as we have 
> finished with all merges and all projects are back in sync.
> >
> > New features in the new sysrepo v 0.4:
> >
> > -	Operational (state) data support
> > -	Commit verifiers (change verification by subscribed applications)
> > -	New, more efficient subtree-based data retrieval & RPC / Event
> notification API
> > -	Application-local File Descriptor Watcher API (ability to use application-
> local event loop for notification delivery)
> > -	Improved memory management & supporting utils
> > -	Xpath Processing utils
> > -	Python 2 & 3, Lua 5.1 & 5.2, Java bindigs
> >
> > Thanks,
> > Rastislav
> >
> > -----Original Message-----
> > From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On 
> > Behalf Of Radek Krejčí
> > Sent: Thursday, October 6, 2016 11:28 AM
> > To: sysrepo-devel at sysrepo.org
> > Subject: [sysrepo-devel] Merging devel into master
> >
> > Hi all,
> > we have just merged devel branches of libyang and libnetconf2 into master.
> Note that these master branches are now incompatible with master 
> branches of sysrepo and Netopeer2 projects. We are continuing in the 
> sysrepo and
> Netopeer2 and will let you know as soon as the rest of devel branches 
> will be merged.
> >
> > The main change in libyang and libnetconf is support for YANG 1.1.
> >
> > Best regards,
> > Radek Krejci
> > _______________________________________________
> > sysrepo-devel mailing list
> > sysrepo-devel at sysrepo.org
> > http://lists.sysrepo.org/listinfo/sysrepo-devel
> 
> _______________________________________________
> sysrepo-devel mailing list
> sysrepo-devel at sysrepo.org
> http://lists.sysrepo.org/listinfo/sysrepo-devel
> _______________________________________________
> sysrepo-devel mailing list
> sysrepo-devel at sysrepo.org
> http://lists.sysrepo.org/listinfo/sysrepo-devel
_______________________________________________
sysrepo-devel mailing list
sysrepo-devel at sysrepo.org
http://lists.sysrepo.org/listinfo/sysrepo-devel


More information about the sysrepo-devel mailing list