About this list Date view Thread view Subject view Author view Attachment view

From: Adrian Reyer (are_at_lihas.de)
Date: Wed 15 Dec 2004 - 23:52:11 GMT


Hi,

when I tried to compile util-vserver-0.30.196, i got this error:
src/keep-ctx-alive.c: In function `doit':
src/keep-ctx-alive.c:145: error: `__arr' undeclared (first use in this function)
src/keep-ctx-alive.c:145: error: (Each undeclared identifier is reported only once
src/keep-ctx-alive.c:145: error: for each function it appears in.)
make[2]: *** [src/keep-ctx-alive.o] Error 1
make[2]: Leaving directory `/usr/local/src/util-vserver-0.30.196'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/util-vserver-0.30.196'
make: *** [all] Error 2

digging through the various header files I found all definitions to be
in place, so i renamed the variable fd_set to fd_set1 (still type
fd_set) to check which part of the line, the variable or the makro,
actually raised the error in the function doit(). Surprisingly the
error had been gone. The result worked fine. Changing back to original
version produced the error again.
In my understanding of C, there is no difference between the version,
seems for the compiler there is one anyway.

Version info:
# gcc -v
Reading specs from /usr/lib/gcc-lib/x86_64-linux/3.3.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
--disable-multilib x86_64-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-3)

# uname -a
Linux master1a 2.6.9-vs1.9.3 #1 SMP Wed Dec 15 11:21:46 UTC 2004 x86_64 GNU/Linux

Bertl suggested to test the result of compiling
typedef int karli;
int main(int argc, char *argv[])
{
karli karli = 7;
exit(karli);
}
However, this didn't produce the error.

The system is a dual Opteron running a 64bit AMD-Opteron optimized
Kernel, the distribution is Debians unofficial unstable (sid) amd64
version

Probably this should go to some gcc-dev list, too.

Regards,
        Adrian

-- 
LiHAS - LinuxHaus Stuttgart              Fon:  +49 (7 11) 2 85 19 05
Inh.: Adrian Reyer                       Fax:  +49 (7 11) 5 78 06 92
                                         Mail: lihas_at_lihas.de
Linux, Netzwerke, Consulting & Support   http://lihas.de/
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 15 Dec 2004 - 23:54:55 GMT by hypermail 2.1.3