libmpeg2/mpeg2dec compilation issues
#1
libmpeg2/mpeg2dec compilation issues
I saw that nekoware has the last version at 4.0b, not the latest versions. I tried downloading 4.1 and got the following compilation error:

c99 -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include  -I/usr/nekoware/include -I/usr/include  -O3 -mips4 -c mpeg2dec.c
cc-1117 c99: ERROR File = mpeg2dec.c, Line = 66
  An expression appears after a "return" in a "void" function.

      return (RETSIGTYPE)0;
            ^

a little stumped at the code in that file's purpose. I'll be reviewing it in depth, but it doesn't exist in 4.0b and there wasn't any patches provided in that release. 


The later libmpeg2 releases appears to have asm files sprinkled in that cannot be turned off, but it may be the fault of configure.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,239
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
02-19-2020, 03:43 AM
#2
RE: libmpeg2/mpeg2dec compilation issues
That particular C function is declared/defined with return type 'void' , yet the return statement has an argument with integral, decimal or pointer type.
That is just sloppy programming.
Investigate if the return type is needed in calls of that specific function and adjust the code accordingly.
dexter1
Administrator

Trade Count: (1)
Posts: 297
Threads: 17
Joined: May 2018
Location: The Netherlands
Find Reply
02-19-2020, 08:39 AM
#3
RE: libmpeg2/mpeg2dec compilation issues
Deleted that line and it seems to compile.

Only issue is that it doesn't like the version of nm used by IRIX and GNU nm can't read the object files produced; so it looks like the check suite would need to be refactored. Either way, I'll know sooner or later when I test the entire set.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,239
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
02-21-2020, 08:46 AM
#4
RE: libmpeg2/mpeg2dec compilation issues
- libmpeg2 fixed and needs testing
- mpeg2dec fixed and need testing
EasyMode
Developer

Trade Count: (0)
Posts: 4
Threads: 1
Joined: Jan 2020
Find Reply
02-28-2020, 12:24 PM
#5
RE: libmpeg2/mpeg2dec compilation issues
libmpeg2 misidentified our platform as ARM, that was the big fix that solidcore did.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,239
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
02-29-2020, 12:24 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)