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

cannot compile on Fedora 34 #267

Open
ROBERT-MCDOWELL opened this issue Jul 6, 2021 · 1 comment
Open

cannot compile on Fedora 34 #267

ROBERT-MCDOWELL opened this issue Jul 6, 2021 · 1 comment

Comments

@ROBERT-MCDOWELL
Copy link

qlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:125322:10: warning: function may return address of local variable [-Wreturn-local-addr]
125322 | return pNew;
| ^~~~
sqlite3-binding.c:125282:10: note: declared here
125282 | Select standin;
| ^~~~~~~

github.com/joohoi/acme-dns

/usr/bin/ld: $WORK/b001/pkg1.a(_x011.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

thanks

@stelb
Copy link

stelb commented Jul 14, 2021

Fedora 32: first problem is fixed with
export CGO_CFLAGS="-Wno-return-local-addr"
the actual problem is sqlite3 (see similar problem mattn/go-sqlite3#803)

I don't have the ld error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants