Skip to content

Instantly share code, notes, and snippets.

@lucc
Created January 17, 2016 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucc/cb37e134605d5aff1d2f to your computer and use it in GitHub Desktop.
Save lucc/cb37e134605d5aff1d2f to your computer and use it in GitHub Desktop.
abook build failure
make all-recursive
make[1]: Entering directory '/home/luc/vcs/abook'
Making all in po
make[2]: Entering directory '/home/luc/vcs/abook/po'
make[2]: Leaving directory '/home/luc/vcs/abook/po'
make[2]: Entering directory '/home/luc/vcs/abook'
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT abook.o -MD -MP -MF .deps/abook.Tpo -c -o abook.o abook.c
In file included from abook.c:28:0:
database.h:64:12: warning: inline function ‘field_id’ declared but never defined
inline int field_id(int i);
^
mv -f .deps/abook.Tpo .deps/abook.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT abook_rl.o -MD -MP -MF .deps/abook_rl.Tpo -c -o abook_rl.o abook_rl.c
mv -f .deps/abook_rl.Tpo .deps/abook_rl.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT database.o -MD -MP -MF .deps/database.Tpo -c -o database.o database.c
mv -f .deps/database.Tpo .deps/database.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT edit.o -MD -MP -MF .deps/edit.Tpo -c -o edit.o edit.c
edit.c: In function ‘editor_print_data’:
edit.c:210:9: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
int y, x;
^
edit.c: In function ‘edit_loop’:
edit.c:683:19: warning: variable ‘window_x’ set but not used [-Wunused-but-set-variable]
int window_y, window_x;
^
In file included from edit.c:17:0:
edit.c: At top level:
database.h:64:12: warning: inline function ‘field_id’ declared but never defined
inline int field_id(int i);
^
mv -f .deps/edit.Tpo .deps/edit.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT filter.o -MD -MP -MF .deps/filter.Tpo -c -o filter.o filter.c
In file included from filter.h:4:0,
from filter.c:20:
database.h:64:12: warning: inline function ‘field_id’ declared but never defined
inline int field_id(int i);
^
mv -f .deps/filter.Tpo .deps/filter.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT getname.o -MD -MP -MF .deps/getname.Tpo -c -o getname.o getname.c
mv -f .deps/getname.Tpo .deps/getname.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o getopt.c
mv -f .deps/getopt.Tpo .deps/getopt.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o getopt1.o getopt1.c
mv -f .deps/getopt1.Tpo .deps/getopt1.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT gettext.o -MD -MP -MF .deps/gettext.Tpo -c -o gettext.o gettext.c
mv -f .deps/gettext.Tpo .deps/gettext.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT ldif.o -MD -MP -MF .deps/ldif.Tpo -c -o ldif.o ldif.c
mv -f .deps/ldif.Tpo .deps/ldif.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT list.o -MD -MP -MF .deps/list.Tpo -c -o list.o list.c
In file included from list.c:15:0:
database.h:64:12: warning: inline function ‘field_id’ declared but never defined
inline int field_id(int i);
^
mv -f .deps/list.Tpo .deps/list.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT mbswidth.o -MD -MP -MF .deps/mbswidth.Tpo -c -o mbswidth.o mbswidth.c
mv -f .deps/mbswidth.Tpo .deps/mbswidth.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT misc.o -MD -MP -MF .deps/misc.Tpo -c -o misc.o misc.c
mv -f .deps/misc.Tpo .deps/misc.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT options.o -MD -MP -MF .deps/options.Tpo -c -o options.o options.c
In file included from views.h:4:0,
from options.c:20:
database.h:64:12: warning: inline function ‘field_id’ declared but never defined
inline int field_id(int i);
^
mv -f .deps/options.Tpo .deps/options.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT ui.o -MD -MP -MF .deps/ui.Tpo -c -o ui.o ui.c
In file included from ui.c:21:0:
database.h:64:12: warning: inline function ‘field_id’ declared but never defined
inline int field_id(int i);
^
mv -f .deps/ui.Tpo .deps/ui.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT views.o -MD -MP -MF .deps/views.Tpo -c -o views.o views.c
In file included from views.h:4:0,
from views.c:20:
database.h:64:12: warning: inline function ‘field_id’ declared but never defined
inline int field_id(int i);
^
mv -f .deps/views.Tpo .deps/views.Po
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT xmalloc.o -MD -MP -MF .deps/xmalloc.Tpo -c -o xmalloc.o xmalloc.c
mv -f .deps/xmalloc.Tpo .deps/xmalloc.Po
gcc -Wall -g -O2 -o abook abook.o abook_rl.o database.o edit.o filter.o getname.o getopt.o getopt1.o gettext.o ldif.o list.o mbswidth.o misc.o options.o ui.o views.o xmalloc.o -lncursesw -lreadline
filter.o: In function `mutt_parse_file':
/home/luc/vcs/abook/filter.c:946: undefined reference to `field_id'
/home/luc/vcs/abook/filter.c:945: undefined reference to `field_id'
/home/luc/vcs/abook/filter.c:945: undefined reference to `field_id'
/home/luc/vcs/abook/filter.c:944: undefined reference to `field_id'
/home/luc/vcs/abook/filter.c:944: undefined reference to `field_id'
filter.o:/home/luc/vcs/abook/filter.c:2426: more undefined references to `field_id' follow
collect2: error: ld returned 1 exit status
Makefile:480: recipe for target 'abook' failed
make[2]: *** [abook] Error 1
make[2]: Leaving directory '/home/luc/vcs/abook'
Makefile:529: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/luc/vcs/abook'
Makefile:382: recipe for target 'all' failed
make: *** [all] Error 2
@drzraf
Copy link

drzraf commented Jan 17, 2016

  • did you run autoreconf -f first?
  • did you clone latest master branch from sourceforge?
  • or are you trying to build the source of the packaged version?
  • what gcc version are you using?
  • what ./configure flags did you give (cf config.log)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment