Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 413F022367F for <~alpine/users@lists.alpinelinux.org>; Fri, 6 Feb 2026 23:40:03 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-4359a16a400so2519687f8f.1 for <~alpine/users@lists.alpinelinux.org>; Fri, 06 Feb 2026 15:40:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770421203; x=1771026003; darn=lists.alpinelinux.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=zdwF5wLpZ1H+vTaT1gsxp0t7yOchikW+qtFlmduzW00=; b=LvMEiQ7ADxEeDgRoC5iMg0N6CXDWWUxveCy2Uuvl8tqMtTCAf6asTFfq1T4N5Ge4jI ssdeg3WJMYnPgxxfdK46wh5y7BucZYLzqeqElw/TW0RKzh9PFIlYMo15GuOImAMXSZW4 cKQ9Rq+vHG6/YumCtfXxBgSClrp1QbV3X7nL4A/xRuRTecaLjM5jHwkoDmGsGrdtewD3 7AKjeeuGTV18CMaMbuW/hDTSUiFsA02Cg1xLiwVw41DEpZ1S6u3iFtlJ+lIy8ex0Vx0M mGJl656UCpGP9V7ZJUvL/CL6hENF2BK2y32RSothJz6e2VNj6RahGPb5AjJ6hP0YJyQV 6rMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770421203; x=1771026003; h=content-transfer-encoding:in-reply-to:from:content-language :references:to: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=zdwF5wLpZ1H+vTaT1gsxp0t7yOchikW+qtFlmduzW00=; b=fworTuvV83A14TSVnj6Pi+fDDgGDz0bQEj5CGINiQuWkfGs8SkZnYRk2J7jPX8QRin RNc7CEnaA844UMvOTMPHZzUofiL1KZeDyiuue1wl4KUn5APWoBb3f9J9RSt7pzbLIgpG ZnfJyY6ZilgIaZvkg22L+c1Fj5vHqyOpNYyAiwbnWgED6070J7zkZZCriWjD46fF6LF0 1DVubydZTSVu5IQHrt/DDZ0/t83Vb+FuvJwN8XRkHDUWYMxmBqEJ5FdRLrCw/n7kx0y0 i6iTfvfdZhp9CEYbPCwYowAJcj98Q3bdqf8SJyZmMfPYOQuZl8TcTIUmqnMxPiahDg/L 6pBA== X-Forwarded-Encrypted: i=1; AJvYcCULEHu0xh4KC2hQTX/YcXdq9Qc3XcpdPFc61WzgIOMMoX2p2iv05rzLytB53M8JMrMhu8vF5Rc8GliGkzU8@lists.alpinelinux.org X-Gm-Message-State: AOJu0YygADqn8dyaeKXmJcyx4g27iaZWGum+fenkAArT6UJQm327h06I 1d7sJLd3z42JvrMT5n87/dYtqbKmd/OgHM9R8XXpYnf9njvqy1Gd7pQ= X-Gm-Gg: AZuq6aLkOpvMbbY55Y4xJNxmKVJuVMzI5679c3DH3vT1fGVqDHjaplj8LaeeK2hDPB5 nP8zJX++RJugAsKosJAX4ycv2YJqAzQ0UGpONpOPP1mVj0ZMZO5UKRs9uKo65FTfrLCny74Ksmd 9HTpZU2NQ82VVmsa0Ehz9gKxc8j0OfrIBBlLmtBuweR4HDFeQxpSOKL+c3yKhS+hDSuWEaLesQN bbAHxBeRfZFCSbwbCzd3n9P3Kw8Zg7dT8C/2zQua8iyjrZYaqJ16S2BOM4Lslh9knU0cSwwYpx7 jviHw3DgBaH2QtWGIzBluRaOdmAkGYRbnKI8ge+nax1RddWoNl/xo+VL9iQ3ll+AvkcUEGDxjoR 8r0XgWfZdeWuZB32p08Hj3YXC15XGmEQs0upXeXPRaECBWqKcVHHR59d5WiqoRnp+nroNV5wFTs 4DsAT2ORHFCxVUndGe29eoCgOwKmQev9m8Iw== X-Received: by 2002:a05:6000:2485:b0:435:9ee1:f91a with SMTP id ffacd0b85a97d-4362938b450mr7355516f8f.53.1770421202656; Fri, 06 Feb 2026 15:40:02 -0800 (PST) Received: from [10.0.0.64] ([216.213.191.138]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-436296b2facsm9247876f8f.9.2026.02.06.15.40.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Feb 2026 15:40:01 -0800 (PST) Message-ID: Date: Fri, 6 Feb 2026 23:40:00 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Linker not finding library To: Stefano Cossu , ~alpine/users@lists.alpinelinux.org References: <6ee42c20-2936-4655-ba61-608902f5e837@cossu.cc> <6e887475-e0b3-4caf-bd50-3460cdf4bc6e@gmail.com> <55ea288f-e220-48e6-9308-9d2d46a6a541@cossu.cc> Content-Language: en-GB From: Naomi Rennie-Waldock In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 06/02/2026 23:30, Stefano Cossu wrote: > Oops, sorry. OK, now it compiles and runs, so back to Lua: I'm not > familiar with lazy bindings. Is that a compilation option? Meaning, if > I recompile Lua with default Musl options, would it behave correctly? > In that case, I wonder why the Alpine package comes with lazy > bindings. Or is there something else? > > Thanks, > s > It's just a design difference between glibc and musl. ldd will probably give "symbol not found" for libs that are loaded by something else as plugins (PHP extensions do the same thing), but it will otherwise still function correctly. The sample from the lua-linotify readme works correctly, despite ldd's errors: ~ # cat test.lua local inotify = require 'inotify' local handle = inotify.init() -- Watch for new files and renames local wd = handle:addwatch('/root', inotify.IN_CREATE, inotify.IN_MOVE) local events = handle:read() for _, ev in ipairs(events) do     print(ev.name .. ' was created or renamed') end -- Done automatically on close, I think, but kept to be thorough handle:rmwatch(wd) handle:close() ~ # lua5.4 test.lua & ~ # touch a a was created or renamed If you really do need to run ldd on lua libs, you can make it preload lua to quiet the errors: ~ # LD_PRELOAD=/usr/lib/lua5.4/liblua.so ldd /usr/lib/lua/5.4/inotify.so         /lib/ld-musl-x86_64.so.1 (0x7fd156f35000)         /usr/lib/lua5.4/liblua.so => /usr/lib/lua5.4/liblua.so (0x7fd156ef2000)         libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7fd156f35000)