gcc - busy.h:17:23: fatal error: misc/misc.h: No such file or directory ?
Hello,
gcc help wanted. Thanks --Glenn # gcc ls.c In file included from ls.c:6:0: busy.h:17:23: fatal error: misc/misc.h: No such file or directory #include <misc/misc.h> ^ compilation terminated. # ll ~/misc total 4 -rw-r--r-- 1 root users 1873 Aug 6 20:13 misc.h # ll ~/misc/misc.h -rw-r--r-- 1 root users 1873 Aug 6 20:13 /root/misc/misc.h # strace -e open gcc ls.c open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3 open("/tmp/cc9CTlSe.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 In file included from ls.c:6:0: busy.h:17:23: fatal error: misc/misc.h: No such file or directory #include <misc/misc.h> ^ compilation terminated. --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3466, si_status=1, si_utime=2, si_stime=0} --- +++ exited with 1 +++ /tmp/reiser4progs-1.1.0/demos # ll total 100 -rw-r--r-- 1 root users 394 Jan 9 2009 Makefile.am -rw-r--r-- 1 root users 33088 Aug 24 2015 Makefile.in -rw-r--r-- 1 root users 13597 Jan 9 2009 busy.c -rw-r--r-- 1 root users 1409 Jan 9 2009 busy.h -rw-r--r-- 1 root users 4368 Jan 9 2009 cp.c -rw-r--r-- 1 root users 1559 Jan 9 2009 create.c -rw-r--r-- 1 root users 1263 Jan 9 2009 detect -rw-r--r-- 1 root users 1736 Jan 9 2009 ln.c -rw-r--r-- 1 root users 1048 Jan 9 2009 ls.c -rw-r--r-- 1 root users 761 Jan 9 2009 misc.c -rw-r--r-- 1 root users 1419 Jan 9 2009 rm.c -rw-r--r-- 1 root users 917 Jan 9 2009 stat.c -rw-r--r-- 1 root users 1158 Aug 24 2015 trunc.c |
# ll /tmp/reiser4progs-1.1.0/include/misc/misc.h /tmp/reiser4progs-1.1.0/demos/busy.h
-rw-r--r-- 1 root users 1409 Jan 9 2009 /tmp/reiser4progs-1.1.0/demos/busy.h -rw-r--r-- 1 root users 1873 Jan 9 2009 /tmp/reiser4progs-1.1.0/include/misc/misc.h # gcc -I/tmp/reiser4progs-1.1.0/demos/ -I/tmp/reiser4progs-1.1.0/include/ ls.c /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/crt1.o: In function _start : /home/abuild/rpmbuild/BUILD/glibc-2.19/csu/../sysdeps/x86_64/start.S:118: undefined reference to main /tmp/ccquggTV.o: In function ls_cmd : ls.c:(.text+0x46): undefined reference to aal_exception_throw ls.c:(.text+0x7a): undefined reference to aal_exception_throw ls.c:(.text+0xb2): undefined reference to reiser4_semantic_open ls.c:(.text+0xe4): undefined reference to aal_exception_throw ls.c:(.text+0x117): undefined reference to reiser4_print_key ls.c:(.text+0x14d): undefined reference to reiser4_object_readdir ls.c:(.text+0x171): undefined reference to reiser4_print_key ls.c:(.text+0x192): undefined reference to reiser4_object_close collect2: error: ld returned 1 exit status # which ld /usr/bin/ld # ld -v GNU ld (GNU Binutils; openSUSE 13.1) 2.23.2 Source: https://sourceforge.net/projects/rei...s-1.1.0.tar.gz How to solve undefined reference to ... --Glenn |
misc/misc.h:
if that is missing , then install the -devel rpm that has it also 13.1 is unsupported .it went End of life on Feb 3 2016 and 13.2 will be eol in early 2017 i would first upgrade to 13.2 or 42.1 leap and reiser4prog IS IN the opensuse oss repo and a OLD "1.0.8" version is in the old and unsupported opensuse oss repo !!! Code:
su - |
Quote:
"Normal": Code:
./configure && make To reproduce your error I must try to compile by hand: Code:
cd demos I am using my 4MLinux. . |
All times are GMT -5. The time now is 12:06 PM. |