[mythtv-commits] Ticket #8184: FreeBSD specific fixes not being applied during configure tests

MythTV mythtv at cvs.mythtv.org
Mon Mar 15 16:26:10 UTC 2010


#8184: FreeBSD specific fixes not being applied during configure tests
--------------------------+-------------------------------------------------
 Reporter:  wagnerrp      |       Owner:  ijr    
     Type:  defect        |      Status:  new    
 Priority:  minor         |   Milestone:  unknown
Component:  Ports - *BSD  |     Version:  head   
 Severity:  medium        |     Mlocked:  0      
--------------------------+-------------------------------------------------
 Compilation of libmythfreemheg under FreeBSD fails due to a lack of
 ftime() or gettimeofday(). Tests for both failed in configure because of
 the addition of '-D_POSIX_C_SOURCE=200112' in CFLAGS.

 {{{
 BEGIN /tmp/mythtv_conf.eyYs8ZMk.c
     1
     2   #include <sys/time.h>
     3   int main(int argc, char **argv){
     4       return (long) gettimeofday;
     5   }
 END /tmp/mythtv_conf.eyYs8ZMk.c
 gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fPIC -I/usr/local/include -fomit-
 frame-pointer -c -o /tmp/mythtv_conf.IuHG9kdP.o
 /tmp/mythtv_conf.eyYs8ZMk.c
 /tmp/mythtv_conf.eyYs8ZMk.c: In function 'main':
 /tmp/mythtv_conf.eyYs8ZMk.c:4: error: 'gettimeofday' undeclared (first use
 in this function)
 /tmp/mythtv_conf.eyYs8ZMk.c:4: error: (Each undeclared identifier is
 reported only once
 /tmp/mythtv_conf.eyYs8ZMk.c:4: error: for each function it appears in.)
 }}}

 Removal of that define allows the test to run successfully, which in turn
 allows the library to compile successfully.

 {{{
 BEGIN /tmp/mythtv_conf.54M5QoG7.c
     1
     2   #include <sys/time.h>
     3   int main(int argc, char **argv){
     4       return (long) gettimeofday;
     5   }
 END /tmp/mythtv_conf.54M5QoG7.c
 gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC
 -std=c99 -fPIC -I/usr/local/include -fomit-frame-pointer -c -o
 /tmp/mythtv_conf.2mmRB4kP.o /tmp/mythtv_conf.54M5QoG7.c
 gcc -L/usr/local/lib -o /tmp/mythtv_conf.f4MwxabZ
 /tmp/mythtv_conf.2mmRB4kP.o
 }}}

 The fix already exists in configure on line 2856, but it is not being
 applied to the parameters given to the compile tests, causing the test to
 fail.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8184>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list