DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BTGmG453680186 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5BTGmG453680186 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=aKaRSFw1 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1387B4BA2E27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1767026896; bh=ECpzXhP6dd87SZhpWlsISyD5MDEgeBP3QmKqExrHIi4=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=aKaRSFw19m081e+RTVZAjuQEb6X8JmPBp5vX6OS4D1gaQmnJCD7PBfbptnm9z2vXg JC+3QD1s5GLnOgEHG62Ex8jTLBWXTD9MrGph+GlJykpKTKdM0w2HbN9Vr30yQ/jsPJ a+zS12iaw0mkLAi3gOmDQO2ZIPQyscxapZq243Rs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE3AC4BA2E05 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EE3AC4BA2E05 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767026848; cv=none; b=axT8hyoNf5LFp0mlvse6R9ZM22N2mW6PUOEf1Pe6BcowcR90dX9aGEBMBP9AG8um9bKAyDu9eer9hF0ZXMyVDydjxDxRlwtZg9vL4H1Vx1W+k6vM6d+aXvul5mxENtzpb3Lo1olLzTCsk2+1llmJLk++UqIBIYnnJS9sGGd1R9k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767026848; c=relaxed/simple; bh=efSsrmeZSEYGCOlCC113OpSYs2iWgf7Z73oGOwWAGfc=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=uiy6Y2fleWqMA0H1vzUIUFFjphhlQj1TjeCV+OthTGjAiFrYm90p16QMloBD4bylmu1YxOegputx3bzwxSOqBgRQHsDu/gyRRC9VSzx7FWn3EE53ySkj9Nbm6umZUdgh7donJab18Flc/aGToijtEbhNBCNcFwj4hfmQMq/avKs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE3AC4BA2E05 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767026847; x=1767631647; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gyDw6tNbxC+wm9RQr4WCMMdiKoB4UI+w5vCGY922b/c=; b=mjfJMSiPR2DkCgvXtFpyP1GPxbf7A3R9p3ZBeURgArh/aHEbusZklwm3Z+c1lbA0Fc 2k274nFEr64oKFLesH9CUmvRSKrlXMfPP6LS7r6roQztfbKPSFCCrNeLCu5Tbk0BTjqA 2+IVRUYcwNac1EXcLiTqzGRWUwLR4uTM5+mmRw9rX4YK8HgMY0lxbBQ16GjqQesdrHrL FC0AZYKXmoOpeCNxcn3IA7pt2384/aFklNhA72qbxu60911n94vLZ3AfxfdmgICUkOmC 5xCPfdphESIi3n688fraFn/OXBVw3e5vKz0q28cIjP5zj9f5B98fpeBIQ/iB0N+neGqw vtmQ== X-Gm-Message-State: AOJu0YwR7lacqgGFL0Hi5sra1BZQfzJCv0D8YqoJG3relV3DwLXd1hNS JWyhrMgAoihdkJCZC4aQmosUS1uz1apWE4A1CRty3pkJi5X2NnnWd0qkUF8kZbGr X-Gm-Gg: AY/fxX6X6MG+lot6KycUaR+sYaV7aXf9drb4ZR4w4gDx2EB+7eyD4o2leA363AGiI/L XqZhe6Xho/jd6hMimEWBk8pjHRWWBHN7FVIzRCy3ZaFH1F9BcfCNbzzZG8QopVHt2G5Jj5Cg8hE LzlUQQu6qkrggqUHj9RQJbDe8eofbxHpjVmbF4NhXtLGa/EDBnXtEr3Pbb/uN9penbOzbNbFwmC MROtUYc7+ayrZ4qQ9IrfFxInrILTdqaj0E42/b7QhUztX9NxiVpx50iOKu+WetZgPdKER1vuvcT P8LES7pLLr8f5CySjILOfYhGIHmTXecVI6CrnAMldux+1JaaDFmGvIyEPoljTGdfIXMHuFuF03/ RhltELGaaYqp8vvRDPOHvDlb63HxHd63jvESLKc3bEvGKl/evtDA6zKxFdimvXq3ekh0F6lRpbT Q0B5RX2W5ggVLJGdExl86kOZQh7Ntsk/fb6Fv0xLrK8Q0NhZzMlh9786ALWq0H7UD+Vg1DsewFR 2+aUxU= X-Google-Smtp-Source: AGHT+IE88/jdzEvzGsxMcBtZILnHvFm3W0HhkdVtcMS4Ooh1VMM8CB8TdMNgW8qf0futHk790qPM6Q== X-Received: by 2002:a05:600c:4fd3:b0:477:a9e:859a with SMTP id 5b1f17b1804b1-47d1958443emr362447965e9.22.1767026846571; Mon, 29 Dec 2025 08:47:26 -0800 (PST) Message-ID: <58a0f065-c873-4122-87e3-4752ac78a6c4@gmail.com> Date: Mon, 29 Dec 2025 17:47:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Failure to link with libjpeg.a using cmake configuration Content-Language: en-GB To: cygwin AT cygwin DOT com References: In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Marco Atzeri via Cygwin Reply-To: Marco Atzeri Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 5BTGmG453680186 On 29/12/2025 17:42, Roger Leigh via Cygwin wrote: > Hi, > > I’m trying to test libtiff on Cygwin, and I’m running into a failure. It’s finding and linking on all platforms with the exception of Cygwin (including MinGW64 and MSVC). For example: > > https://gitlab.com/libtiff/libtiff/-/pipelines/2236584193 > > -- Found ZLIB: /usr/lib/libz.dll.a (found version "1.3.1") > -- Found Deflate: /usr/lib/libdeflate.dll.a (found version "1.25") > CMake Error at /usr/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake:99 (message): > The imported target "libjpeg-turbo::jpeg" references the file > "/usr/lib/libjpeg.dll.a" > but this file does not exist. Possible reasons include: > * The file was deleted, renamed, or moved to another location. > * An install or uninstall procedure did not complete successfully. > * The installation package was faulty and contained > "/usr/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake" > but not all the files it references. > Call Stack (most recent call first): > /usr/lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake:37 (include) > cmake/JPEGCodec.cmake:36 (find_package) > > It is entirely correct. The file that’s mentioned in the installed CMake config file does not exist. > > $ find lib -name '*jpeg*' > lib/cmake/libjpeg-turbo > lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake > lib/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake > lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake > lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake > lib/gdk-pixbuf-2.0/2.10.0/loaders/cygpixbufloader-jpeg.dll > lib/libopenjpeg.dll.a > lib/libturbojpeg.dll.a > lib/openjpeg-1.5 > lib/pkgconfig/libopenjpeg.pc > lib/pkgconfig/libopenjpeg1.pc > lib/pkgconfig/libturbojpeg.pc > > $ find bin -name '*jpeg*' > bin/cygjpeg-8.dll > bin/cygopenjpeg-1.dll > bin/cygturbojpeg-0.dll > > So the DLL exists, but the import library does not. Everything else is present and correct as far as I can tell, but something is not right here. The import library is missing. > > $ grep '\.a' lib/cmake/libjpeg-turbo/* > lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake: IMPORTED_IMPLIB_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/libjpeg.dll.a" > lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake:list(APPEND _cmake_import_check_files_for_libjpeg-turbo::jpeg "${_IMPORT_PREFIX}/lib/libjpeg.dll.a" "${_IMPORT_PREFIX}/bin/cygjpeg-8.dll" ) > lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake: IMPORTED_IMPLIB_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/libturbojpeg.dll.a" > lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake:list(APPEND _cmake_import_check_files_for_libjpeg-turbo::turbojpeg "${_IMPORT_PREFIX}/lib/libturbojpeg.dll.a" "${_IMPORT_PREFIX}/bin/cygturbojpeg-0.dll" ) > > Because it’s referenced in the configuration, and has the DLL, and everything but this file is installed, this looks like a packaging error hence reporting it here as a bug. install libjpeg-devel https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Flibjpeg-devel%2Flibjpeg-devel-3.1.3-1&grep=libjpeg.dll.a > > > Kind regards, > Roger > -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple