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

build error #91

Open
winterwolf45 opened this issue May 8, 2022 · 0 comments
Open

build error #91

winterwolf45 opened this issue May 8, 2022 · 0 comments

Comments

@winterwolf45
Copy link

winterwolf45 commented May 8, 2022

hi thanks for write this project
when i trying build version 1.6.3
after write this command
ninja -C build
i have this error:

FAILED: swaylock.p/main.c.o
gcc -Iswaylock.p -I. -I.. -Iinclude -I../include -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O0 -Wno-unused-parameter -Wno-unused-result -Wundef -Wvla -fopenmp -mtune=native '-DSYSCONFDIR="//etc"' '-DSWAYLOCK_VERSION="1.6-3"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -MD -MQ swaylock.p/main.c.o -MF swaylock.p/main.c.o.d -o swaylock.p/main.c.o -c ../main.c
In function ‘load_config’,
    inlined from ‘main’ at ../main.c:1771:23:
../main.c:1670:25: error: ‘free’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-dealloc]
 1670 |                         free(config);
      |                         ^~~~~~~~~~~~
../main.c:1645:24: note: returned from ‘*fopen64’
 1645 |         FILE *config = fopen(path, "r");
      |                        ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

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

1 participant