[AG-TECH] vic compile problem.
Joshua M. Brown
jmb10 at uark.edu
Wed Jul 21 10:48:52 CDT 2004
Hey Folks,
Got all my gentoo install issues ironed out, but am having a problem
compiling vic :
http://www-mice.cs.ucl.ac.uk/multimedia/software/vic/download.html
i'll post the output, then a little system info to help:
=============begin output===============
g++ -o mkhuff -O2 -g -W -Wall -Wno-implicit-int -Wno-return-type -DLinux
-DUSE_SHM -fsigned-char -DED_YBITS=4 -DSIGRET=void -DNLAYER=8 -I.
-Icodec/tmndec -Icodec/tmn-x -Icodec/h263 -Irtp -Irender -Inet -Ivideo
-Icodec -I../common/src -I../tk-8.0/generic -I../tcl-8.0/generic
-Icodec/jpeg -Icodec/p64 -I. codec/p64/mkhuff.cpp
cc1plus: warning: "-Wno-implicit-int" is valid for C/ObjC but not for C++
In file included from /usr/include/unistd.h:775,
from config.h:130,
from codec/p64/mkhuff.cpp:49:
/usr/include/getopt.h:154: error: declaration of `int getopt(int, char*
const*,
const char*) throw ()' throws different exceptions
codec/p64/mkhuff.cpp:45: error: than previous declaration `int getopt(int,
char* const*, const char*)'
codec/p64/mkhuff.cpp:35: warning: `char rcsid[135]' defined but not used
make: *** [mkhuff] Error 1
==========end output===========
i understand and can code C easily, but c++ is, well, another animal. i
looked in the code and "getopt" is pulled in from C with:
===== begin rat_vic_packages/vic-2.8ucl1.1.5/vic/codec/p64/mkhuff.cpp ===
extern "C" {
int getopt(int, char * const *, const char *);
}
==== end rat_vic_packages/vic-2.8ucl1.1.5/vic/codec/p64/mkhuff.cpp ===
This is Gentoo 2.4.26-gentoo-r6, with little modification to the kernel
(nothing exotic).
Gcc info:
bash-2.05b# gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,f77,objc --enable-threads=posix
--enable-long-long --disable-checking --enable-cstdio=stdio
--enable-clocale=generic --enable-__cxa_atexit
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --disable-multilib
Thread model: posix
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
Emerge was sync'd yesterday. Basically, i assume i have done something
incorrectly as vic and gcc were written by people a lot sharper than i.
Anyone have any ideas?
Thank you.
Joshua M. Brown
University of Arkansas
Desktop Unix Support Team
Computing Services, UofA
More information about the ag-tech
mailing list