LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2016, 05:06 AM   #1
Glenn D.
Member
 
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 132

Rep: Reputation: 26
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
 
Old 08-07-2016, 08:31 AM   #2
Glenn D.
Member
 
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 132

Original Poster
Rep: Reputation: 26
# 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
 
Old 08-07-2016, 02:56 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,531

Rep: Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622Reputation: 2622
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 -
zypper in reiser4prog
 
Old 08-08-2016, 03:45 AM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,146

Rep: Reputation: 211Reputation: 211Reputation: 211
Quote:
Originally Posted by John VV View Post
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 -
zypper in reiser4prog
The missing headers are a part of the source code (they are in the reiser4progs-1.1.0/include folder).

"Normal":
Code:
./configure && make
just works fine for me (demos and everything else compiled successfully)

To reproduce your error I must try to compile by hand:
Code:
cd demos
make clean
gcc ls.c
..and now I have the error posted by you.

I am using my 4MLinux.

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc fatal error :no such file or directory question NoobLion Programming 2 08-26-2011 12:53 AM
[SOLVED] observation or possibly a bug in font-misc-misc install timetraveler Slackware 9 05-11-2010 04:28 PM
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.29.6/misc/ndiswrapper.ko): eraosso Slackware 2 11-03-2009 08:44 PM
openBSD 4.3, pkg_add cdrom/... .gz, fatal error, misc newbie doubts, Anonym.OS openBSDnewbie *BSD 8 07-31-2008 12:45 PM
The file or directory file:/misc/cdrom does not exist rangerssg Linux - Newbie 5 08-29-2004 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration