Closed 20kdc closed 2 years ago
The former error... is "fixed" by deleting getopt.c
and getopt.h
, unless there's semantic differences I haven't caught.
The latter error is because there's no extern
on the vpc
global declaration in vpcs.h
.
That in mind I will be sending a PR to fix the latter error.
Ok, so what I didn't catch was that 9019b7fcfa89e5944e6c1ffba4a2e1f53899f4fa does fix said latter error.
The problem is I can't use 0.8 because the last GNS3 release (gns3-server-2.2.31
) tells me VPCS executable version must be >= 0.6.1 but not a 0.8
.
That in mind my PR will basically just be a backport of that commit to the 0.6 branch.
I'm running GNS3 version 2.2.31 with VPCS 0.8.2 compiled on ArchLinux and it works fine. That error message related to version 0.8 is misleading. I looked here on the GNS3 server code VPCS
and the minimum required version for VPCS is 0.6.1 but it does allow you to use higher versions like 0.8.x
Ah. There is still the issue that GNS3 sources ship with the outdated VPCS - I'm not sure where to file that, though.
In any case, 0.6 branch looks fine, so closing this
Attempt to compile occurred on Ubuntu 22.04 Jammy Jellyfish. I am aware this is not released yet, but it is worth keeping in mind https://packages.ubuntu.com/source/jammy/vpcs for reference - alas this is of 0.5b2.
cd src ; ./mk.sh
gives this result:Once getopt.h and getopt.c are removed, the resulting error shows up on linking: