From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id C791A385800E for ; Thu, 14 Jan 2021 08:18:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C791A385800E Received: by mail-wm1-x335.google.com with SMTP id i63so3724665wma.4 for ; Thu, 14 Jan 2021 00:18:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v9gyyJgVdL0KFuLjD8QXQhoMrCdPd9KX7s8Fd0+2CTQ=; b=C4BlT7W6lxF0s2Q3z3o75bPu7K88V8ZQm+k1fi0T4us/wcIoaxEaPRZUOrmQ7AyIy8 mAseqUHP8/vHLgUamSz2D1tkfxYN+SqQhNLirR9tYcF5JlQpbhuxWOO6jAGPMmf9zyj0 0sUi/FcJiMcnPHoK+QcYS/sXvNKed/+uJQVWvdxtFq956rhlZ0UHAG57yYxFAPliHyiL NFqXUTIHEq7rD6Ghvhgp0AQiLJyBrJ7t3BM+w4w6ZG2kJQ2l+XAN4dO5kFRb0fdei5PA T9ODvTl/OP6izxdUL69LSLy7qtVrQod8fPHMUp76oh3QfDzUpOv2rtPtpGK6YzftYUwl sUVw== X-Gm-Message-State: AOAM532AN/6HoDkoe6HYt0e3eKbdJpuluz7NExJGSePmZ8KxYack62cQ 5Dk1sOUXw5LgNFEmb5OwdFzMTfbBLl0HKor4FfQ= X-Google-Smtp-Source: ABdhPJwFCrsF1wsWxVlugRxHntQAllFGzmBhmfjAFj1sQ0IPU9Zxx02j7n4rT4Fm82NjP059p1PgBQtehJjJcsKIa6I= X-Received: by 2002:a05:600c:25c2:: with SMTP id 2mr2822672wml.170.1610612320886; Thu, 14 Jan 2021 00:18:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Csaba Raduly Date: Thu, 14 Jan 2021 09:18:30 +0100 Message-ID: Subject: Re: Recompilation problems opencv (python3-cv2 --> python3.8) To: wilhelm-eger@web.de Cc: cygwin list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2021 08:18:46 -0000 Hi Wilhelm, On Thu, 14 Jan 2021 at 08:10, wilhelm-eger--- via Cygwin wrote: (snip) > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_fini_ittlib': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1076:(.text$__itt_fini_ittlib+0x104): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_init_ittlib': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1123:(.text$__itt_init_ittlib+0x14b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlopen' > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1123:(.text$__itt_init_ittlib+0x155): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1123:(.text$__itt_init_ittlib+0x168): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlclose' > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1125:(.text$__itt_init_ittlib+0x2a6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlopen' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_lib_version': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1030:(.text$__itt_init_ittlib+0x2c8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_init_ittlib': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1179:(.text$__itt_init_ittlib+0x2e4): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_lib_version': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1032:(.text$__itt_init_ittlib+0x3c6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_init_ittlib': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1141:(.text$__itt_init_ittlib+0x41c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' You need to compile with -fPIC. Did you try searching the Internet for "relocation truncated to fit: R_X86_64_PC32 against undefined symbol" ? Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)