LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-25-2010, 02:10 PM   #1
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Rep: Reputation: 15
Strange issue, unable to run configure script for libptp


I have issues with running the configure script for libptp2.

I have tried three different versions, including the latest.

The problem is that the configure script halts due to an infinite stat64() of the /etc/localtime at this point:

Code:
checking for inline... inline
checking whether struct tm is in sys/time.h or time.h... time.h
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime...
The script continues to stat the file ad infinitum from an strace I did:

Code:
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=126, ...}) = 0
...
I tried to modify the configure script to simply skip this step, but then I got the same issue at the checking for "alarm" step -- which also keeps doing stat64() on the /etc/localtime. I commented this out too, and then I finally got:

Code:
checking for unistd.h... (cached) yes
./configure: line 21012: /bin: is a directory
./configure: line 21013: limits.h: No such file or directory
./configure: line 21014: limits.h: No such file or directory
./configure: line 21017: /bin: is a directory
./configure: line 21018: syntax error near unexpected token `('
./configure: line 21018: `    which can conflict with char $ac_func (); below.'
After enough hacking at the configure script I got past this too, only to halt AGAIN at:

Code:
checking for unistd.h... (cached) yes
Which (from another strace) also keeps polling the same /etc/localtime file.

At this point I give up.

The contents of my /etc/localtime:

Code:
x86_1# cat /etc/localtime
TZif2ÿÿñðGMT+1TZif2ÿÿñðGMT+1
<GMT+1>1
My system is a plain x86 with a fresh Slackware 13.1 install, with no other known issues.
 
Old 06-25-2010, 06:05 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Slackware 13.1 - 32 Bits.

"checking for working mktime..."

libptp2-1.1.0 : one minute.
libptp2-1.1.10 : one minute and 25 seconds.

Not a very fast computer : Celeron 2.6 GHz, from 2004.
..
P.S. There is a libptp2-1.1.0-gcc4.patch
..
 
Old 06-25-2010, 07:03 PM   #3
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Slackware 13.1 - 32 Bits.

"checking for working mktime..."

libptp2-1.1.0 : one minute.
libptp2-1.1.10 : one minute and 25 seconds.

Not a very fast computer : Celeron 2.6 GHz, from 2004.
..
P.S. There is a libptp2-1.1.0-gcc4.patch
..
Jesus, you were right.

I had NEVER thought it would actually finish, especially given how it apparently only did the same thing over and over in an infinite loop!

It actually took around a minute or so on my system as well, and my system is a Core i7 at 4.12 GHz (with overclocked RAM as well -- 6 GiB) with a new Crucial SSD.

Why on earth does that take such a long time? Everything else in the configure script takes about a small fraction of a second, it has to be some kind of fault?
 
Old 06-25-2010, 09:49 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
About say one of fifty applications has that configure
test : 'checking for working mktime'.

And a minute is what it takes.
( Doesn't matter so much if the compile time is hours.)
I just do something else :
Leave the computer, make a cup of coffee .....

... The command ' ./configure && make ' can be used.
...

About 'mktime' 1) http://www.opengroup.org/onlinepubs/...ns/mktime.html
2) Certain combinations of older gcc, autoconf and
of course bugs can make the test fail or loop.
...

Last edited by knudfl; 06-26-2010 at 12:11 AM.
 
  


Reply



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
Crontab - unable to run simple script Bono Linux - Server 7 12-28-2008 05:32 PM
Unable to run script on Ubuntu64 donovanv Linux - Software 4 05-24-2008 09:07 PM
unable to run perl script using browser madhuri Debian 3 12-02-2005 04:46 PM
Yet another configure script that won't run gauge73 Linux - Newbie 1 02-14-2004 02:25 PM
problem with alsa drivers, unable to run ./configure mankeponken Linux - Newbie 15 07-28-2003 03:59 AM

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

All times are GMT -5. The time now is 05:34 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