Re: Trouble compiling base

Patryk Laurent <[email protected]> Sun, 4 Jan 2026 11:48:53 -0800
Newsgroups gmane.comp.lib.gnustep.devel
Message-ID <[email protected]>
--Apple-Mail-1985E081-B757-4DD2-8E78-FCA9C10E49A1
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Mick,

You may want to try the build scripts that I and some community members have=
 made for GNUstep on Debian/Ubuntu based systems.=20

Or perhaps use them as documentation to see the build steps that have worked=
 for us.=20

https://github.com/plaurent/gnustep-build

Best regards,
Patryk


> On Jan 4, 2026, at 10:50, Mick <[email protected]> wrote:
>=20
> =EF=BB=BFHello.
> Once again in my life, I am installing gnustep, but every time after a lot=
 of time, so I have to learn from scratch the procedure.
> This time on my own LinuxMint 22, and I am in trouble configuring base.
>=20
> I downloaded gnustep-make-2.9.3.tar.gz, unpacked and configured to use
> clang compiler (14) and --layout=3Dgnustep.
> Than I got libobjc2 from github repo, compiled and installed under
> /usr/local. Finally I added /usr/local/lib in a file under /etc/ld.so.conf=
.d/, and launched ldconfig.
>=20
> At the base step the configure failed "checking whether objc really
> works... no". So I tried to write a very simple program in objc
> (containing a class definition, though), and it fails to link with
> error: "/usr/bin/ld: /tmp/testobjc-ba4d71.o:(.data.rel.ro+0x0):
> undefined reference to `__objc_class_name_Object'".
>=20
> Any idea of what can I miss?
> I compiled the program with "clang -o testobjc testobjc.m
> -L/usr/local/lib -mobjc", so I am quite sure I am pointing the right
> library.
>=20
> --
> Mick
>=20
>=20
>=20

--Apple-Mail-1985E081-B757-4DD2-8E78-FCA9C10E49A1
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html class=3D"apple-mail-supports-explicit-dark-mode"><head><meta http-equi=
v=3D"content-type" content=3D"text/html; charset=3Dutf-8"></head><body dir=3D=
"auto">Hi Mick,<div><br></div><div>You may want to try the build scripts tha=
t I and some community members have made for GNUstep on Debian/Ubuntu based s=
ystems.&nbsp;</div><div><br></div><div><div>Or perhaps use them as documenta=
tion to see the build steps that have worked for us.&nbsp;</div></div><div><=
br></div><div><a href=3D"https://github.com/plaurent/gnustep-build">https://=
github.com/plaurent/gnustep-build</a><br></div><div><div dir=3D"ltr"><div id=
=3D"AppleMailSignature"><br></div><div id=3D"AppleMailSignature">Best regard=
s,</div><div id=3D"AppleMailSignature">Patryk</div><div id=3D"AppleMailSigna=
ture"><br></div></div><div dir=3D"ltr"><br><blockquote type=3D"cite">On Jan 4=
, 2026, at 10:50, Mick &lt;[email protected]&gt; wrote:<br><br></blockquot=
e></div><blockquote type=3D"cite"><div dir=3D"ltr">=EF=BB=BF<span>Hello.</sp=
an><br><span>Once again in my life, I am installing gnustep, but every time a=
fter a lot of time, so I have to learn from scratch the procedure.</span><br=
><span>This time on my own LinuxMint 22, and I am in trouble configuring bas=
e.</span><br><span></span><br><span>I downloaded gnustep-make-2.9.3.tar.gz, u=
npacked and configured to use</span><br><span>clang compiler (14) and --layo=
ut=3Dgnustep.</span><br><span>Than I got libobjc2 from github repo, compiled=
 and installed under</span><br><span>/usr/local. Finally I added /usr/local/=
lib in a file under /etc/ld.so.conf.d/, and launched ldconfig.</span><br><sp=
an></span><br><span>At the base step the configure failed "checking whether o=
bjc really</span><br><span>works... no". So I tried to write a very simple p=
rogram in objc</span><br><span>(containing a class definition, though), and i=
t fails to link with</span><br><span>error: "/usr/bin/ld: /tmp/testobjc-ba4d=
71.o:(.data.rel.ro+0x0):</span><br><span>undefined reference to `__objc_clas=
s_name_Object'".</span><br><span></span><br><span>Any idea of what can I mis=
s?</span><br><span>I compiled the program with "clang -o testobjc testobjc.m=
</span><br><span>-L/usr/local/lib -mobjc", so I am quite sure I am pointing t=
he right</span><br><span>library.</span><br><span></span><br><span>--</span>=
<br><span>Mick</span><br><span></span><br><span></span><br><span></span><br>=
</div></blockquote></div></body></html>=

--Apple-Mail-1985E081-B757-4DD2-8E78-FCA9C10E49A1--