From nobody Sun Dec 17 06:41:55 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4StD033syFz54B51 for ; Sun, 17 Dec 2023 06:42:11 +0000 (UTC) (envelope-from atma@convalesco.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4StD0200D7z4L3j for ; Sun, 17 Dec 2023 06:42:09 +0000 (UTC) (envelope-from atma@convalesco.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=convalesco.org header.s=fm1 header.b=BW8oqnfx; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=eCnkQ7zh; spf=pass (mx1.freebsd.org: domain of atma@convalesco.org designates 66.111.4.29 as permitted sender) smtp.mailfrom=atma@convalesco.org; dmarc=pass (policy=reject) header.from=convalesco.org Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A0A005C0073 for ; Sun, 17 Dec 2023 01:42:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 17 Dec 2023 01:42:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=convalesco.org; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1702795328; x=1702881728; bh=ZzrvFM241VZBx1gB0re6ymiX4tk76YCv 6dFMxo6HLa8=; b=BW8oqnfxd0pZx/NS94bLmAlx5CuwJANZ+dDgc2sp/81Q79gG Zcw9KhVGWwywvV22JoZOapRt0N+IskejLcmN2AiyVkdGGfU+9XigAy6hVArcUaJG JiiWALyB/Kev2nsj5xTf1fDqBpcib5ZogOG8BJrvGp1sLjoMMh1H+WYFib5BuV9Z VDHdHSXL9l2UtkHkb3Txk7FjjQBAdRJBdAFNJZPRGMr7cDxOdj0VXau9B3qcA7jS fSn2BlKAFis86Kr/7x8A6IoIwEZAqOaHvA8VwEbXgFvAE8FvUGCaQqOGrkN+xwcD iOufp+Mo2BDpUFAg09SQKJWrOTvmTPAjxJ7ztw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1702795328; x=1702881728; bh=ZzrvFM241VZBx1gB0re6ymiX4tk76YCv6dF Mxo6HLa8=; b=eCnkQ7zhBXuxGZRS/ubS7Giox4vxeX0RAF7d2Q87xOnMxwYD5lm 8Sy4R5FeNBbs39RsDoG3xPI2H/HMFRKz2UqS40J+AJ90gC7SLoaQ3usIXW+QuzjP vz+OMh953x+vmRuQXTNsmHT3738WvaqY0r36Ciou+2rUkhtCt6y04gCFHoMGwgvG J/ksjbcITMsTxVtgK6TEFAVwXbR5R/0m8Zp3NUM/ZOlTRqUaNzPBnXUezmOkpOE5 8bwEP98qCDv1/cDEHofFt3T1XFG4tRvNOk2Wb4mVDdzZRob5oe8DuAaaDZUamBGM XqpvVsHc4J5Bh0rBQhPK0lcjXrYHjbM4U5A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddthedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhtggguffkfffvofesrgdtmherhh dtjeenucfhrhhomheprfgrnhgrghhiohhtihhsucetthhmrghtiihiughishcuoegrthhm rgestghonhhvrghlvghstghordhorhhgqeenucggtffrrghtthgvrhhnpeehfeetveekvd euudettedufeejfeevffehhfduueehjeevhfehtdejfedufeeuhfenucffohhmrghinhep fhhrvggvsghsugdrohhrghdptghonhhvrghlvghstghordhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghtmhgrsegtohhnvhgrlhgv shgtohdrohhrgh X-ME-Proxy: Feedback-ID: if8a042fc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 17 Dec 2023 01:42:07 -0500 (EST) From: Panagiotis Atmatzidis Content-Type: multipart/alternative; boundary="Apple-Mail=_7C0140E9-529A-4C1F-838F-AE289A9EC039" List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: FreeRadius SQL driver undefined symbol __aeabi_uidivmod Message-Id: <5331A126-5DF4-4758-A607-31F23DD5C5B7@convalesco.org> Date: Sun, 17 Dec 2023 08:41:55 +0200 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[convalesco.org,reject]; RWL_MAILSPIKE_EXCELLENT(-0.40)[66.111.4.29:from]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; R_DKIM_ALLOW(-0.20)[convalesco.org:s=fm1,messagingengine.com:s=fm2]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.29:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[convalesco.org:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-Rspamd-Queue-Id: 4StD0200D7z4L3j X-Spamd-Bar: --- --Apple-Mail=_7C0140E9-529A-4C1F-838F-AE289A9EC039 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, I=E2=80=99m trying to setup FreeRadius3 on RPi2 (armv6) running = FreeBSD-13.2. I=E2=80=99m using MySQL as a backend because it runs = nicely on a low resource hardware. Enabling the SQL driver yields the following error: ``` Could not link driver rlm_sql_mysql: /usr/local/lib/libunwind.so.8: = Undefined symbol "__aeabi_uidivmod" Make sure it (and all its dependent libraries!) are in the search path = of your system's ld /usr/local/etc/raddb/mods-enabled/sql[27]: Instantiation failed for = module =E2=80=9Csql" ``` There is a discussion in bugtraq[^1] about this exact issue and there = seems to be a patch as well[^2]. Can someone help me apply this patch or = point me to a tutorial? I used =E2=80=9Cpkg=E2=80=9D to install "mysql80-server" and = "freeradius3-mysql=E2=80=9C, however I have the ports collection = installed so I could use that if it helps. Kind regards, P. [^1]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271087 [^2]: = https://bugs.freebsd.org/bugzilla/attachment.cgi?bugid=3D271087&action=3Dv= iewall -- Panagiotis (atmosx) Atmatzidis email: atma@convalesco.org URL: http://www.convalesco.org GnuPG ID: 0x1A7BFEC5 gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5 "Everyone thinks of changing the world, but no one thinks of changing = himself.=E2=80=9D - Leo Tolstoy --Apple-Mail=_7C0140E9-529A-4C1F-838F-AE289A9EC039 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello,

I=E2=80=99m trying to = setup FreeRadius3 on RPi2 (armv6) running FreeBSD-13.2. I=E2=80=99m = using MySQL as a backend because it runs nicely on a low resource = hardware.

Enabling the SQL driver yields the = following error:

```
Could not = link driver rlm_sql_mysql: /usr/local/lib/libunwind.so.8: Undefined = symbol "__aeabi_uidivmod"
Make sure it (and all its dependent = libraries!) are in the search path of your system's = ld
/usr/local/etc/raddb/mods-enabled/sql[27]: Instantiation = failed for module = =E2=80=9Csql"
```

There is a = discussion in bugtraq[^1] about this exact issue and there seems to be a = patch as well[^2]. Can someone help me apply this patch or point me to a = tutorial?

I used =E2=80=9Cpkg=E2=80=9D to = install "mysql80-server" and "freeradius3-mysql=E2=80=9C, however I have = the ports collection installed so I could use that if it = helps.

Kind = regards,

P.


[^1]: https:= //bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271087
[^2]:&n= bsp;https://bugs.freebsd.org/bugzilla/attachment.cgi?bugid=3D271087&ac= tion=3Dviewall

--
Panagiotis (atmosx) = Atmatzidis

email: atma@convalesco.org
URL: = http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg = --keyserver pgp.mit.edu --recv-keys 1A7BFEC5

"Everyone = thinks of changing the world, but no one thinks of changing = himself.=E2=80=9D - Leo Tolstoy





= --Apple-Mail=_7C0140E9-529A-4C1F-838F-AE289A9EC039--