Hello I try to build file-4.25-20080704 on Solaris 9 at Sparc machine.
/bin/bash ../libtool --tag=CC --mode=compile /openpkg/bin/cc -DHAVE_CONFIG_H -I. -I.. -DMAGIC='"/openpkg/share/file/magic"' -I/openpkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -O2 -pipe -I/openpkg/include -MT getopt_long.lo -MD -MP -MF .deps/getopt_long.Tpo -c -o getopt_long.lo getopt_long.c /openpkg/bin/cc -DHAVE_CONFIG_H -I. -I.. -DMAGIC=\"/openpkg/share/file/magic\" -I/openpkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -O2 -pipe -I/openpkg/include -MT getopt_long.lo -MD -MP -MF .deps/getopt_long.Tpo -c getopt_long.c -o getopt_long.o getopt_long.c:77: warning: no previous prototype for 'file_warnx' getopt_long.c: In function 'file_warnx': getopt_long.c:78: error: 'va_list' undeclared (first use in this function) getopt_long.c:78: error: (Each undeclared identifier is reported only once getopt_long.c:78: error: for each function it appears in.) getopt_long.c:78: error: expected ';' before 'ap' getopt_long.c:79: warning: implicit declaration of function 'va_start' getopt_long.c:79: warning: nested extern declaration of 'va_start' getopt_long.c:79: error: 'ap' undeclared (first use in this function) getopt_long.c:80: warning: implicit declaration of function 'vfprintf' getopt_long.c:80: error: 'stderr' undeclared (first use in this function) getopt_long.c:81: warning: implicit declaration of function 'va_end' getopt_long.c:81: warning: nested extern declaration of 'va_end' getopt_long.c: In function 'getopt_internal': getopt_long.c:287: warning: cast discards qualifiers from pointer target type getopt_long.c: In function 'getopt': getopt_long.c:324: warning: cast discards qualifiers from pointer target type getopt_long.c:333: warning: cast discards qualifiers from pointer target type getopt_long.c: At top level: getopt_long.c:349: warning: function declaration isn't a prototype getopt_long.c: In function 'getopt_long': getopt_long.c:367: warning: cast discards qualifiers from pointer target type getopt_long.c:373: warning: cast discards qualifiers from pointer target type getopt_long.c:387: warning: cast discards qualifiers from pointer target type getopt_long.c:400: error: invalid use of undefined type 'struct option' getopt_long.c:400: error: dereferencing pointer to incomplete type I solved this using attached file.patch (replacing file.patch from original package). -- Artur Frysiak http://www.pld-linux.org
file.patch
Description: Binary data