LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-12-2012, 03:22 AM   #1
jubitaneja
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Rep: Reputation: Disabled
prelink configuration error :: fatal error: ac_nonexistent.h: No such file or direct


Hi

I am building prelink and for this I first built elfutils-0.153 package.
Now, when i try to configure prelink with command :

./configure CPPFLAGS="-I/home/user/elfutils-0.153/libelf" LDFLAGS="-L/home/user/elfutils-0.153/libelf/"

I found a fatal error in config.log as :
------------------------------------------------
configure:3388: gcc -E -I/home/akhilesh/jubi/prelink/source/elfutils-0.153/libelf conftest.c
configure:3392:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3394: $? = 1
configure: failed program was:
| #line 3379 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "prelink"
| #define VERSION "0.0"
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>

-----------------------------------------------

And, I tried locating : ac_nonexistent.h header file in the system and I could not find it anywhere. Can anyone please point out what I am missing? Is there any flag that I need to pass while configuring prelink?

Looking forward to your help.

Thanks.

Last edited by jubitaneja; 04-12-2012 at 04:49 AM.
 
Old 04-12-2012, 03:54 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,735

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
see this thread: http://lists.gnu.org/archive/html/au.../msg00009.html
 
Old 04-12-2012, 08:09 AM   #3
jubitaneja
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for sharing this URL. But, still I could not resolve the problem. Infact, its not clear to me till now that how can I proceed ahead with it so that it may not give fatal error.

The other query is: I observed that gcc-3.x when compiles conftest.c file, though it says the same :"ac_nonexistent.h: No such file or directory", but it does not throw fatal error and proceeds ahead!!! Is it correct to think that thers is some code handler in gcc-4.x versions that give fatal error and gcc-3.x don't? I am not at all clear about it, but I observed this and cross checked from the old config.log file...

Looking forward to your reply.

Jubi
 
Old 04-12-2012, 08:55 AM   #4
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,735

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
the command ./configure will run tests to check the capabilities of the actual system. This is used to create a working build environment. These tests usually prepare small test environments and execute special test cases. The configure script checks the result and depending on the result will continue or fail, and also will generate makefiles and other files. conftest.c is a generated test c source file to drive a test case. The link I gave you tried to explain the test case related to this ac_nonexistent.h: how your compiler detects and rejects broken source code that refers to a non-existent header. This is a test case among the others and it must fail. The script configure will catch that error and that's why it will proceed ahead (because this is the expected behavior).
 
Old 04-13-2012, 08:55 AM   #5
jubitaneja
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for the explanation.

I was actually entangled in loop that this configuration error is causing the build to fail. But, your explanation confirmed me. I found that the build process further failed because it could not link -lselinux flag. For this, it might be looking for lselinux.a in the system. This all happens because by default prelink is statically build. To overcome this issue, if you :

-remove "-all-static" flags from Makefile in prelink source;
-add another flag while configuring i.e. "--enable-static=no";

it will be built successfully.

This might help others who are building native prelink. :-)

Jubi

Last edited by jubitaneja; 04-13-2012 at 08:56 AM.
 
  


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] php5 ./configure error: (FILENAME=- FNR=27) fatal error: internal error richinsc Linux - Software 2 07-08-2010 09:20 AM
Fatal error in kismet configuration with atheros and madwifi netpumber Slackware 1 03-24-2010 06:10 PM
[SOLVED] dpkg fatal error unable to open files list file Stale NFS file handle cmr26 Linux - Software 5 09-06-2009 04:10 PM
Fatal error: File too large. can564 Linux - General 3 03-28-2006 06:25 AM


All times are GMT -5. The time now is 09:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration