This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

B20: weird variables bug (tryed on win98)


Hi there!

I was trying to compile the program eggdrop1.3.22  (you could get it
from www.sodre.net/eggdrop)
i couldn't compile it for several reasons...

You have to execute sh configure at the beginning, it seems working
perfect, but at some points, the
if test = "whatever'  statements seems not to work, i had to edit the
configure and comment those lines.

Then the configure run pretty well, except for this weird thing...

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF

#define $ac_tr_func 1
EOF

well, this is just part of a bucle, it just check if that thing is on
the OS, which is, pass the test, everything perfect, then
check for the next thing, etc... and if everything is ok arrives to this
point and sets the name of the variable to 1
something like #define HAVE_DPRINTF 1
since it is a bucle, the #define change each time, next time it could be
#define HAVE_TIME_SYS 1
and so on...

well, the script works perfect, but after several loops the variable
'ac_tr_func' does not get any value
which is very weird, i tryed and echo to see if
echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
was working, and it was, in fact it even say HAVE_DPRINTF yes, etc...
but it do not put that information into the 'ac_tr_func' variable, so
the #define gets empty and after that everything is a mess since the
whole configure think does things are not detected.

And example, i add a line to echo "$ac_tr_func" and this is what i get
compiling...

checking for rename... (cached) yes
HAVE_RENAME            <-- this is the echo
checking for getrusage... (cached) yes
HAVE_GETRUSAGE           <-- this is the echo
checking for getdtablesize... (cached) yes
HAVE_GETDTABLESIZE
checking for srandom... (cached) yes
HAVE_SRANDOM
checking for random... (cached) yes
HAVE_RANDOM     < the echo...
checking for sigaction... (cached) yes
HAVE_  <-- mistake... why? as you can see it detect it perfect, i check
everything
after this i have a collection of
HAVE_

and on the file that it writes...

#define HAVE_RENAME 1
#define HAVE_GETRUSAGE 1
#define HAVE_GETDTABLESIZE 1
#define HAVE_SRANDOM 1
#define HAVE_RANDOM 1
#define HAVE_ 1
#define HAVE_ 1
#define HAVE_ 1
#define HAVE_ 1

... etc, whole file like that :(

the configure script is perfect, works beatifully on my linux and in
some other unixes
here it seems after a while i doesn't assign properly the values of that

ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
line
but if i put
echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
the value returned is perfect, it just doesn't get into the
ac_tr_func    :(

any ideas?
if you want to check it since is a big configure script, you can go to
the webpage i said on top
www.sodre.net/eggdrop      file eggdrop1.3.22
just untar it and ran   sh configure
funny stuff happening :(

---------------------------------------------------------------
!     C r e a t i v i t y     M u s t    S u r v i v e        !
---------------------------------------------------------------
!  Fido: 2:341/19.67                 Euronet: 25:928/100.67   !
!  Internet: creative1@bigfoot.com                            !
!  Http://surf.to/creative                  Ya me direis :)   !
---------------------------------------------------------------
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]