go get "github.com/gbin/goncurses" fails--invalid flag in pkg-config

113 views
Skip to first unread message

richard thiebaud

unread,
Oct 10, 2021, 9:13:59 PM10/10/21
to golang-nuts
go 1.13  Linux mint 20.2:

dick@dick2:~$ go get "github.com/gbin/goncurses"
go build github.com/gbin/goncurses: invalid flag in pkg-config --libs: -Wl,-Bsymbolic-functions

Kurtis Rader

unread,
Oct 10, 2021, 9:22:07 PM10/10/21
to richard thiebaud, golang-nuts
Wouldn't it make more sense to open an issue against that project? Although, since it hasn't seen any updates in eight years you'll probably not get much support. Perhaps try the project it was forked from since it appears to be actively maintained? https://github.com/rthornton128/goncurses

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/4794a843-bb1f-4c27-8186-fe2b2aa26dd7n%40googlegroups.com.


--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

richard thiebaud

unread,
Oct 10, 2021, 9:35:37 PM10/10/21
to golang-nuts
Is this an error in the project?

Kurtis Rader

unread,
Oct 10, 2021, 9:56:22 PM10/10/21
to richard thiebaud, golang-nuts
On Sun, Oct 10, 2021 at 6:36 PM richard thiebaud <giantd...@gmail.com> wrote:
Is this an error in the project?

Yes, although technically it seems to be a problem with the pdcurses/ncurses dependency. The Go toolchain doesn't provide the pkg-config file. That's from the CGO dependency. See, for example, https://github.com/gbin/goncurses/blob/master/defs.go

On Sunday, October 10, 2021 at 9:22:07 PM UTC-4 Kurtis Rader wrote:
Wouldn't it make more sense to open an issue against that project? Although, since it hasn't seen any updates in eight years you'll probably not get much support. Perhaps try the project it was forked from since it appears to be actively maintained? https://github.com/rthornton128/goncurses

On Sun, Oct 10, 2021 at 6:14 PM richard thiebaud <giantd...@gmail.com> wrote:
go 1.13  Linux mint 20.2:

dick@dick2:~$ go get "github.com/gbin/goncurses"
go build github.com/gbin/goncurses: invalid flag in pkg-config --libs: -Wl,-Bsymbolic-functions
 
--

Ian Lance Taylor

unread,
Oct 11, 2021, 12:40:01 AM10/11/21
to Kurtis Rader, richard thiebaud, golang-nuts
On Sun, Oct 10, 2021 at 6:56 PM Kurtis Rader <kra...@skepticism.us> wrote:
>
> On Sun, Oct 10, 2021 at 6:36 PM richard thiebaud <giantd...@gmail.com> wrote:
>>
>> Is this an error in the project?
>
>
> Yes, although technically it seems to be a problem with the pdcurses/ncurses dependency. The Go toolchain doesn't provide the pkg-config file. That's from the CGO dependency. See, for example, https://github.com/gbin/goncurses/blob/master/defs.go

Note that I think the reported problem about -Wl,-Bsymbolic-functions
will not happen with Go 1.16 or later.

Ian


>> On Sunday, October 10, 2021 at 9:22:07 PM UTC-4 Kurtis Rader wrote:
>>>
>>> Wouldn't it make more sense to open an issue against that project? Although, since it hasn't seen any updates in eight years you'll probably not get much support. Perhaps try the project it was forked from since it appears to be actively maintained? https://github.com/rthornton128/goncurses
>>>
>>> On Sun, Oct 10, 2021 at 6:14 PM richard thiebaud <giantd...@gmail.com> wrote:
>>>>
>>>> go 1.13 Linux mint 20.2:
>>>>
>>>> dick@dick2:~$ go get "github.com/gbin/goncurses"
>>>> go build github.com/gbin/goncurses: invalid flag in pkg-config --libs: -Wl,-Bsymbolic-functions
>
>
> --
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD8MMP_JrQyP3oXawU5BJir2ve1QfPS%3DuiWgu%2B%2BMbDSbgQ%40mail.gmail.com.

richard thiebaud

unread,
Oct 14, 2021, 4:06:25 AM10/14/21
to golang-nuts
It turns out that the bad options were in the pkg-config for ncurses on my computer. Once I deleted them from the pkg-config files for ncurses and all related items, the problem went away and github.com/gbin/goncurses worked as expected.
Reply all
Reply to author
Forward
0 new messages