From nobody Sun Jan 28 14:33:19 2024 X-Original-To: freebsd-hackers@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 4TNDT23KvRz58hJ7; Sun, 28 Jan 2024 14:33:58 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TNDT1424Jz40Vv; Sun, 28 Jan 2024 14:33:57 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="Ldj/Wcsa"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a35385da5bbso146865266b.3; Sun, 28 Jan 2024 06:33:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706452436; x=1707057236; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2wfw/M8Zio72g4+MqcLjhOYUSeznwP7EuzJ93H3X984=; b=Ldj/Wcsaoqe8mLY8Tpj5Va2lbYmuiiuT2oVtWSzAh1iLeHWby9Wbc/Z112OlO+WjMo 1KImRnBWH+i2dAuXpoIshiJF4pn1SG+InJCTRuOjE4oJd4cgZqOwH0uOrqmBFspNmAlS s2uGMOZhD73B6DESIhA15vZ5vNxy6cscaEd6dQMh45XEcMk3ny7TuAZPa8xWtvyjCHdR O1qwKEEKz+S3YEU3hVKIpnJwP+53QZ4C9bWKZbpjmOaBmE4jyllPjShM4zPa17z14FkV BC90O5GzjuK/OZF6FJexQJP9KNt2uOJJY94FWmA4rB0Fngfi/dfBU/tppSVypFnb376x LHzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706452436; x=1707057236; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2wfw/M8Zio72g4+MqcLjhOYUSeznwP7EuzJ93H3X984=; b=TbkIUZ9VQF/xEx9XTJGIYtqa/Q/upeLGSI+wqi7vdGJ1r2ltWtmnLtaKaHW+IvxhnK UJCLDkp/t24D47sCqlNUdzxVdVlhQY25QQjtAS9hlEyuk6kWD0g5G3ln98XbnQKbwIUK zxdvYcqvZMnkzaQyTrn42eRXmGK2IP+U9s2eSxzeKnaWRv+i2BgY/huhJK2Phxzv/Jxp MXg+mNR/YRMKhOOXm3qtRVLRZV3W9Fk+IdClD/AibN7stRID8s0nQAdoFihmCf8VhIpy LbmihMs1a5cgzAEyNZkseRkjoDznk5TNzoYA671VILajHFs/WJq+bR8Saz40bh+OCXRi LTyA== X-Gm-Message-State: AOJu0YwhXhmlnGaKrpb5iKfPgPgmyhmfCWR6WvnlA74/iiqbR2BSDGTP D5Vvz/JUtj1aOA0EYCt+xeWEw+X12D1ciHa3srQjNZV4yt6XztfT8cwLlWIYjtwmG56dfFmSUVw TV5WyJri5zx1aicgt5YMUubtmauwEjj2jtGNt1edF X-Google-Smtp-Source: AGHT+IExEi8Cbplx6biG7PY2dSvwr1YEuWEXY5nz89Z2im8Htfmh+TY9Ym2KGvtVEk6M1byDk04AKwn5CiUk0cx9J6A= X-Received: by 2002:a17:906:37d4:b0:a2f:1466:a3e4 with SMTP id o20-20020a17090637d400b00a2f1466a3e4mr2571121ejc.25.1706452435979; Sun, 28 Jan 2024 06:33:55 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Sun, 28 Jan 2024 15:33:19 +0100 Message-ID: Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. To: Warner Losh Cc: FreeBSD Mailing List , freebsd-hackers Content-Type: multipart/alternative; boundary="00000000000045d2cc0610026bc2" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62d:from]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org,freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4TNDT1424Jz40Vv --00000000000045d2cc0610026bc2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Using sh of FreeBSD 12.04 : /bin/sh : Undefined symbol "stat@FBSD_1.5" nothing to do. On Sun, Jan 28, 2024 at 3:17=E2=80=AFPM Mario Marietto wrote: > I've used FreeBSD 13.2 and I've got the same error message : > > /lib/libc.so.7: version FBSD_1.6 required by /bin/sh not found > > Let's see with FreeBSD 12.04... > > On Sun, Jan 28, 2024 at 2:04=E2=80=AFPM Mario Marietto > wrote: > >> Hello Warner, >> >> Thanks for your help. But unfortunately your solution didn't work. After >> having followed your instructions carefully : >> >> Save a copy of /bin/sh. Check out stable/13 (or 12 if the following >>> fails). Cd to src/bin/sh. Type make all. You may need -m >>> /path/to/src/share/mk if it makes complaints. Create a test area, I'll = call >>> it /destdir. Also mkdir /destdir/bin too. Then make install >>> DESTDIR=3D/destdir. You may need to do this as root. Ignore the failure= s for >>> the man pages and maybe tests. You should have a /destdir/bin/sh. See i= f it >>> runs. If so, copy it to /bin and try the upgrade again. >> >> >> It asked me to copy some new libraries from FreeBSD 14.0 to the >> /usr/lib32 and /lib directories of the FreeBSD 10.4 system. I copied all >> the libraries requested and at the end,it gave the following error : >> >> /lib/libc.so.7: version FBSD_1.6 required by /bin/sh not found >> >> so,I have changed the flag that does not allow me to rename it with the >> command : >> >> # chflags noschg libc.so.7 >> >> and I've copied the libc.so.7 file that's on the directory /lib of the >> FreeBSD 14 to the same directory of the FreeBSD 10.4 system and I've >> rebooted. Unfortunately it hasn't been accepted. The error is the follow= ing >> one : >> >> /lib/libc.so.7 : unsupported relocation type 37 in non-PLT relocations >> >> What has been my mistake ? Maybe using FreeBSD 14 is wrong ? >> >> On Sun, Jan 28, 2024 at 9:47=E2=80=AFAM Mario Marietto >> wrote: >> >>> # set -o pipefail >>> set : variable name must begin with a letter. >>> >>> On Sun, Jan 28, 2024 at 5:43=E2=80=AFAM Warner Losh wr= ote: >>> >>>> >>>> >>>> On Sat, Jan 27, 2024, 5:54=E2=80=AFPM Warner Losh wro= te: >>>> >>>>> >>>>> >>>>> On Sat, Jan 27, 2024, 5:12=E2=80=AFPM Mario Marietto >>>>> wrote: >>>>> >>>>>> Hello. >>>>>> >>>>>> I'm trying to upgrade as much as I can FreeBSD 10.4 because it is th= e >>>>>> only one version that can compile some of the old arm 32 bit code I = need to >>>>>> use for one of my projects. As you already know,packages don't work = at >>>>>> all,but ports almost work. I was trying to install xfce4 from ports,= but the >>>>>> compilation stopped when it didn't accept this file : >>>>>> >>>>>> >>>>>> http://distcache.FreeBSD.org/ports-distfiles/trousers-0.3.14.tar.gz >>>>>> >>>>>> >>>>>> at this point,I decided to upgrade the system with : >>>>>> >>>>>> >>>>>> # freebsd-update fetch >>>>>> # freebsd-update install >>>>>> >>>>>> >>>>>> and the ports tree with : >>>>>> >>>>>> >>>>>> # portsnap fetch extract >>>>>> # portsnap fetch update >>>>>> >>>>>> >>>>>> At this point it asked me to update pkg,so I did : >>>>>> >>>>>> >>>>>> # cd /usr/ports/ports-mgmt/pkg >>>>>> # make >>>>>> >>>>>> >>>>>> but unfortunately I got this error that I'm not able to fix : >>>>>> >>>>>> >>>>>> set : illegal option -o pipefail >>>>>> >>>>>> >>>>>> and I can't do anything anymore. I'm stuck here. Can someone help me >>>>>> to fix it ? thanks. >>>>>> >>>>> >>>>> Save a copy of /bin/sh. Check out stable/13 (or 12 if the following >>>>> fails). Cd to src/bin/sh. Type make all. You may need -m >>>>> /path/to/src/share/mk if make complains. Create a test area, I'll cal= l it >>>>> /destdir. Also mkdir /destdir/bin too. Then make install DESTDIR=3D/= destdir. >>>>> You may need to do this as root. Ignore the failures for the man page= s and >>>>> maybe tests. You should have a /destdir/bin/sh. See if it runs. If so= copy >>>>> it to /bin and try the upgrade again. >>>>> >>>>> I think 12 has pipefail. I dont think 11 does. 13 definitely has it. >>>>> The error message is from the shell. >>>>> >>>> >>>> >>>> The command "set -o pipefail" is how you'll know if it will work.... o= r >>>> stands a good chance of working. >>>> >>>> >>>> Warner >>>>> >>>>> >>> >>> -- >>> Mario. >>> >> >> >> -- >> Mario. >> > > > -- > Mario. > --=20 Mario. --00000000000045d2cc0610026bc2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Using sh of FreeBSD 12.04 :

=
/bin/sh : Undefined symbol "stat@FBSD_1.= 5"

nothing to do.

On Su= n, Jan 28, 2024 at 3:17=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
I've u= sed FreeBSD 13.2 and I've got the same error message :

/lib/libc.so.7: version FBSD_1.6 required by /bin/sh not foun= d

Let's see with FreeBSD 12.04...

On Sun, Jan 28, 2024 at 2:04=E2=80=AFPM Mario Marietto <marietto2008@gmail.com&g= t; wrote:
Hello Warner,

Thanks for your help= . But unfortunately your solution didn't work. After having followed yo= ur instructions carefully :

Save a copy of /bin/sh. Check out stable/13 (o= r 12 if=20 the following fails). Cd to src/bin/sh. Type make all. You may need -m=20 /path/to/src/share/mk if it makes complaints. Create a test area, I'll = call=20 it /destdir. Also mkdir /destdir/bin too. Then make install=C2=A0=20 DESTDIR=3D/destdir. You may need to do this as root. Ignore the failures=20 for the man pages and maybe tests. You should have a /destdir/bin/sh.=20 See if it runs. If so, copy it to /bin and try the upgrade again.

It asked me to copy some new libraries from F= reeBSD 14.0 to the /usr/lib32 and /lib directories of the FreeBSD 10.4 syst= em. I copied all the libraries requested and at the end,it gave the followi= ng error :

/lib/libc.so.7: version FBSD_1.6 re= quired by /bin/sh not found

so,I have changed the = flag that does not allow me to rename it with the command :

<= /div>
# chflags noschg libc.so.7

and I'= ;ve copied the libc.so.7 file that's on the directory /lib of the FreeB= SD 14 to the same directory of the FreeBSD 10.4 system and I've reboote= d. Unfortunately it hasn't been accepted. The error is the following on= e :

/lib/libc.so.7 : unsupported relocation type 3= 7 in non-PLT relocations

What has been my mistake = ? Maybe using FreeBSD 14 is wrong ?

On Sun, Jan 28, 2024 at 9:47= =E2=80=AFAM Mario Marietto <marietto2008@gmail.com> wrote:
# set -o pipefa= il
set : variable name must begin with a letter.
<= br>
On Sun,= Jan 28, 2024 at 5:43=E2=80=AFAM Warner Losh <imp@bsdimp.com> wrote:


On Sat, Jan 27= , 2024, 5:54=E2=80=AFPM Warner Losh <imp@bsdimp.com> wrote:


On Sat, Jan 2= 7, 2024, 5:12=E2=80=AFPM Mario Marietto <marietto2008@gma= il.com> wrote:

Hello.

= I'm trying to upgrade as much as I can FreeBSD 10.4 because it is the only one version that can compile some of the old arm 32 bit code I need to use=20 for one of my projects. As you already know,packages don't work at=20 all,but ports almost work. I was trying to install xfce4 from ports,but=20 the compilation stopped when it didn't accept this file :


http://distcache.FreeBSD.org/ports-distfiles/trousers-0.3.14= .tar.gz


at this point,I decided to upgrade the system = with :


# freebsd-update fetch
# freebsd-update install


and the ports tree with :


# portsnap fetch extract
# portsnap fetch update


At this point it asked me to update pkg,so I did= :


# cd /usr/ports/ports-mgmt/pkg
# make


but unfortunately I got this error that I'm = not able to fix :


set : illegal option -o pipefail


and I can't do anything anymore. I'm stu= ck here. Can someone help me to fix it ? thanks.


Save a copy of= /bin/sh. Check out stable/13 (or 12 if the following fails). Cd to src/bin= /sh. Type make all. You may need -m /path/to/src/share/mk if make complains= . Create a test area, I'll call it /destdir. Also mkdir /destdir/bin to= o. Then make install=C2=A0 DESTDIR=3D/destdir. You may need to do this as r= oot. Ignore the failures for the man pages and maybe tests. You should have= a /destdir/bin/sh. See if it runs. If so copy it to /bin and try the upgra= de again.

I think 12 has= pipefail. I dont think 11 does. 13 definitely has it. The error message is= from the shell.

=

The command "set -= o pipefail" is how you'll know if it will work.... or stands a goo= d chance of working.

Warner=C2=A0=

<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">


--
Mario.


--
Mario.


--
Mario.


--
Mario.
--00000000000045d2cc0610026bc2--