You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Write a real autoconf script to verify build dependencies #1
I tried "make" on my VPS (which is 32-bit), and got all kinds of errors.
sander@haring:~/git/halfempty$ make
Checking for glib-2.0...ok
gcc -Wall -std=gnu99 -O0 -ggdb3 -fPIC -Wno-format-zero-length -Wno-unused-parameter -UNDEBUG -UG_DISABLE_ASSERT `getconf LFS_CFLAGS` `pkg-config --cflags glib-2.0` -D_GNU_SOURCE -c -o halfempty.o halfempty.c
halfempty.c:52:27: error: ‘G_OPTION_FLAG_NONE’ undeclared here (not in a function)
{ "num-threads", 'P', G_OPTION_FLAG_NONE, G_OPTION_ARG_INT, &kProcessThreads, "How many threads to use (default=ncores+1).", "threads" },
^
halfempty.c:60:5: error: initializer element is not constant
{ "generate-dot", 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &kGenerateDotFile, "Generate a DOT file to display the tree status (default=off).", NULL },
^
"make" went OK on 64-bit Intel and 64-bit ARM.
So I guess halfempty is 32-bit only?
If so: I created 3 lines of code in Makefile to check for that. Do you want a PR for that?
~/git/halfempty$ make
Checking for 64-bit...ok
Checking for glib-2.0...ok
gcc -Wall -std=gnu99 -O0 -ggdb3 -fPIC -Wno-format-zero-length -Wno-unused-parameter -UNDEBUG -UG_DISABLE_ASSERT `getconf LFS_CFLAGS` `pkg-config --cflags glib-2.0` -D_GNU_SOURCE -c -o halfempty.o halfempty.c
and
sander@haring:~/git/halfempty$ make
Checking for 64-bit...Not 64-bit
make: *** [check] Error 1
Activity
taviso commentedon Sep 24, 2018
Hmmm, I think you must have a version of glib older than 2.42, which is when they added that flag:
https://developer.gnome.org/glib/stable/glib-Commandline-option-parser.html#GOptionFlags
I should write a real configure script though, I'll keep this open to remind me.
[-]64-bit only => check for it in Makefile[/-][+]Write a real autoconf script to verify build dependencies[/+]sanderjo commentedon Sep 25, 2018
Ah, yes, that makes more sense: Ubuntu 14.04, with glib 2.19.
Thanks.