Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2822 - xmps won't build with the gcc3 profile
Summary: xmps won't build with the gcc3 profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jay Pfeifer (RETIRED)
URL:
Whiteboard:
Keywords:
: 15837 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-18 07:02 UTC by Antonio D'souza
Modified: 2003-04-19 11:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new ebuild for xmps (xmps-0.2.0-r3.tar.bz2,1.53 KB, application/octet-stream)
2003-03-01 19:29 UTC, Jay Pfeifer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio D'souza 2002-05-18 07:02:56 UTC
This is the error I get when building the latest ebuild:

gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -march=i686 -O3 -pipe
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -Wall -Werror -DVERSION=\"0.2.0\"
-DPACKAGE=\"xmps\" -I/usr/include -I../../../src -I../../../libxmps
-I../../../intl -I../../src -I../../libxmps -Wall -DHAVE_MMX -DHAVE_2Dnow
-DARCH_X86 -march=i686 -O3 -pipe -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall
-Werror -c motion_comp.c  -fPIC -DPIC -o .libs/motion_comp.lo
motion_comp.c:116:1: pasting "motion_comp_put" and "##" does not give a valid
preprocessing token
motion_comp.c:116: syntax error at '##' token
motion_comp.c:116: parse error before "_16x16_c"
cc1: warnings being treated as errors
motion_comp.c:116: warning: return type defaults to `int'
motion_comp.c:116:1: pasting "motion_comp_put" and "##" does not give a valid
preprocessing token

<snip>

{standard input}: Assembler messages:
{standard input}:111: Error: symbol `_x_16x16_c' is already defined
{standard input}:367: Error: symbol `_y_16x16_c' is already defined
{standard input}:685: Error: symbol `_xy_16x16_c' is already defined
make[4]: *** [motion_comp.lo] Error 1
make[4]: Leaving directory
`/var/tmp/portage/xmps-0.2.0-r1/work/xmps-0.2.0/codecs/video/mpeg3'
Comment 1 Antonio D'souza 2002-07-31 06:36:49 UTC
The error is now different:

Making all in file
make[3]: Entering directory
`/var/tmp/portage/xmps-0.2.0-r1/work/xmps-0.2.0/media/file'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
-march=i686 -O3 -pipe -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall
-Werror -DVERSION=\"0.2.0\" -DPACKAGE=\"xmps\" -I/usr/include -I../../src
-I../../libxmps -I../../intl -I../../src -I../../libxmps -Wall    -march=i686
-O3 -pipe -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall
-Werror -c file_media.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -march=i686 -O3 -pipe
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -Wall -Werror -DVERSION=\"0.2.0\"
-DPACKAGE=\"xmps\" -I/usr/include -I../../src -I../../libxmps -I../../intl
-I../../src -I../../libxmps -Wall -march=i686 -O3 -pipe -I/usr/include/gnome-1.0
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -Wall -Werror -c file_media.c  -fPIC -DPIC -o
.libs/file_media.lo
cc1: changing search order for system directory "/usr/include"
cc1:   as it has already been specified as a non-system directory
make[3]: *** [file_media.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/xmps-0.2.0-r1/work/xmps-0.2.0/media/file'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xmps-0.2.0-r1/work/xmps-0.2.0/media'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmps-0.2.0-r1/work/xmps-0.2.0'
make: *** [all-recursive-am] Error 2
Comment 2 Brandon Low (RETIRED) gentoo-dev 2002-09-02 21:42:21 UTC
This just needs some sed-fu to remove the -Werror from the CFLAGS, I'll get to
it soon, thanks.
Comment 3 Brandon Low (RETIRED) gentoo-dev 2002-10-23 13:41:17 UTC
oy, there is a lot more wrong with this than just that... some of it goes above
my head... I'm looking around to see if anyone else has gotten it to compile
with gcc-3.1...
Comment 4 Antonio D'souza 2003-01-07 12:06:48 UTC
This is still broken in the 0.4 release on gcc3.2 in gentoo1.4-rc2:

gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -mcpu=athlon -march=athlon -O3 -pipe
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -Wall -Werror -DVERSION=\"0.2.0\"
-DPACKAGE=\"xmps\" -I/usr/include -I../../../src -I../../../libxmps
-I../../../intl -I../../src -I../../libxmps -Wall -DHAVE_MMX -DHAVE_2Dnow
-DARCH_X86 -mcpu=athlon -march=athlon -O3 -pipe -I/usr/include/gnome-1.0
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -Wall -Werror -c motion_comp.c  -fPIC -DPIC -o
.libs/motion_comp.lo
motion_comp.c:116:14: pasting "motion_comp_put" and "##" does not give a valid
preprocessing token
motion_comp.c:116: syntax error at '##' token
motion_comp.c:116: parse error before "_16x16_c"
cc1: warnings being treated as errors
motion_comp.c:116: warning: return type defaults to `int'
motion_comp.c:116:14: pasting "motion_comp_put" and "##" does not give a valid
preprocessing token
motion_comp.c:116: syntax error at '##' token
motion_comp.c:116: parse error before "_8x8_c"
motion_comp.c:116: warning: return type defaults to `int'

<snip>

motion_comp.c:125: initializer element is not constant
motion_comp.c:125: (near initialization for `mc_functions_c.avg')
make[4]: *** [motion_comp.lo] Error 1
make[4]: Leaving directory
`/var/tmp/portage/xmps-0.2.0-r1/work/xmps-0.2.0/codecs/video/mpeg3'
Comment 5 Jay Pfeifer (RETIRED) gentoo-dev 2003-03-01 19:29:12 UTC
Created attachment 8863 [details]
new ebuild for xmps

this ebuild should fix the compile errors on motion_comp.c
tested on gcc 3.2.2 & glibc 2.3.1

i'll upload to cvs later.

regards,

_j_
Comment 6 Jay Pfeifer (RETIRED) gentoo-dev 2003-03-04 20:22:17 UTC
bug fix uploaded to cvs. closing bug.
Comment 7 Antonio D'souza 2003-03-15 10:51:25 UTC
OK, so now it builds but it crashes on startup with a SEGV & the following stack trace:

0x15f8c7f0 in get_audio_decoder_info () from /usr/lib/xmps/codecs/audio/libac3.so
(gdb) bt
#0  0x15f8c7f0 in get_audio_decoder_info () from /usr/lib/xmps/codecs/audio/libac3.so
#1  0x15584b89 in xmps_load_plugin () from /usr/lib/libxmps.so
#2  0x15584d62 in xmps_plugin_scan_dir () from /usr/lib/libxmps.so
#3  0x15584e1c in xmps_load_all () from /usr/lib/libxmps.so


Should I be rebuilding a dependency?
Comment 8 Brandon Low (RETIRED) gentoo-dev 2003-04-19 11:32:02 UTC
*** Bug 15837 has been marked as a duplicate of this bug. ***