On Sat, 27 Jun 2015 15:03:07 -0400, Martin Michlmayr wrote: > * Arthur Marble <art...@info9.net> [2014-08-08 17:05]: > > ++echo -e "\n#ifdef __clang__\n#define inline\n#endif" >> config.h > That patch seems like an ugly workaround to me. Wouldn't it be better > to either pass -std=gnu89 to the compiler (both GCC and clang support > this) or to convert to C99 inline semantics.
Looks like this needs more changes. Adding "-std=gnu89" to Makefile* leads to: gcc -g -fPIC -pipe -Wall -g -std=gnu89 -o hardinfo -Wl,-export-dynamic hardinfo.o shell.o util.o iconcache.o loadgraph.o menu.o stock.o callbacks.o expr.o report.o binreloc.o vendor.o socket.o syncmanager.o -lpthread -lgthread-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype \ -lsoup-2.4 -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm -lgio-2.0 -lz -lresolv -lselinux -lgmodule-2.0 -pthread -ldl -lgobject-2.0 -lffi -lglib-2.0 -pthread -lpcre shell.o: In function `group_handle_normal': /tmp/buildd/hardinfo-0.5.1/shell.c:921: undefined reference to `strend' /tmp/buildd/hardinfo-0.5.1/shell.c:961: undefined reference to `strend' shell.o: In function `moreinfo_handle_normal': /tmp/buildd/hardinfo-0.5.1/shell.c:1005: undefined reference to `strend' util.o: In function `module_register_methods': /tmp/buildd/hardinfo-0.5.1/util.c:517: undefined reference to `strend' report.o: In function `report_table': /tmp/buildd/hardinfo-0.5.1/report.c:178: undefined reference to `strend' report.o:/tmp/buildd/hardinfo-0.5.1/report.c:195: more undefined references to `strend' follow collect2: error: ld returned 1 exit status Makefile:24: recipe for target 'all' failed Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - https://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: U2: The First Time
signature.asc
Description: Digital Signature