X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from smtp.freemail.gr (smtp.freemail.gr [81.171.104.132]) by mail.alpinelinux.org (Postfix) with ESMTP id 93A521F02998 for ; Wed, 2 Nov 2011 08:41:04 +0000 (UTC) Received: from [10.10.10.233] (ppp-94-65-197-226.home.otenet.gr [94.65.197.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.freemail.gr (Postfix) with ESMTP id 992A8338AE0 for ; Wed, 2 Nov 2011 10:55:19 +0200 (EET) Message-ID: <4EB1021C.10403@freemail.gr> Date: Wed, 02 Nov 2011 10:41:00 +0200 From: Harry Lachanas User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: Alpine Development Subject: [alpine-devel] Error while building a package in alp-2.3.0 Content-Type: multipart/alternative; boundary="------------090409060402040409090808" This is a multi-part message in MIME format. --------------090409060402040409090808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I am trying to build this ( http://liblcfg.carnivore.it/ )" and during ./configure I am getting ... error: cannot compute sizeof (long) The test code that breaks is included. Mean while I compiled the package in 2.2 Could somebody provide some help ??? Thanks Harry | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DECL_GETOPT 1 | #define HAVE_DECL_GETSUBOPT 1 | #define HAVE_DECL_GETOPT_LONG 0 | #define HAVE_DECL_SETENV 1 | #define HAVE_DECL_PUTENV 1 | #define RETSIGTYPE void | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | typedef long ac__type_sizeof_; | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | #include | #include | int | main () | { | | FILE *f = fopen ("conftest.val", "w"); | if (! f) | return 1; | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | { | long int i = longval (); | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | return 1; | fprintf (f, "%ld\n", i); | } | else | { | unsigned long int i = ulongval (); | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | return 1; | fprintf (f, "%lu\n", i); | } | return ferror (f) || fclose (f) != 0; | | ; | return 0; | } configure:13456: error: cannot compute sizeof (long) --------------090409060402040409090808 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
I am trying to build this ( http://liblcfg.carnivore.it/ )" and during ./configure I am getting ...
error: cannot compute sizeof (long) 
The test code that breaks is included.

Mean while  I compiled the package in 2.2
Could somebody provide some help ???

Thanks
Harry



| #define STDC_HEADERS 1                                                                 
| #define HAVE_SYS_TYPES_H 1                                                                                                                                          
| #define HAVE_SYS_STAT_H 1                                                                                                    
| #define HAVE_STDLIB_H 1                                                                                                   
| #define HAVE_STRING_H 1                                                                    
| #define HAVE_MEMORY_H 1                                                                
| #define HAVE_STRINGS_H 1                                                               
| #define HAVE_INTTYPES_H 1                                                              
| #define HAVE_STDINT_H 1                                                                    
| #define HAVE_UNISTD_H 1                                                                    
| #define HAVE_DLFCN_H 1                                                                 
| #define LT_OBJDIR ".libs/"                                                                 
| #define HAVE_STDINT_H 1                                                                                                      
| #define HAVE_STDLIB_H 1                                                                               
| #define HAVE_STRING_H 1                                                                
| #define HAVE_STRINGS_H 1                                                               
| #define HAVE_UNISTD_H 1                                                                
| #define HAVE_DECL_GETOPT 1                                                             
| #define HAVE_DECL_GETSUBOPT 1                                                          
| #define HAVE_DECL_GETOPT_LONG 0                                                                  
| #define HAVE_DECL_SETENV 1                                                             
| #define HAVE_DECL_PUTENV 1                                                                 
| #define RETSIGTYPE void                                                                
| /* end confdefs.h.  */                                                                 
| #include <stdio.h>                                                                           
| #ifdef HAVE_SYS_TYPES_H                                                                                                                                             
| # include <sys/types.h>                                                                
| #endif                                                                                                                                                              
| #ifdef HAVE_SYS_STAT_H                                                                 
| # include <sys/stat.h>                                                                                                       
| #endif                                                                                                        
| #ifdef STDC_HEADERS                                                                    
| # include <stdlib.h>                                                                   
| # include <stddef.h>                                                                   
| #else                                                                                  
| # ifdef HAVE_STDLIB_H                                                                                                      
| #  include <stdlib.h>                                                                  
| # endif                                                                                               
| #endif                                                                                                                      
| #ifdef HAVE_STRING_H                                                                                                                 
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H                                       
| #  include <memory.h>                                                                                                       
| # endif                                                                                   
| # include <string.h>                                                                  
| #endif                                                                                                                                                             
| #ifdef HAVE_STRINGS_H                                                                                                       
| # include <strings.h>                                                                                                    
| #endif                                                                                    
| #ifdef HAVE_INTTYPES_H                                                                
| # include <inttypes.h>                                                                
| #endif                                                                                
| #ifdef HAVE_STDINT_H                                                                      
| # include <stdint.h>                                                                      
| #endif                                                                                
| #ifdef HAVE_UNISTD_H                                                                      
| # include <unistd.h>                                                                                                        
| #endif                                                                                               
|    typedef long ac__type_sizeof_;                                                     
| static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }         
| static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
| #include <stdio.h>                                                                    
| #include <stdlib.h>                                                                   
| int   
| main ()                                                                                                                              
| {                                                                                         
|                                                                                                                             
|   FILE *f = fopen ("conftest.val", "w");                                                  
|   if (! f)                                                                            
|     return 1;                                                                                                                                                      
|   if (((long int) (sizeof (ac__type_sizeof_))) < 0)                                                                         
|     {                                                                                                                    
|       long int i = longval ();                                                            
|       if (i != ((long int) (sizeof (ac__type_sizeof_))))                              
|       return 1;                                                                       
|       fprintf (f, "%ld\n", i);                                                        
|     }                                                                                     
|   else                                                                                    
|     {                                                                                 
|       unsigned long int i = ulongval ();                                                  
|       if (i != ((long int) (sizeof (ac__type_sizeof_))))                                                                    
|       return 1;                                                                                      
|       fprintf (f, "%lu\n", i);                                                        
|     }                                                                                 
|   return ferror (f) || fclose (f) != 0;                                               
|                                                                                       
|   ;                                                                                   
|   return 0;                                                                                     
| }                                                                                     
configure:13456: error: cannot compute sizeof (long)    
--------------090409060402040409090808-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---