Leaving directory Error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Leaving directory Error
# 15  
Old 10-05-2015
The first issues rises at:
Code:
| #include <ac_nonexistent.h>
configure:3863: result: gcc -E
configure:3892: gcc -E  conftest.c
configure:3898: $? = 0
configure:3936: gcc -E  conftest.c
conftest.c:12:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:3942: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "miRanda"
| #define PACKAGE_TARNAME "miranda"
| #define PACKAGE_VERSION "3.3a"
| #define PACKAGE_STRING "miRanda 3.3a"
| #define PACKAGE_BUGREPORT "miranda {at} cbio.mskcc.org"
| #define PACKAGE "miranda"
| #define VERSION "3.3a"
| #define UNUSED __attribute__ ((unused))
| #define HAVE_LIBM 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>

There are multiple of this kind, i assume causes be the first issue:
Code:
conftest.c:55:6: warning: conflicting types for built-in function 'memset'
 char memset ();
      ^
configure:5889: $? = 0
configure:5896: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5899: $? = 0
configure:5906: test -s conftest
configure:5909: $? = 0
configure:5923: result: yes
configure:5827: checking for sqrt
configure:5883: gcc -o conftest -g -O2   conftest.c -lm  >&5
conftest.c:56:6: warning: conflicting types for built-in function 'sqrt'
 char sqrt ();
      ^
configure:5889: $? = 0
configure:5896: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5899: $? = 0
configure:5906: test -s conftest
configure:5909: $? = 0
configure:5923: result: yes
configure:5827: checking for strchr
configure:5883: gcc -o conftest -g -O2   conftest.c -lm  >&5
conftest.c:57:6: warning: conflicting types for built-in function 'strchr'
 char strchr ();
      ^

Are you packaging (as in writing the autotools/makefiles) this or just trying to compile it?
Because to me, experiences - but still novice, it looks like there is an issue with either the code or the makefiles, tending to blame the code.

If you just want to compile this, have you read the README and INSTALL files?
If you did, and followed each and every step, send the logfile to one of the devs.

If you're about to package this, you might have missed to addd the required files to the Makefile in that dir, and/or missed to add it in the makefile of the top-level-dir of the project.

hth
# 16  
Old 10-05-2015
When you have
Code:
#include <somefile.h>

1. somefile.h must exist as /usr/include/somefile.h

OR

2. You must tell gcc to look for it elsewhere with an option like this:
-I /path/to/more/include/files

OR

3. The files exists in the current directory
Change <somefile.h> to "somefile.h"

#3 is generally a bad idea for compiling externally created C file sets. Somebody else wrote it, so you do not change it. Except in really dire circumstances.
# 17  
Old 10-07-2015
sir, this reply is quit confusing for me, is there any easy understandable way so that we can resolve this?

---------- Post updated 10-07-15 at 01:55 AM ---------- Previous update was 10-06-15 at 05:21 AM ----------

I run command as follow:
and get leaving directory error. kindly direct which file i should edit . step by step

Code:
csm@csm-HP-Z420:~/Desktop/miRanda-3.3a$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working strtod... yes
checking for memset... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
checking for strrchr... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating RNAlib/H/Makefile
config.status: creating RNAlib/Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
csm@csm-HP-Z420:~/Desktop/miRanda-3.3a$ sudo make
[sudo] password for csm: 
make  all-recursive
make[1]: Entering directory `/home/csm/Desktop/miRanda-3.3a'
Making all in man
make[2]: Entering directory `/home/csm/Desktop/miRanda-3.3a/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/csm/Desktop/miRanda-3.3a/man'
Making all in RNAlib
make[2]: Entering directory `/home/csm/Desktop/miRanda-3.3a/RNAlib'
Making all in H
make[3]: Entering directory `/home/csm/Desktop/miRanda-3.3a/RNAlib/H'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/csm/Desktop/miRanda-3.3a/RNAlib/H'
make[3]: Entering directory `/home/csm/Desktop/miRanda-3.3a/RNAlib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/csm/Desktop/miRanda-3.3a/RNAlib'
make[2]: Leaving directory `/home/csm/Desktop/miRanda-3.3a/RNAlib'
Making all in src
make[2]: Entering directory `/home/csm/Desktop/miRanda-3.3a/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/csm/Desktop/miRanda-3.3a/src'
make[2]: Entering directory `/home/csm/Desktop/miRanda-3.3a'
make[2]: Leaving directory `/home/csm/Desktop/miRanda-3.3a'
make[1]: Leaving directory `/home/csm/Desktop/miRanda-3.3a'
csm@csm-HP-Z420:~/Desktop/miRanda-3.3a$

# 18  
Old 10-07-2015
What makes you think that:
Code:
make[1]: Leaving directory `/home/csm/Desktop/miRanda-3.3a'

indicates that there is an error? In earlier output, you showed us fatal errors like:
Code:
conftest.c:12:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.

which clearly indicates an error that must be fixed before you can successfully make whatever you are trying to make. And you showed us warnings like:
Code:
conftest.c:55:6: warning: conflicting types for built-in function 'memset'
 char memset ();
      ^

which indicates a problem that might still produce code you're trying to produce, but should be fixed before you trying running the code it produced.

I don't see any warnings or errors in the output you presented in post #17 in this thread; it looks like make worked through several layers of makefiles and didn't find anything that needed to be built.

What were you trying to build that was not built?
# 19  
Old 10-07-2015
i am just not able to install it because i am not able to pick out the problem.
i never ever face this type of proble before while installing any software SmilieSmilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Leaving space inside sed

Hi Gurus, I have 2 files File1 : veg apple ap pl le end veg orange or an ge end File2: (2 Replies)
Discussion started by: jayadanabalan
2 Replies

2. Web Development

Directory index forbidden by Options directive error on specific directory with indexing disabled

I am seeing the following error appear numerous times in my Apache error log: I have my Apache config configured as below, so I would expect indexing not to occur on this directory as it falls under the parent /web directory. Strangely all the IP address, including this example, all... (5 Replies)
Discussion started by: crmpicco
5 Replies

3. Red Hat

How to compare file leaving certain filelds?

How to compare two files leaving certain fields, using diff command the entire file is being compared. Can any one please help. (5 Replies)
Discussion started by: ramsavi
5 Replies

4. Shell Programming and Scripting

Leaving last 30 lines

If we want to display lines from file leaving last 30 lines. i dont know the count of lines in file (14 Replies)
Discussion started by: mirwasim
14 Replies

5. Shell Programming and Scripting

Leaving for loop on condition

hi all, i have a problem...no dream :-) i want to scan a file i use the loop famous while read line do do < myfile but this scan must finish when find the another string . How can i do it? best regards for all. Francesco Please use descriptive subjects. "script." doesn't tell... (5 Replies)
Discussion started by: FrancescoIt
5 Replies

6. UNIX for Dummies Questions & Answers

Delete all rows but leaving first and last ones

Hello, Merry Christmas to all! I wish you the best for these holidays and the best for the next year 2011. I'd like your help please, I need to delete all the rows in the third column of my file, but without touching nor changing the first and last value position, this is an example of my... (2 Replies)
Discussion started by: Gery
2 Replies

7. Solaris

leaving ALOM mode

Some netra 240 machines went into ALOM mode, and when I issue the command; sc> console it got stuck, does it mean Solaris OS had crashed ? or what can I do to reboot,because reboot is not starting? And advice ? (3 Replies)
Discussion started by: xramm
3 Replies

8. UNIX for Dummies Questions & Answers

Searching a file withoug leaving home directory!!

hello there ! I am in my current working directory, and i want search a file in "dev" directory which is under root(/), but i donot want leave my current working directory. is it possible to find file like that ? let us say i am in /home/bin/user/malik/abid directory and i want find a file... (2 Replies)
Discussion started by: abidmalik
2 Replies
Login or Register to Ask a Question