Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

https://github.com/lestrrat-go/libxml2/blob/master/clib/clib.go Package Build is failing with "could not determine kind of name for C.free" #101

Closed
Priyankasoni037 opened this issue Jun 4, 2024 · 9 comments
Assignees
Labels

Comments

@Priyankasoni037
Copy link

Priyankasoni037 commented Jun 4, 2024

This happens after the last change has been made for this repo.
b65cd51

Before that it was working as expected

Describe the bug
While downloading the below package
https://github.com/lestrrat-go/libxml2/blob/master/clib/clib.go
Getting the Error message as "could not determine kind of name for C.free"
336443708-bd21517a-19c2-4145-8c1e-8d416fb93113

To Reproduce / Expected behavior

@lestrrat
Copy link
Collaborator

lestrrat commented Jun 4, 2024

I can't reproduce it. Just a guess but perhaps you are using an old Go version?

@Priyankasoni037
Copy link
Author

It fails with the same error with the latest GO version as well Go 1.22.4
image (4)

@lestrrat
Copy link
Collaborator

lestrrat commented Jun 5, 2024

Bummer. But since I can't reproduce it, I can't do much. Please provide a reproducible scenario.

@nobuenhombre
Copy link

This happens after the last change has been made for this repo. b65cd51

Before that it was working as expected

Describe the bug While downloading the below package https://github.com/lestrrat-go/libxml2/blob/master/clib/clib.go Getting the Error message as "could not determine kind of name for C.free" 336443708-bd21517a-19c2-4145-8c1e-8d416fb93113

To Reproduce / Expected behavior

I also have a similar problem

How did I solve it?

  1. Install required system packages
    for Ubuntu
    sudo apt install icu-devtools libicu-dev

for Docker
`FROM golang:alpine as builder

RUN apk update && apk add --update --no-cache
ca-certificates
gcc
musl-dev
libxml2
libxml2-dev
icu
icu-dev`

  1. In command to build executable add special flag
    CGO_CFLAGS="-I/usr/include/unicode"

That's all

Copy link

github-actions bot commented Jul 2, 2024

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jul 2, 2024
@Priyankasoni037
Copy link
Author

Priyankasoni037 commented Jul 2, 2024

Still, we are facing the same issue :(

/go/pkg/mod/github.com/lestrrat/[email protected]/clib/clib.go:489:8: could not determine kind of name for C.free
image

@lestrrat
Copy link
Collaborator

lestrrat commented Jul 2, 2024

@Priyankasoni037 as I already said, you need to isolate what it is that differs from the CI environment that produces your error. Otherwise I will never be able to do anything on this.

@github-actions github-actions bot removed the Stale label Jul 3, 2024
Copy link

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jul 17, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity. This does not mean your issue is rejected, but rather it is done to hide it from the view of the maintains for the time being. Feel free to reopen if you have new comments

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants