chenyunecjtu / coreavc-for-linux

Automatically exported from code.google.com/p/coreavc-for-linux
GNU General Public License v2.0
0 stars 1 forks source link

Unable to compile registercodec #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Checkout SVN code
2. make -C dshowserver

What is the expected output? What do you see instead?
Expected = successful build. I am told this: 

compat/compat.o: In function `get_path':
compat.c:(.text+0x91): multiple definition of `get_path'
/tmp/ccZTkFMz.o:modify_reg.c:(.text+0x5e): first defined here
/usr/bin/ld: Warning: size of symbol `get_path' changed from 10 in
/tmp/ccZTkFMz.o to 161 in compat/compat.o
collect2: ld returned 1 exit status

What version of the product are you using? On what operating system?
SVN Trunk. I'm trying to compile on both Fedora Core 4 and Ubuntu Feisty.
Both yield the same result. 

Please provide any additional information below.
I am running 32bit kernels (although I *am* using Athlon64 class CPUs).

Original issue reported on code.google.com by lists.dr...@gmail.com on 28 Jul 2007 at 9:13

GoogleCodeExporter commented 8 years ago
do:
make -c loader distclean
make -c loader

and see if that helps

If not, I need to see the actual command that make is executing (i.e):
make: Entering directory `coreavc-for-linux/loader'
cc -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith 
-Wredundant-decls
-O -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE 
-fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -o registercodec -static modify_reg.c

The message you have really sounds like you have an older version of svn, since 
there
should be no time when modify_reg.c and compat.o are compiled together.

Original comment by alannis...@gmail.com on 28 Jul 2007 at 3:58

GoogleCodeExporter commented 8 years ago
Hi again.

Sadly, it didn't help. Running svn update reveals that I am already at revision 
25.

I've attached the output of the make command.

For what it's worth, the value of get_path that ld seems upset about differs 
between
the 2 distros I am attempting to compile with - it's 161 under Feisty, and 139 
in
FC4. I'm not sure what (if any) relevance this has.

Original comment by drd...@gmail.com on 29 Jul 2007 at 11:35

Attachments:

GoogleCodeExporter commented 8 years ago
I apologize.  I had the fix in my local tree, and somehow forgot to check it in.
It should be resolved now.  Please 'svn update' and try again.

Original comment by alannis...@gmail.com on 29 Jul 2007 at 2:42