[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    configure in kdelibs
From:       Uwe Thiem <uwe () uwix ! alt ! na>
Date:       1999-09-27 8:30:43
[Download RAW message or body]

In kdelibs HEAD branch this configure test fails on my Alpha running
SuSE 6.1:

configure:6452: checking for random
configure:6483: g++ -o conftest -O2  -s conftest.C  1>&5
collect2: ld terminated with signal 11 [Segmentation fault]
configure: failed program was:
#line 6457 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char random(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char random();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_random) || defined (__stub___random)
choke me
#else
random();
#endif

; return 0; }


Resulting in this error lateron because HAVE_RANDOM isn't defined in
config.h:

make[2]: Entering directory `/opt/kdelibs/kdecore'
/bin/sh ../libtool --silent --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I.. -I../kdecore -I../kdeui -I/opt/qt-2.0.1/include -I/usr/X11R6/include
-I/opt/kde2/include     -O2 -c kstddirs.cpp
In file included from kstddirs.cpp:10:
/usr/include/stdlib.h:346: new declaration `int32_t random()'
../config.h:397: ambiguates old declaration `long int random()'
../config.h:398: previous declaration of `void srandom(unsigned int)' with
C++ linkage
/usr/include/stdlib.h:349: conflicts with new declaration with C linkage
/usr/include/stdlib.h:349: warning: declaration of `srandom(unsigned int)'
throws different exceptions
../config.h:398: warning: previous declaration here
make[2]: *** [kstddirs.lo] Error 1

Editing config.h manually helps.

Uwe

-------------------------------------------------------------------------
Uwe Thiem                                        Tel: +264 - 061 - 244511
P.O.Box 30955                                    Fax: +264 - 061 - 244511
Windhoek                                         Email:   uwe@uwix.alt.na
Republic of Namibia                                           uwe@kde.org
                                                       http://www.kde.org
                  **********************************
         You can still escape from the GATES of hell: Use KDE!
-------------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic