graphics/togl [undefined reference]
Adam Weinberger
adamw at adamw.org
Sun Oct 29 05:25:44 UTC 2017
> On 28 Oct, 2017, at 22:50, blubee blubeeme <gurenchan at gmail.com> wrote:
>
> 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
--
Adam Weinberger
adamw at adamw.org
https://www.adamw.org
>
> On Sat, Oct 28, 2017 at 11:47 PM, blubee blubeeme <gurenchan at gmail.com>
> wrote:
>
>> I ran into an issue with linking -ltogl from graphics/togl
>>
>>
>> I looked into it with
>> ld -L/usr/local/lib -ltogl and there's undefined references to libc
>>
>> Is the port broken? How can I fix it?
>>
>> ==================================================
>> 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'
>>
>>
>>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
More information about the freebsd-ports
mailing list