Bug 9413 - cannot build ggz-client-libs
Bug#: 9413 Product:  Gentoo Linux Version: 1.4_rc1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: jrray@jrray.org Reported By: arnaud_oss@bluewin.ch
Component: Games
URL: 
Summary: cannot build ggz-client-libs
Keywords:  
Status Whiteboard: 
Opened: 2002-10-20 20:00 0000
Description:   Opened: 2002-10-20 20:00 0000
version : 0.0.5

Build fails during configure saying it can't find popt.h which exists...

configure: error: *** Cannot find popt.h header

!!! ERROR: The ebuild did not complete successfully.
!!! Function econf, Line 9, Exitcode 1
!!! econf failed

about popt.h : 

root@ghort666:/tmp> stat /usr/include/popt.h                                   
                                        
  File: `/usr/include/popt.h'
    Size: 13154           Blocks: 32         IO Block: 4096   Regular File
    Device: 3a00h/14848d    Inode: 374141      Links: 1
    Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2002-10-15 06:08:49.000000000 +0200
    Modify: 2002-10-15 06:08:49.000000000 +0200
    Change: 2002-10-15 06:08:49.000000000 +0200

ok, what is in config.log:

configure:5963: checking for popt.h
configure:5973: /lib/cpp  -I/usr/include conftest.c >/dev/null 2>conftest.out
cpp0: warning: changing search order for system directory "/usr/include"
cpp0: warning:   as it has already been specified as a non-system directory
configure: failed program was:
#line 5968 "configure"
#include "confdefs.h"
#include <popt.h>

both lines with cpp0:... are the whole stderr output of the above cmdline, and
configure does :
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
and checks if ac_err is null, it isn't because it contains both lines beginning
by cpp0:...
so configure fails... thinking the output was like "popt.h : not found"

I don't know how these configure scripts work, so I've got no idea of where to
fix that...

Hope you've got all needed infos ...

Arnaud

------- Comment #1 From Seemant Kulleen (RETIRED) 2002-10-22 02:44:13 0000 -------
gcc 3 issue it looks like

------- Comment #2 From J Robert Ray 2002-10-23 12:28:46 0000 -------
I committed a new ebuild with a patch that eliminates the cause of the
warnings.
 This is really a bug in autoconf, though.