Bug 1523

Summary: ghostscript-native fails on Ubuntu 11.10 x86_64
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Lock - Disabled <josh>
Component: coreAssignee: Joshua Lock - Disabled <josh>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: High CC: meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
config.log for failing build none

Description Joshua Lock - Disabled 2011-09-23 13:25:58 UTC
Attempting a world build on 64bit Oneiric beta Ghostscript compilation fails with the following error:


| In file included from ./base/gp_unix.c:19:0:
| ./base/time_.h:49:8: error: redefinition of 'struct timeval'
| /usr/include/x86_64-linux-gnu/bits/time.h:75:8: note: originally defined here
| In file included from ./base/gp_stdia.c:19:0:
| ./base/time_.h:49:8: error: redefinition of 'struct timeval'
| /usr/include/x86_64-linux-gnu/bits/time.h:75:8: note: originally defined here
| ./base/gp_unix.c: In function 'gp_get_realtime':
| ./base/gp_unix.c:148:9: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
Comment 1 Saul Wold 2011-09-25 09:34:24 UTC
Please attach the config.log from ghostscript-native (not log.do_configure), I need the realy configure log file.  It looks a configure test failed, possibly marking HAVE_SYS_TIME_H off.

Can you verify how | /usr/include/x86_64-linux-gnu/bits/time was included into the compilation path?  Via /usr/include/sys/time.h? or some other way.

Also, please check the obj/gconfig_.h, is HAVE_SYS_TIME_H defined there?
Comment 2 Joshua Lock - Disabled 2011-09-27 08:35:35 UTC
Created attachment 259 [details]
config.log for failing build

obj/gconfig_.h is as follows:

/* This file was generated automatically by unix-aux.mak. */
#define HAVE_DIRENT_H

HAVE_SYS_TIME_H is not defined.
Comment 3 Saul Wold 2011-09-30 08:42:08 UTC
Assigned to Josh since he fixed and should have the honour of closing it!
Comment 4 Joshua Lock - Disabled 2011-09-30 08:52:32 UTC
Fixed in master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ea8a9978ec6a94e4047c3a9d5b0649479ac9f491

As this bug is marked 1.1 I'll keep it open until the change makes it into Edison
Comment 6 Joshua Lock - Disabled 2012-04-17 23:28:49 UTC
Definitely fixed