jackjones2220 / cfg-loader

Automatically exported from code.google.com/p/cfg-loader
0 stars 0 forks source link

wbfs_file compiles improperly on Debian #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. make

What is the expected output?

gcc -Wall -W -O  -Ilibwbfs -I. -D_LARGEFILE_SOURCE -DLARGE_FILES 
-D_FILE_OFFSET_BITS=64 
-c wbfs.c -o wbfs.o 

What do you see instead?

gcc -Wall -W -O  -Ilibwbfs -I. -DLARGE_FILES -D_FILE_OFFSET_BITS=64 -c wbfs.c 
-o wbfs.o 
wbfs.c: In function `read_wii_file':
wbfs.c:214: warning: implicit declaration of function `fseeko'
wbfs.c: In function `get_iso_info':
wbfs.c:1257: warning: implicit declaration of function `ftello'

What version of the loader are you using?
wbfs_file 2.8

Please provide any additional information below.

Based on research, _LARGEFILE_SOURCE must be defined in CFLAGS so that stdio.h 
includes the 
definition for fseeko/ftello. It will compile with a warning if this is not 
included, but will not run 
properly. (This is true for the distribution I am running under, which I think 
is Debian (on 
SPARC), but I am not positive.)

http://bugs.gentoo.org/show_bug.cgi?id=203651

Original issue reported on code.google.com by delta...@gmail.com on 6 Feb 2010 at 6:24

GoogleCodeExporter commented 8 years ago
It is not my goal to support that tool on every possible linux distro. It 
builds and 
works fine on fedora which i use. Linux people are generally capable of fixing 
such 
small issues so I don't intend to make any modifications at the moment.

Original comment by ogg...@gmail.com on 24 Feb 2010 at 10:49