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

Does not build on FreeBSD #12

Open
devosalain opened this issue Aug 26, 2022 · 4 comments
Open

Does not build on FreeBSD #12

devosalain opened this issue Aug 26, 2022 · 4 comments

Comments

@devosalain
Copy link

Build error.
Log,

meson build 
The Meson build system
Version: 0.62.2
Source dir: /usr/home/x/labwc-tweaks
Build dir: /usr/home/x/labwc-tweaks/build
Build type: native build
Project name: labwc-tweaks
Project version: 0.1.0
C compiler for the host machine: ccache cc (clang 13.0.0 "FreeBSD clang version 13.0.0 ([email protected]:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)")
C linker for the host machine: cc ld.lld 13.0.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/local/bin/pkg-config (1.8.0)
Run-time dependency gtk+-3.0 found: YES 3.24.33
Run-time dependency libxml-2.0 found: YES 2.9.13
Run-time dependency gio-2.0 found: YES 2.72.2
Dependency libxml-2.0 found: YES 2.9.13 (cached)
Run-time dependency glib-2.0 found: YES 2.72.2
Dependency glib-2.0 found: YES 2.72.2 (cached)
Build targets in project: 3

Found ninja-1.10.2 at /usr/local/bin/ninja
HOST:x: /home/x/labwc-tweaks >ninja -C build
ninja: Entering directory `build'
[1/9] Compiling C object labwc-tweaks.p/find-themes.c.o
FAILED: labwc-tweaks.p/find-themes.c.o 
ccache cc -Ilabwc-tweaks.p -I. -I.. -I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/harfbuzz -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/libepoll-shim -I/usr/local/include/atk-1.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -I/usr/local/include/at-spi-2.0 -I/usr/local/include/libxml2 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -O0 -g -Wno-unused-parameter -pthread -D_THREAD_SAFE -MD -MQ labwc-tweaks.p/find-themes.c.o -MF labwc-tweaks.p/find-themes.c.o.d -o labwc-tweaks.p/find-themes.c.o -c ../find-themes.c
../find-themes.c:45:24: error: use of undeclared identifier 'DT_DIR'
                if (entry->d_type != DT_DIR || entry->d_name[0] == '.') {
                                     ^
../find-themes.c:69:29: error: use of undeclared identifier 'DT_DIR'
                        if (sub_entry->d_type != DT_DIR || sub_entry->d_name[0] == '.') {
                                                 ^
../find-themes.c:116:24: error: use of undeclared identifier 'DT_DIR'
                if (entry->d_type == DT_DIR && entry->d_name[0] != '.') {
                                     ^
../find-themes.c:155:9: warning: implicit declaration of function 'strcasecmp' is invalid in C99 [-Wimplicit-function-declaration]
        return strcasecmp(theme_a->name, theme_b->name);
               ^
1 warning and 3 errors generated.
[2/9] Compiling C object tests/t1000_add_xpath_node.p/tap.c.o
FAILED: tests/t1000_add_xpath_node.p/tap.c.o 
ccache cc -Itests/t1000_add_xpath_node.p -Itests -I../tests -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -O0 -g -Wno-unused-parameter -MD -MQ tests/t1000_add_xpath_node.p/tap.c.o -MF tests/t1000_add_xpath_node.p/tap.c.o.d -o tests/t1000_add_xpath_node.p/tap.c.o -c ../tests/tap.c
ccache: error: Failed to create temporary file for /ccache/c/b/e27e8c1939951967891ff1b62c4c7b-2085.manifest.tmp: Permission denied
[3/9] Compiling C object labwc-tweaks.p/xml.c.o
FAILED: labwc-tweaks.p/xml.c.o 
ccache cc -Ilabwc-tweaks.p -I. -I.. -I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/harfbuzz -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/libepoll-shim -I/usr/local/include/atk-1.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -I/usr/local/include/at-spi-2.0 -I/usr/local/include/libxml2 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -O0 -g -Wno-unused-parameter -pthread -D_THREAD_SAFE -MD -MQ labwc-tweaks.p/xml.c.o -MF labwc-tweaks.p/xml.c.o.d -o labwc-tweaks.p/xml.c.o -c ../xml.c
ccache: error: Failed to create temporary file for /ccache/1/f/a008e2c5be0756ae6e3fcca8d0a0a4-562817.o.tmp.stdout: Permission denied
[6/9] Compiling C object labwc-tweaks.p/main.c.o
ninja: build stopped: subcommand failed.
HOST:x: /home/x/labwc-tweaks >
johanmalm added a commit that referenced this issue Aug 26, 2022
Reading readdir(3) is looks like dirent->d_type's DT_DIR is not supported
on all systems.

Relates to issue #12
@johanmalm
Copy link
Collaborator

Any better with the latest commit?

@devosalain
Copy link
Author

devosalain commented Aug 28, 2022

Now it compiles fine.
But the field "gtk theme" default Adwaita, produces a vertical black bar with no entries.

@johanmalm
Copy link
Collaborator

Any chance of a screenshot to make sure I understand the issue correctly?

@devosalain
Copy link
Author

devosalain commented Aug 28, 2022

When i click on "openbox theme" a list of themes is given (black text on white background)
When i click on "icon theme" a list of themes is given (black text on white background)

The problem is when i click on "gtk theme" a vertical black bar is shown (no white background and no text in it).
Or there is no content, or the background has the wrong color black where it should be white.

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