From owner-freebsd-ports@freebsd.org Sun Oct 29 05:25:43 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8A45E59829 for ; Sun, 29 Oct 2017 05:25:43 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B432D6BD13 for ; Sun, 29 Oct 2017 05:25:42 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id b6dc7d7c TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 28 Oct 2017 23:25:40 -0600 (MDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: graphics/togl [undefined reference] From: Adam Weinberger In-Reply-To: Date: Sat, 28 Oct 2017 23:25:39 -0600 Cc: FreeBSD Ports Content-Transfer-Encoding: quoted-printable Message-Id: <808889FC-432D-4E44-80FF-7687C594149D@adamw.org> References: To: blubee blubeeme X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Oct 2017 05:25:44 -0000 > On 28 Oct, 2017, at 22:50, blubee blubeeme = wrote: >=20 > Anyone have any tips on why compiling this i'm getting undefined = reference? That is normal output. You'll get that if you do simply "ld -lxyz" for = ANY library. You want to be linking with cc, not ld. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org >=20 > On Sat, Oct 28, 2017 at 11:47 PM, blubee blubeeme = > wrote: >=20 >> I ran into an issue with linking -ltogl from graphics/togl >>=20 >>=20 >> I looked into it with >> ld -L/usr/local/lib -ltogl and there's undefined references to libc >>=20 >> Is the port broken? How can I fix it? >>=20 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >> attempt to open /usr/local/lib/libtogl.so succeeded >> -ltogl (/usr/local/lib/libtogl.so) >> libX11.so.6 needed by /usr/local/lib/libtogl.so >> found libX11.so.6 at /usr/local/lib/libX11.so.6 >> libGL.so.1 needed by /usr/local/lib/libtogl.so >> found libGL.so.1 at /usr/local/lib/libGL.so.1 >> libXmu.so.6 needed by /usr/local/lib/libtogl.so >> found libXmu.so.6 at /usr/local/lib/libXmu.so.6 >> libxcb.so.1 needed by /usr/local/lib/libX11.so.6 >> found libxcb.so.1 at /usr/local/lib/libxcb.so.1 >> libc.so.7 needed by /usr/local/lib/libX11.so.6 >> found libc.so.7 at //lib/libc.so.7 >> libnvidia-tls.so.1 needed by /usr/local/lib/libGL.so.1 >> found libnvidia-tls.so.1 at /usr/local/lib/libnvidia-tls.so.1 >> libnvidia-glcore.so.1 needed by /usr/local/lib/libGL.so.1 >> found libnvidia-glcore.so.1 at /usr/local/lib/libnvidia-glcore.so.1 >> libXext.so.6 needed by /usr/local/lib/libGL.so.1 >> found libXext.so.6 at /usr/local/lib/libXext.so.6 >> libXt.so.6 needed by /usr/local/lib/libXmu.so.6 >> found libXt.so.6 at /usr/local/lib/libXt.so.6 >> libXau.so.6 needed by /usr/local/lib/libxcb.so.1 >> found libXau.so.6 at /usr/local/lib/libXau.so.6 >> libpthread-stubs.so.0 needed by /usr/local/lib/libxcb.so.1 >> found libpthread-stubs.so.0 at /usr/local/lib/libpthread-stubs.so.0 >> libXdmcp.so.6 needed by /usr/local/lib/libxcb.so.1 >> found libXdmcp.so.6 at /usr/local/lib/libXdmcp.so.6 >> libm.so.5 needed by /usr/local/lib/libnvidia-glcore.so.1 >> found libm.so.5 at //lib/libm.so.5 >> libSM.so.6 needed by /usr/local/lib/libXt.so.6 >> found libSM.so.6 at /usr/local/lib/libSM.so.6 >> libICE.so.6 needed by /usr/local/lib/libXt.so.6 >> found libICE.so.6 at /usr/local/lib/libICE.so.6 >> ld: warning: cannot find entry symbol _start; not setting start = address >> //lib/libc.so.7: undefined reference to `__progname' >> //lib/libc.so.7: undefined reference to `environ' >>=20 >>=20 >>=20 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to = "freebsd-ports-unsubscribe@freebsd.org"