Commit 5e01051c says it was a revert. But it missed something, as "file" is now undeclared on line 1139: make[2]: Entering directory `/tmp/portage/sys-apps/openrc-9999/work/openrc-9999/src/rc' echo "#define VERSION \"0.9.7git-5e0105\"" >version.h.tmp if test -n "Gentoo Linux"; then \ echo "#define BRANDING \"Gentoo Linux\"" >> version.h.tmp; \ fi [snip] x86_64-pc-linux-gnu-gcc -march=opteron-sse3 -pipe -O2 -frename-registers -fweb -fmerge-all-constants -fgcse-sm -fgcse-las -fgcse-after-reload -ftree-vectorize -freorder-blocks-and-partition -combine -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -I../includes -I../librc -I../libeinfo -D_BSD_SOURCE -D_XOPEN_SOURCE=600 -DHAVE_TERMCAP -DHAVE_PAM -c runscript.c -o runscript.o [snip] runscript.c: In function 'runscript': runscript.c:1139:5: error: 'file' undeclared (first use in this function) runscript.c:1139:5: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [runscript.o] Error 1 From that commit (see those three "file" assignments): + if (strchr(lnk, '/')) { + save = xstrdup(dir); + saveLnk = xstrdup(lnk); + dir = dirname(saveLnk); + if (strcmp(dir, save) == 0) + file = basename_c(argv[1]); + else + file = basename_c(lnk); + dir = save; + } else + file = basename_c(argv[1]); (This one appears pretty straightforward so emerge --info openrc, etc, shouldn't be needed. Let me know if you think otherwise.) Duncan
This is fixed in e574b5d. Thanks for the report.
Verified/fixed. Built and rebooted on: $ rc --version rc (OpenRC) 0.9.7git-e574b5 (Gentoo Linux) Thanks. =:^)