Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: -: PyUCS1 redeclared in this block #67

Closed
tsingbx opened this issue Dec 20, 2024 · 2 comments · Fixed by #95
Closed

panic: -: PyUCS1 redeclared in this block #67

tsingbx opened this issue Dec 20, 2024 · 2 comments · Fixed by #95
Assignees
Labels
bug Something isn't working

Comments

@tsingbx
Copy link
Contributor

tsingbx commented Dec 20, 2024

run 'llcppgtest python-3.12-embed'

@luoliwoshang luoliwoshang added the bug Something isn't working label Dec 20, 2024
@tsingbx
Copy link
Contributor Author

tsingbx commented Dec 20, 2024

llcppgtest libcares

panic: -: AresAddr redeclared in this block
	previous declaration at -

llcppgtest openssl
llcppgtest libssl
llcppgtest libcrypto

panic: -: StackStX509 redeclared in this block
	previous declaration at -

llcppgtest bdw-gc

panic: -: CORD redeclared in this block
	previous declaration at -

llcppgtest libuv

panic: -: UvQueue redeclared in this block
	previous declaration at -

llcppgtest libunbound

panic: -: Evbuffer redeclared in this block
	previous declaration at -

@luoliwoshang luoliwoshang self-assigned this Dec 24, 2024
@luoliwoshang
Copy link
Contributor

luoliwoshang commented Dec 25, 2024

#61

libcares

llcppgtest libcares 出现相同问题

{
	"name": "libcares",
	"cflags": "$(pkg-config --cflags libcares)",
	"libs": "$(pkg-config --libs libcares)",
	"include": [
		"ares.h",
		"ares_dns_record.h"
	],
	"deps": null,
	"trimPrefixes": [],
	"cplusplus": false
}

ares.h

#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
struct ares_in6_addr {
    union {
        unsigned char _S6_u8[16];
    } _S6_un;
};

struct ares_addr {
    int family;

    union {
        struct in_addr addr4;
        struct ares_in6_addr addr6;
    } addr;
};

#include "ares_dns_record.h"

ares_dns_record.h

char *ares_dns_addr_to_ptr(const struct ares_addr *addr);

问题出现在将这个const struct ares_addr *addr 作为reciver时

llcppg.symb.json

[
  {
    "mangle": "ares_dns_addr_to_ptr",
    "c++": "ares_dns_addr_to_ptr(const struct ares_addr *)",
    "go": "(*Struct aresAddr).AresDnsAddrToPtr"
  }
]

luoliwoshang added a commit to luoliwoshang/llcppg that referenced this issue Dec 25, 2024
luoliwoshang added a commit to luoliwoshang/llcppg that referenced this issue Dec 25, 2024
luoliwoshang added a commit to luoliwoshang/llcppg that referenced this issue Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants