انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


توزیع گنو/لینوکس اوبونتو ۲۰ ساله شد 🎉

نویسنده موضوع: مشکل در نصب vpcs روی manjaro  (دفعات بازدید: 645 بار)

0 کاربر و 1 مهمان درحال مشاهده موضوع.

آفلاین SpyaM

  • Full Member
  • *
  • ارسال: 133
  • جنسیت : پسر
  • Manjaro
مشکل در نصب vpcs روی manjaro
« : 20 خرداد 1399، 09:22 ب‌ظ »
سلام
لطفا کمک کنید این مشکل رو رفع کنم تنها مشکلم تو مانجارو نصب نشدن این vpcs و iou نرم افزار gns3 هست

[spyam@linux ~]$ yay -S vpcs --noconfirm
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 1]  vpcs-0.8-4

:: Downloaded PKGBUILD (1/1): vpcs
  1 vpcs                                     (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: Parsing SRCINFO (1/1): vpcs
==> Making package: vpcs 0.8-4 (Tue 09 Jun 2020 09:11:24 PM +0430)
==> Retrieving sources...
  -> Downloading v0.8beta1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   120  100   120    0     0    137      0 --:--:-- --:--:-- --:--:--   137
100  109k    0  109k    0     0  42773      0 --:--:--  0:00:02 --:--:--  122k
==> Validating source files with md5sums...
    v0.8beta1.tar.gz ... Passed
==> Making package: vpcs 0.8-4 (Tue 09 Jun 2020 09:11:28 PM +0430)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v0.8beta1.tar.gz
==> Validating source files with md5sums...
    v0.8beta1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v0.8beta1.tar.gz with bsdtar
==> Starting prepare()...
patching file src/getopt.h
/*****************************************************************************
* getopt.h - competent and free getopt library.
* $Header: /home/ubuntu/cvs/cvsroot/vpcs/getopt.h,v 1.1 2007-06-12 13:17:40 admin Exp $
*
* Copyright (c)2002-2003 Mark K. Kim
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
*   * Redistributions of source code must retain the above copyright
*     notice, this list of conditions and the following disclaimer.
*
*   * Redistributions in binary form must reproduce the above copyright
*     notice, this list of conditions and the following disclaimer in
*     the documentation and/or other materials provided with the
*     distribution.
*
*   * Neither the original author of this software nor the names of its
*     contributors may be used to endorse or promote products derived
*     from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/

#ifndef _GETOPT_H_
#define _GETOPT_H_


#ifdef __cplusplus
extern "C" {
#endif


extern char* optarg;
extern int optind;
extern int opterr;
extern int optopt;

#ifndef FreeBSD
int getopt(int argc, char *const *argv, const char *optstr);
#endif
int arg_to_int(const char* arg, int min, int max, int defalt);

#ifdef __cplusplus
}
#endif


#endif /* GETOPT_H_ */


/* vim:ts=3
*/
==> Sources are ready.
==> Making package: vpcs 0.8-4 (Tue 09 Jun 2020 09:11:31 PM +0430)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Makefile.linux:38: warning: ignoring prerequisites on suffix rule definition
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c vpcs.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c daemon.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c readline.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c packets.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c utils.c
utils.c: In function ‘getkv’:
utils.c:45:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
   45 |   strncpy(buf, str, strlen(str));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c queue.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c command.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c dev.c
dev.c: In function ‘open_tap’:
dev.c:173:2: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
  173 |  else
      |  ^~~~
dev.c:176:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
  176 |   sprintf(dev, "%s", tapname);
      |   ^~~~~~~
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c dhcp.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c command6.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c packets6.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c ip.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c tcp.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c inet6.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c dns.c
command6.c: In function ‘ip6Info’:
command6.c:898:20: warning: ‘%s’ directive writing up to 46 bytes into a region of size 44 [-Wformat-overflow=]
  898 |   sprintf(buf, "ip %s/%d", tmp, vpc[id].ip6.cidr);
      |                    ^~      ~~~
command6.c:898:3: note: ‘sprintf’ output between 6 and 62 bytes into a destination of size 47
  898 |   sprintf(buf, "ip %s/%d", tmp, vpc[id].ip6.cidr);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c remote.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c help.c
dns.c: In function ‘hostresolv’:
dns.c:54:8: warning: variable ‘pdn’ set but not used [-Wunused-but-set-variable]
   54 |  char *pdn = NULL;
      |        ^~~
dns.c: In function ‘appenddomain’:
dns.c:141:25: warning: argument to ‘sizeof’ in ‘snprintf’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
  141 |   snprintf(dname, sizeof(dname), "%s", name);
      |                         ^
dns.c:145:24: warning: argument to ‘sizeof’ in ‘snprintf’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
  145 |  snprintf(dname, sizeof(dname), "%s.%s", name, dn);
      |                        ^
dns.c: In function ‘dns4’:
dns.c:151:17: warning: variable ‘in’ set but not used [-Wunused-but-set-variable]
  151 |  struct in_addr in;
      |                 ^~
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c dump.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c relay.c
dns.c: In function ‘hostresolv’:
dns.c:145:37: warning: ‘%s’ directive output may be truncated writing up to 63 bytes into a region of size 7 [-Wformat-truncation=]
  145 |  snprintf(dname, sizeof(dname), "%s.%s", name, dn);
      |                                     ^~
dns.c:145:2: note: ‘snprintf’ output 2 or more bytes (assuming 65) into a destination of size 8
  145 |  snprintf(dname, sizeof(dname), "%s.%s", name, dn);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
relay.c: In function ‘run_relay’:
relay.c:92:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   92 |   if (port > 1024 && port < 65534)
      |   ^~
relay.c:94:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   94 |    if (relay_fd) {
      |    ^~
dns.c:159:16: warning: ‘cb.dip’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  159 |  if (sameNet(cb.dip, pc->ip4.ip, pc->ip4.cidr))
      |              ~~^~~~
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c hv.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c frag.c
gcc -O2 -m64  -DLinux -Di386 -DHV -Wall -I. -DTAP -c frag6.c
gcc -O2 -m64 vpcs.o daemon.o readline.o packets.o utils.o queue.o command.o dev.o dhcp.o command6.o packets6.o ip.o tcp.o inet6.o dns.o remote.o help.o dump.o relay.o hv.o frag.o frag6.o -o vpcs -lpthread -lutil -s -static
/usr/bin/ld: packets.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: command.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: dev.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: dhcp.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: command6.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: packets6.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: tcp.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: dns.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: dump.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: relay.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
/usr/bin/ld: frag6.o:(.bss+0x0): multiple definition of `vpc'; vpcs.o:(.bss+0x60): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile.linux:35: vpcs] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
Error making: vpcs
Interested in programming and information technology

آفلاین SpyaM

  • Full Member
  • *
  • ارسال: 133
  • جنسیت : پسر
  • Manjaro
پاسخ : مشکل در نصب vpcs روی manjaro
« پاسخ #1 : 21 خرداد 1399، 12:15 ق‌ظ »
کسی کمکم نمیکنه ؟؟
واقعا تو گوگلم چیزی نیست راجب این مشکل !!‌
Interested in programming and information technology

آفلاین SLACKER

  • Hero Member
  • *
  • ارسال: 868
  • جنسیت : پسر
پاسخ : مشکل در نصب vpcs روی manjaro
« پاسخ #2 : 21 خرداد 1399، 12:36 ق‌ظ »
کسی کمکم نمیکنه ؟؟
واقعا تو گوگلم چیزی نیست راجب این مشکل !!‌
1. فروم انگلسي مانجارو كه پست اخر جوابتون رو دادن
2. به اين لينك بريد و دانلود و اجرا كنيد https://sourceforge.net/projects/vpcs/
اسلکور

آفلاین SpyaM

  • Full Member
  • *
  • ارسال: 133
  • جنسیت : پسر
  • Manjaro
پاسخ : مشکل در نصب vpcs روی manjaro
« پاسخ #3 : 21 خرداد 1399، 12:45 ق‌ظ »
کسی کمکم نمیکنه ؟؟
واقعا تو گوگلم چیزی نیست راجب این مشکل !!‌
1. فروم انگلسي مانجارو كه پست اخر جوابتون رو دادن
2. به اين لينك بريد و دانلود و اجرا كنيد https://sourceforge.net/projects/vpcs/
چجوری اجرا کنم؟
Interested in programming and information technology

آفلاین SLACKER

  • Hero Member
  • *
  • ارسال: 868
  • جنسیت : پسر
پاسخ : مشکل در نصب vpcs روی manjaro
« پاسخ #4 : 21 خرداد 1399، 12:49 ق‌ظ »
کسی کمکم نمیکنه ؟؟
واقعا تو گوگلم چیزی نیست راجب این مشکل !!‌
1. فروم انگلسي مانجارو كه پست اخر جوابتون رو دادن
2. به اين لينك بريد و دانلود و اجرا كنيد https://sourceforge.net/projects/vpcs/
چجوری اجرا کنم؟
./FILE
اسلکور