Hi, Sorry if this has been posted about before. I'm trying to upgrade my personal Icecast from some ancient pre-release CVS version, and I've hit trouble: gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -ffast-math -fsigned-char -I/usr/local/include -I/usr/local/include/libxml2 -pthread -g -O2 -c `test -f 'main.c' || echo './'`main.c In file included from /usr/local/include/libxslt/xsltInternals.h:20, from xslt.h:18, from main.c:49: /usr/local/include/libxml2/libxml/dict.h:30: syntax error before `xmlDictPtr' /usr/local/include/libxml2/libxml/dict.h:31: warning: data definition has no type or storage class /usr/local/include/libxml2/libxml/dict.h:32: syntax error before `xmlDictPtr' /usr/local/include/libxml2/libxml/dict.h:33: warning: data definition has no type or storage class ... Details are as follows: Linux Debian 2.2 (x86) gcc version 2.95.2 20000220 (Debian GNU/Linux) libogg 1.1.2 Libvorbis aoTuV b3 libxml2 2.6.22 libxslt 1.1.15 Is my compiler just too old, or is there something else I can do? Geoff. -- Geoff Shang <geoff@hitsandpieces.net> Phone: +61-418-96-5590 MSN: geoff@acbradio.org Make sure your E-mail can be read by everyone! http://www.betips.net/etc/evilmail.html Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
It is almost certain to be the old compiler. Try upgrading to around gcc-3.3.6. If that doesn't work, try dropping back to libxml-2.6.21 with the upgraded compiler. Icecast 2.3.1 compiles wihout problems with that lib and gcc on Slackware Linux with both 2.4.29 and 2.4.31 kernels. On Wed, 14 Dec 2005, Geoff Shang wrote:> Hi, > > Sorry if this has been posted about before. > > I'm trying to upgrade my personal Icecast from some ancient pre-release CVS > version, and I've hit trouble: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -ffast-math -fsigned-char > -I/usr/local/include -I/usr/local/include/libxml2 -pthread -g -O2 -c `test > -f 'main.c' || echo './'`main.c > In file included from /usr/local/include/libxslt/xsltInternals.h:20, > from xslt.h:18, > from main.c:49: > /usr/local/include/libxml2/libxml/dict.h:30: syntax error before `xmlDictPtr' > /usr/local/include/libxml2/libxml/dict.h:31: warning: data definition has no > type or storage class > /usr/local/include/libxml2/libxml/dict.h:32: syntax error before `xmlDictPtr' > /usr/local/include/libxml2/libxml/dict.h:33: warning: data definition has no > type or storage class > ... > > Details are as follows: > > Linux Debian 2.2 (x86) > gcc version 2.95.2 20000220 (Debian GNU/Linux) > libogg 1.1.2 > Libvorbis aoTuV b3 > libxml2 2.6.22 > libxslt 1.1.15 > > Is my compiler just too old, or is there something else I can do? > > Geoff.Robert Muchnick Xenterra.net 720-276-7917
On 12/13/05, Robert Muchnick <hostmaster@xenterra.net> wrote:> It is almost certain to be the old compiler. Try upgrading to around > gcc-3.3.6. If that doesn't work, try dropping back to libxml-2.6.21 with > the upgraded compiler. Icecast 2.3.1 compiles wihout problems with that > lib and gcc on Slackware Linux with both 2.4.29 and 2.4.31 kernels.I agree with Robert. Upgrade your compiler. I was able to compile Icecast 2.3.1 and its dependencies from source on Debian 3.1r0a (GNU/Linux 2.6.8) using gcc 3.3.5.