X-Original-To: alpine-user@lists.alpinelinux.org Received: from libero.it (smtp-34.italiaonline.it [213.209.10.34]) by lists.alpinelinux.org (Postfix) with ESMTP id 3153DF831A2 for ; Tue, 5 Mar 2019 21:45:13 +0000 (UTC) Received: from [192.168.1.2] ([151.20.79.62]) by smtp-34.iol.local with ESMTPA id 1Hs8hjyCFwlwK1Hs8hxWQS; Tue, 05 Mar 2019 22:45:12 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1551822312; bh=nbrAsqdzNPavyrRqAkURQ4+Wf4ANE/omwziRvyMChc4=; h=Subject:To:References:From:Date:In-Reply-To; b=hRqingaw+wZ+OzzcmDtujv3bUMhx+eIARYnVv/RPsraotYk+E6GSsyiHPuuxD2I2g i2DGg7PGuYgl/ZSahA2ocOGEyrAhAylBUuC3jn62hx3Owlzu1a27w5tcnOd0vK0c6I vm183X1rMa3rBr4tCe+w3FmJ/yMn0GCG40j6dmXqPDbvF5xdZhO9cfG2YxnCHJrjjg jSw97HYtqaXDO80HyIvyxm4VeDXjlzWU6OVozgurAEgeVIKXNS1PteBCLTpH/cfseb 09j/y05iFiJa0yC1ubyxIb3FyQwDM/2Zw22GfXAERZ+A6JH8b89NFyEG1VZs94T4aX bmq4IKmEcBMfA== X-CNFS-Analysis: v=2.3 cv=O8HoQy1W c=1 sm=1 tr=0 a=8uKbiH4Weol60EG+ySSPOA==:117 a=8uKbiH4Weol60EG+ySSPOA==:17 a=IkcTkHD0fZMA:10 a=W5CetA7AnUyk-_zd764A:9 a=QEXdDO2ut3YA:10 Subject: Re: [alpine-user] missing header sys/queue.h To: Chloe Kudryavtsev , alpine-user@lists.alpinelinux.org References: <18833665-ea51-febd-5695-5098b5986135@libero.it> <69dc00e5-7e32-1a6a-0cf8-71bf675c15bd@libero.it> From: Riccardo Mottola Message-ID: Date: Tue, 5 Mar 2019 22:45:12 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 SeaMonkey/2.49.4 X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfKjXX1wlQTh41TNxwY5vTs1ion2GoQylQsjatxPOU+0MlxeOahqCkgtaWUnQ+/5SqwnFxOCMVlJyTMh2yQjdzuBOB7IwFP15G4c4+4sTvOJJXH3MaZ+E 3wVJKalDqgmFxrWZb+J/ueudvQ3JK9uz3p7UrFIrSfnwwszo5eKTGAL+uSkHiwPbs2zHvWovQuMIM4WKjE4Oo45LLuJeOxk/v1qciBUjMJw6CxfFYvsnAHiW Hi Chloe, Chloe Kudryavtsev wrote: > On 2/28/2019 2:02 PM, Riccardo Mottola wrote: > Hi Riccardo, > >> how to detect AlpineLinux sources compared to standard Linux > > I'm afraid that's not quite the issue you're running into. > Alpine includes all of the standard *linux* headers under the > linux-headers package. > The problem you are running into is that glibc is not linux, and not > necessarily standard. > >> fatal error: sys/queue.h: No such file or directory > > Alpine uses the musl libc. > musl does not include sys/queue.h[1]. > As mentioned, you can find it in bsd-compat-headers (as per the > recommendation of the musl author). > >> sys/sysctl.h: No such file or directory > > sysctl(2) is deprecated in linux[2], and should not be used. > As such, musl removed it (5 years ago)[3]. > > Any application using it should be modified to not use it. > >> how did you get FireFox running? > > I'm not sure on that one, I can't find the mention of sysctl under > testing/firefox, so I assume upsteam has added the ability to detect > this header's presence. I checked the code and found out that the include is conditional: #ifdef _EVENT_HAVE_SYS_SYSCTL_H #include #endif so if everything is working as expected it should be included only when appropriate. I see: ipc/chromium/src/third_party/libevent/linux/event2/event-config.h:#define _EVENT_HAVE_SYS_SYSCTL_H 1 I do not fully understand if the configure is actually called or not my the mozilla build system! As a test, I tried just to remove that headers, we can understand what to patch later. However, compilation just delays failure: 2:17.29 In file included from /home/multix/code/Arctic-Fox/ipc/chromium/src/base/file_util.h:19, 2:17.30 from /home/multix/code/Arctic-Fox/ipc/chromium/src/base/file_util_posix.cc:5: 2:17.30 ../../dist/system_wrappers/fts.h:4:15: fatal error: fts.h: No such file or directory 2:17.31 #include_next Riccardo --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---