[GH-ISSUE #267] cannot compile on Fedora 34 #134

Open
opened 2026-03-13 15:52:51 +03:00 by kerem · 1 comment
Owner

Originally created by @ROBERT-MCDOWELL on GitHub (Jul 6, 2021).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/267

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

Originally created by @ROBERT-MCDOWELL on GitHub (Jul 6, 2021). Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/267 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
Author
Owner

@stelb commented on GitHub (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 https://github.com/mattn/go-sqlite3/issues/803)

I don't have the ld error

<!-- gh-comment-id:879722917 --> @stelb commented on GitHub (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 https://github.com/mattn/go-sqlite3/issues/803) I don't have the ld error
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns#134
No description provided.