Bug 12668 - Audio::Scan - Makefile compile options incorrect for SunStudio cc
: Audio::Scan - Makefile compile options incorrect for SunStudio cc
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 7.4.0
: Sun Other
: -- major (vote)
: 7.4.0
Assigned To: Andy Grundman
: Audio::Scan
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-03 04:14 UTC by Bret
Modified: 2011-03-16 04:34 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bret 2009-07-03 04:14:46 UTC
Runing into a problem with the Makefile compiler options when I'm trying to get Audio::Scan - Audio-Scan-0.23 PerlModule compiled on OpenSolaris using SunSudio12 update1. 

Perhaps Andy could please help with the below; 

root@fugly:/root/.cpan/sources/authors/id/A/AG/AGRUNDMA/Audio-Scan-0.23# perl ./Makefile.PL

Audio::Scan will be built with:

   MP3 support:     yes
   MP4 support:     yes
  FLAC support:     yes (/usr/include)
   OGG support:     yes
   ASF support:     yes
   MPC support:     yes
   MAC support:     yes
   WAV support:     yes
   AIFF support:    yes

Checking if your kit is complete...
Looks good
Writing Makefile for Audio::Scan

==

root@fugly:/root/.cpan/sources/authors/id/A/AG/AGRUNDMA/Audio-Scan-0.23# make
cp lib/Audio/Scan.pm blib/lib/Audio/Scan.pm
cd libid3tag && CC="cc" CFLAGS="-xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC" LDFLAGS="" ./configure --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of cc... none
checking for a sed that does not truncate output... /usr/gnu/bin/sed
checking for egrep... grep -E
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... CC
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... yes
checking dependency style of CC... none
checking how to run the C++ preprocessor... CC -E
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... no
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 262144
checking command to parse /usr/bin/nm -p output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc static flag  works... yes
checking for cc option to produce PIC... -KPIC
checking if cc PIC flag -KPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the CC linker (/usr/bin/ld) supports shared libraries... yes
checking for CC option to produce PIC... -KPIC
checking if CC PIC flag -KPIC works... yes
checking if CC supports -c -o file.o... yes
checking whether the CC linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -KPIC
checking if f77 PIC flag -KPIC works... no
checking if f77 supports -c -o file.o... no
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking for ANSI C header files... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking for unistd.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for ftruncate... yes
checking for compress2 in -lz... yes
checking whether to enable profiling... no
checking whether to enable debugging... default
configure: creating ./config.status
config.status: creating Makefile
config.status: creating msvc++/Makefile
config.status: creating libid3tag.list
config.status: creating config.h
config.status: executing depfiles commands
cd libid3tag && make all
make  all-recursive
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o version.lo version.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c version.c  -KPIC -DPIC -o .libs/version.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c version.c -o version.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o ucs4.lo ucs4.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c ucs4.c  -KPIC -DPIC -o .libs/ucs4.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c ucs4.c -o ucs4.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o latin1.lo latin1.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c latin1.c  -KPIC -DPIC -o .libs/latin1.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c latin1.c -o latin1.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o utf16.lo utf16.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c utf16.c  -KPIC -DPIC -o .libs/utf16.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c utf16.c -o utf16.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o utf8.lo utf8.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c utf8.c  -KPIC -DPIC -o .libs/utf8.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c utf8.c -o utf8.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o parse.lo parse.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c parse.c  -KPIC -DPIC -o .libs/parse.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c parse.c -o parse.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o render.lo render.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c render.c  -KPIC -DPIC -o .libs/render.o
"render.c", line 119: warning: assignment type mismatch:
        pointer to const unsigned char "=" pointer to char
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c render.c -o render.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o field.lo field.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c field.c  -KPIC -DPIC -o .libs/field.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c field.c -o field.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o frametype.lo frametype.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frametype.c  -KPIC -DPIC -o .libs/frametype.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frametype.c -o frametype.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o compat.lo compat.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c compat.c  -KPIC -DPIC -o .libs/compat.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c compat.c -o compat.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o genre.lo genre.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c genre.c  -KPIC -DPIC -o .libs/genre.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c genre.c -o genre.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o frame.lo frame.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frame.c  -KPIC -DPIC -o .libs/frame.o
"frame.c", line 294: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "compat.h", line 36
        argument : pointer to const unsigned char
"frame.c", line 310: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "compat.h", line 36
        argument : pointer to const unsigned char
"frame.c", line 322: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 362: warning: assignment type mismatch:
        pointer to const unsigned char "=" const pointer to const char
"frame.c", line 369: warning: assignment type mismatch:
        pointer to const unsigned char "=" pointer to char
"frame.c", line 398: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 449: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 471: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 186
        argument : pointer to const unsigned char
"frame.c", line 477: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 70
        argument : pointer to const unsigned char
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frame.c -o frame.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o crc.lo crc.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c crc.c  -KPIC -DPIC -o .libs/crc.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c crc.c -o crc.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o util.lo util.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c util.c  -KPIC -DPIC -o .libs/util.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c util.c -o util.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o tag.lo tag.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c tag.c  -KPIC -DPIC -o .libs/tag.o
"tag.c", line 362: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const unsigned char : "latin1.h", line 36
        argument : pointer to char
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c tag.c -o tag.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o file.lo file.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c file.c  -KPIC -DPIC -o .libs/file.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c file.c -o file.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link cc  -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC    -o libid3tag.la -rpath /usr/local/lib -version-info 3:0:3 version.lo ucs4.lo latin1.lo utf16.lo  utf8.lo parse.lo render.lo field.lo frametype.lo compat.lo  genre.lo frame.lo crc.lo util.lo tag.lo file.lo    -lz
/usr/bin/ld -G -h libid3tag.so.0 -o .libs/libid3tag.so.0.3.0  .libs/version.o .libs/ucs4.o .libs/latin1.o .libs/utf16.o .libs/utf8.o .libs/parse.o .libs/render.o .libs/field.o .libs/frametype.o .libs/compat.o .libs/genre.o .libs/frame.o .libs/crc.o .libs/util.o .libs/tag.o .libs/file.o  -lz -lc
(cd .libs && rm -f libid3tag.so.0 && ln -s libid3tag.so.0.3.0 libid3tag.so.0)
(cd .libs && rm -f libid3tag.so && ln -s libid3tag.so.0.3.0 libid3tag.so)
ar cru .libs/libid3tag.a  version.o ucs4.o latin1.o utf16.o utf8.o parse.o render.o field.o frametype.o compat.o genre.o frame.o crc.o util.o tag.o file.o
ranlib .libs/libid3tag.a
creating libid3tag.la
(cd .libs && rm -f libid3tag.la && ln -s ../libid3tag.la libid3tag.la)
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp  -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap  Scan.xs > Scan.xsc && mv Scan.xsc Scan.c
Please specify prototyping behavior for Scan.xs (see perlxs manual)
cc -c  -I. -I.. -Isrc -Iinclude -I/usr/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff    -DVERSION=\"0.23\"  -DXS_VERSION=\"0.23\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"  -Wall -Wno-unused-value -DHAVE_FLAC Scan.c
cc: -W option with unknown program all
*** Error code 1
make: Fatal error: Command failed for target `Scan.o'
root@fugly:/root/.cpan/sources/authors/id/A/AG/AGRUNDMA/Audio-Scan-0.23#


===

Thanks, 

Bret
Comment 1 Andy Grundman 2009-07-03 04:47:22 UTC
Do you have a patch?  Otherwise, I'd say you need to use gcc instead.
Comment 2 Bret 2009-07-03 05:04:38 UTC
(In reply to comment #1)
> Do you have a patch?  Otherwise, I'd say you need to use gcc instead.

Hello Andy, 

For slimserver to be cross platform I think this simple fix should be made. 

The default perl on Solaris is Studio cc compiled. All other required Perl modules compile with cc OK. A well supported Perl module should configure and compile correctly with ethier cc or gcc.

Regards,

Bret
Comment 3 Andy Grundman 2009-07-03 05:40:58 UTC
Yeah you're right.  Does it work if you remove -Wall from Makefile.PL?

my $DEFINES = '-Wall';
$DEFINES .= ' -Wno-unused-value' unless $^O =~ /Win32/;
$DEFINES .= ' -DHAVE_FLAC' if $FLAC;
Comment 4 Bret 2009-07-03 06:13:25 UTC
Hello Andy,

I've removed The 3 Define lines and set line 165 to DEFINE            => {},

Now have a differnt error;

.....
cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frame.c  -KPIC -DPIC -o .libs/frame.o
"frame.c", line 294: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "compat.h", line 36
        argument : pointer to const unsigned char
"frame.c", line 310: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "compat.h", line 36
        argument : pointer to const unsigned char
"frame.c", line 322: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 362: warning: assignment type mismatch:
        pointer to const unsigned char "=" const pointer to const char
"frame.c", line 369: warning: assignment type mismatch:
        pointer to const unsigned char "=" pointer to char
"frame.c", line 398: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 449: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 471: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 186
        argument : pointer to const unsigned char
"frame.c", line 477: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 70
        argument : pointer to const unsigned char
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frame.c -o frame.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o crc.lo crc.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c crc.c  -KPIC -DPIC -o .libs/crc.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c crc.c -o crc.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o util.lo util.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c util.c  -KPIC -DPIC -o .libs/util.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c util.c -o util.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o tag.lo tag.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c tag.c  -KPIC -DPIC -o .libs/tag.o
"tag.c", line 362: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const unsigned char : "latin1.h", line 36
        argument : pointer to char
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c tag.c -o tag.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o file.lo file.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c file.c  -KPIC -DPIC -o .libs/file.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c file.c -o file.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link cc  -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC    -o libid3tag.la -rpath /usr/local/lib -version-info 3:0:3 version.lo ucs4.lo latin1.lo utf16.lo  utf8.lo parse.lo render.lo field.lo frametype.lo compat.lo  genre.lo frame.lo crc.lo util.lo tag.lo file.lo    -lz
/usr/bin/ld -G -h libid3tag.so.0 -o .libs/libid3tag.so.0.3.0  .libs/version.o .libs/ucs4.o .libs/latin1.o .libs/utf16.o .libs/utf8.o .libs/parse.o .libs/render.o .libs/field.o .libs/frametype.o .libs/compat.o .libs/genre.o .libs/frame.o .libs/crc.o .libs/util.o .libs/tag.o .libs/file.o  -lz -lc
(cd .libs && rm -f libid3tag.so.0 && ln -s libid3tag.so.0.3.0 libid3tag.so.0)
(cd .libs && rm -f libid3tag.so && ln -s libid3tag.so.0.3.0 libid3tag.so)
ar cru .libs/libid3tag.a  version.o ucs4.o latin1.o utf16.o utf8.o parse.o render.o field.o frametype.o compat.o genre.o frame.o crc.o util.o tag.o file.o
ranlib .libs/libid3tag.a
creating libid3tag.la
(cd .libs && rm -f libid3tag.la && ln -s ../libid3tag.la libid3tag.la)
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp  -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap  Scan.xs > Scan.xsc && mv Scan.xsc Scan.c
Please specify prototyping behavior for Scan.xs (see perlxs manual)
cc -c  -I. -I.. -Isrc -Iinclude -I/usr/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff    -DVERSION=\"0.23\"  -DXS_VERSION=\"0.23\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"  HASH(0x8122304) Scan.c
sh: syntax error at line 1: `(' unexpected
*** Error code 3
make: Fatal error: Command failed for target `Scan.o'

====

So I've tried leaving the  -DHAVE_FLAC DEFINE in there and now get;

cd libid3tag && make all
make  all-recursive
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o version.lo version.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c version.c  -KPIC -DPIC -o .libs/version.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c version.c -o version.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o ucs4.lo ucs4.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c ucs4.c  -KPIC -DPIC -o .libs/ucs4.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c ucs4.c -o ucs4.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o latin1.lo latin1.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c latin1.c  -KPIC -DPIC -o .libs/latin1.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c latin1.c -o latin1.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o utf16.lo utf16.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c utf16.c  -KPIC -DPIC -o .libs/utf16.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c utf16.c -o utf16.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o utf8.lo utf8.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c utf8.c  -KPIC -DPIC -o .libs/utf8.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c utf8.c -o utf8.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o parse.lo parse.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c parse.c  -KPIC -DPIC -o .libs/parse.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c parse.c -o parse.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o render.lo render.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c render.c  -KPIC -DPIC -o .libs/render.o
"render.c", line 119: warning: assignment type mismatch:
        pointer to const unsigned char "=" pointer to char
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c render.c -o render.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o field.lo field.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c field.c  -KPIC -DPIC -o .libs/field.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c field.c -o field.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o frametype.lo frametype.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frametype.c  -KPIC -DPIC -o .libs/frametype.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frametype.c -o frametype.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o compat.lo compat.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c compat.c  -KPIC -DPIC -o .libs/compat.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c compat.c -o compat.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o genre.lo genre.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c genre.c  -KPIC -DPIC -o .libs/genre.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c genre.c -o genre.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o frame.lo frame.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frame.c  -KPIC -DPIC -o .libs/frame.o
"frame.c", line 294: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "compat.h", line 36
        argument : pointer to const unsigned char
"frame.c", line 310: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "compat.h", line 36
        argument : pointer to const unsigned char
"frame.c", line 322: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 362: warning: assignment type mismatch:
        pointer to const unsigned char "=" const pointer to const char
"frame.c", line 369: warning: assignment type mismatch:
        pointer to const unsigned char "=" pointer to char
"frame.c", line 398: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 449: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 471: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 186
        argument : pointer to const unsigned char
"frame.c", line 477: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 70
        argument : pointer to const unsigned char
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c frame.c -o frame.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o crc.lo crc.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c crc.c  -KPIC -DPIC -o .libs/crc.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c crc.c -o crc.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o util.lo util.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c util.c  -KPIC -DPIC -o .libs/util.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c util.c -o util.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o tag.lo tag.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c tag.c  -KPIC -DPIC -o .libs/tag.o
"tag.c", line 362: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const unsigned char : "latin1.h", line 36
        argument : pointer to char
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c tag.c -o tag.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.      -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c -o file.lo file.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c file.c  -KPIC -DPIC -o .libs/file.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC -c file.c -o file.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link cc  -xO3 -xspace -xildoff -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -KPIC    -o libid3tag.la -rpath /usr/local/lib -version-info 3:0:3 version.lo ucs4.lo latin1.lo utf16.lo  utf8.lo parse.lo render.lo field.lo frametype.lo compat.lo  genre.lo frame.lo crc.lo util.lo tag.lo file.lo    -lz
/usr/bin/ld -G -h libid3tag.so.0 -o .libs/libid3tag.so.0.3.0  .libs/version.o .libs/ucs4.o .libs/latin1.o .libs/utf16.o .libs/utf8.o .libs/parse.o .libs/render.o .libs/field.o .libs/frametype.o .libs/compat.o .libs/genre.o .libs/frame.o .libs/crc.o .libs/util.o .libs/tag.o .libs/file.o  -lz -lc
(cd .libs && rm -f libid3tag.so.0 && ln -s libid3tag.so.0.3.0 libid3tag.so.0)
(cd .libs && rm -f libid3tag.so && ln -s libid3tag.so.0.3.0 libid3tag.so)
ar cru .libs/libid3tag.a  version.o ucs4.o latin1.o utf16.o utf8.o parse.o render.o field.o frametype.o compat.o genre.o frame.o crc.o util.o tag.o file.o
ranlib .libs/libid3tag.a
creating libid3tag.la
(cd .libs && rm -f libid3tag.la && ln -s ../libid3tag.la libid3tag.la)
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp  -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap  Scan.xs > Scan.xsc && mv Scan.xsc Scan.c
Please specify prototyping behavior for Scan.xs (see perlxs manual)
cc -c  -I. -I.. -Isrc -Iinclude -I/usr/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff    -DVERSION=\"0.23\"  -DXS_VERSION=\"0.23\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"  -DHAVE_FLAC Scan.c
"src/buffer.c", line 34: warning: implicit function declaration: Newx
"src/buffer.c", line 34: syntax error before or at: u_char
"src/common.c", line 87: syntax error before or at: char
"src/ape.c", line 351: warning: implicit function declaration: Newxz
"src/ape.c", line 351: syntax error before or at: ApeTag
"src/mac.c", line 12: syntax error before or at: mac_streaminfo
"src/mp3.c", line 451: syntax error before or at: mp3info
"src/mp3.c", line 452: syntax error before or at: Buffer
"src/mp4.c", line 198: syntax error before or at: mp4info
"src/mp4.c", line 199: syntax error before or at: Buffer
"src/mp4.c", line 786: syntax error before or at: struct
"src/mp4.c", line 826: syntax error before or at: struct
"src/mp4.c", line 876: syntax error before or at: uint16_t
"src/mp4.c", line 918: syntax error before or at: uint32_t
"src/mpc.c", line 179: syntax error before or at: mpc_streaminfo
"src/ogg.c", line 343: syntax error before or at: char
cc: acomp failed for Scan.c
*** Error code 1
make: Fatal error: Command failed for target `Scan.o'
root@fugly:/root/.cpan/sources/authors/id/A/AG/AGRUNDMA/Audio-Scan-0.23#
Comment 5 Andy Grundman 2009-07-03 06:28:13 UTC
What version of Perl are you using?  Maybe there are other issues with that compiler too...
Comment 6 Bret 2009-07-03 07:18:59 UTC
I don't think so - I've compiled every module except Audio::Scan - Using the standard perl and the standard SunStudio compiler. This is on a fresh install of OpenSolaris. If you need a test environment pull a OpenSolaris iso and after install do a pkg install sunstudio12u1 (after turning off role based access enabling root user). 

root@fugly:/root/.cpan/build/GD-2.43# perl -v

This is perl, v5.8.4 built for i86pc-solaris-64int
(with 32 registered patches, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

root@fugly:/root/.cpan/build/GD-2.43#

root@fugly:/root/.cpan/build/GD-2.43# cc -Version
cc: Sun C 5.10 SunOS_i386 2009/06/03
usage: cc [ options] files.  Use 'cc -flags' for details
Comment 7 Andy Grundman 2009-07-03 07:30:05 UTC
5.8.4?? You're living in the dark ages... Audio::Scan is broken with Perl < 5.8.8.  Please try 5.10.
Comment 8 Bret 2009-07-03 08:14:19 UTC
Andy,

It's not a Perl version problem. - I've compiled latest version;
root@fugly:/usr/local/src/perl-5.10.0# /usr/local/bin/perl -version

This is perl, v5.10.0 built for i86pc-solaris
===
And get the same error - re cc compiling. 
---

CPAN: File::Temp loaded ok (v0.18)
Warning (usually harmless): 'YAML' not installed, will not store persistent
state

  CPAN.pm: Going to build A/AG/AGRUNDMA/Audio-Scan-0.23.tar.gz


Audio::Scan will be built with:

   MP3 support:     yes
   MP4 support:     yes
  FLAC support:     yes (/usr/include)
   OGG support:     yes
   ASF support:     yes
   MPC support:     yes
   MAC support:     yes
   WAV support:     yes
   AIFF support:    yes

Checking if your kit is complete...
Looks good
Writing Makefile for Audio::Scan
Could not read '/root/.cpan/build/Audio-Scan-0.23-rnfYQM/META.yml'. Falling
back to other methods to determine prerequisites
cp lib/Audio/Scan.pm blib/lib/Audio/Scan.pm
cd libid3tag && CC="cc" CFLAGS="-O -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC" LDFLAGS="-L/usr/lib
-L/usr/ccs/lib -L/opt/sunstudio12.1/prod/lib -L/lib -L/usr/local/lib
-L/usr/gnu/lib" ./configure --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of cc... none
checking for a sed that does not truncate output... /usr/gnu/bin/sed
checking for egrep... grep -E
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/gnu/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 262144
checking command to parse /usr/gnu/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc static flag  works... yes
checking for cc option to produce PIC... -KPIC
checking if cc PIC flag -KPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -KPIC
checking if g77 PIC flag -KPIC works... no
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for ANSI C header files... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking for unistd.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for ftruncate... yes
checking for compress2 in -lz... yes
checking whether to enable profiling... no
checking whether to enable debugging... default
configure: creating ./config.status
config.status: creating Makefile
config.status: creating msvc++/Makefile
config.status: creating libid3tag.list
config.status: creating config.h
config.status: executing depfiles commands
cd libid3tag && make all
make  all-recursive
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o version.lo version.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c version.c  -KPIC
-DPIC -o .libs/version.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c version.c -o
version.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o ucs4.lo ucs4.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c ucs4.c  -KPIC -DPIC
-o .libs/ucs4.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c ucs4.c -o ucs4.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o latin1.lo latin1.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c latin1.c  -KPIC -DPIC
-o .libs/latin1.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c latin1.c -o latin1.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o utf16.lo utf16.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c utf16.c  -KPIC -DPIC
-o .libs/utf16.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c utf16.c -o utf16.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o utf8.lo utf8.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c utf8.c  -KPIC -DPIC
-o .libs/utf8.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c utf8.c -o utf8.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o parse.lo parse.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c parse.c  -KPIC -DPIC
-o .libs/parse.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c parse.c -o parse.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o render.lo render.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c render.c  -KPIC -DPIC
-o .libs/render.o
"render.c", line 119: warning: assignment type mismatch:
        pointer to const unsigned char "=" pointer to char
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c render.c -o render.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o field.lo field.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c field.c  -KPIC -DPIC
-o .libs/field.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c field.c -o field.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o frametype.lo frametype.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c frametype.c  -KPIC
-DPIC -o .libs/frametype.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c frametype.c -o
frametype.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o compat.lo compat.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c compat.c  -KPIC -DPIC
-o .libs/compat.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c compat.c -o compat.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o genre.lo genre.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c genre.c  -KPIC -DPIC
-o .libs/genre.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c genre.c -o genre.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o frame.lo frame.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c frame.c  -KPIC -DPIC
-o .libs/frame.o
"frame.c", line 294: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "compat.h", line 36
        argument : pointer to const unsigned char
"frame.c", line 310: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "compat.h", line 36
        argument : pointer to const unsigned char
"frame.c", line 322: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 362: warning: assignment type mismatch:
        pointer to const unsigned char "=" const pointer to const char
"frame.c", line 369: warning: assignment type mismatch:
        pointer to const unsigned char "=" pointer to char
"frame.c", line 398: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 449: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 210
        argument : pointer to const unsigned char
"frame.c", line 471: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 186
        argument : pointer to const unsigned char
"frame.c", line 477: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const char : "frame.c", line 70
        argument : pointer to const unsigned char
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c frame.c -o frame.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o crc.lo crc.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c crc.c  -KPIC -DPIC -o
.libs/crc.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c crc.c -o crc.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o util.lo util.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c util.c  -KPIC -DPIC
-o .libs/util.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c util.c -o util.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o tag.lo tag.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c tag.c  -KPIC -DPIC -o
.libs/tag.o
"tag.c", line 362: warning: argument #1 is incompatible with prototype:
        prototype: pointer to const unsigned char : "latin1.h", line 36
        argument : pointer to char
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c tag.c -o tag.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.     
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -KPIC -O -c -o file.lo file.c
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c file.c  -KPIC -DPIC
-o .libs/file.o
 cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O -c file.c -o file.o
>/dev/null 2>&1
/bin/sh ./libtool --mode=link cc  -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -KPIC -O   -L/usr/lib
-L/usr/ccs/lib -L/opt/sunstudio12.1/prod/lib -L/lib -L/usr/local/lib
-L/usr/gnu/lib -o libid3tag.la -rpath /usr/local/lib -version-info 3:0:3
version.lo ucs4.lo latin1.lo utf16.lo  utf8.lo parse.lo render.lo field.lo
frametype.lo compat.lo  genre.lo frame.lo crc.lo util.lo tag.lo file.lo    -lz
/usr/bin/ld -G -h libid3tag.so.0 -o .libs/libid3tag.so.0.3.0  .libs/version.o
.libs/ucs4.o .libs/latin1.o .libs/utf16.o .libs/utf8.o .libs/parse.o
.libs/render.o .libs/field.o .libs/frametype.o .libs/compat.o .libs/genre.o
.libs/frame.o .libs/crc.o .libs/util.o .libs/tag.o .libs/file.o  -L/usr/lib
-L/usr/ccs/lib -L/opt/sunstudio12.1/prod/lib -L/lib -L/usr/local/lib
-L/usr/gnu/lib -lz -lc
(cd .libs && rm -f libid3tag.so.0 && ln -s libid3tag.so.0.3.0 libid3tag.so.0)
(cd .libs && rm -f libid3tag.so && ln -s libid3tag.so.0.3.0 libid3tag.so)
ar cru .libs/libid3tag.a  version.o ucs4.o latin1.o utf16.o utf8.o parse.o
render.o field.o frametype.o compat.o genre.o frame.o crc.o util.o tag.o file.o
ranlib .libs/libid3tag.a
creating libid3tag.la
(cd .libs && rm -f libid3tag.la && ln -s ../libid3tag.la libid3tag.la)
/usr/local/bin/perl /usr/local/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/5.10.0/ExtUtils/typemap  Scan.xs > Scan.xsc && mv Scan.xsc
Scan.c
Please specify prototyping behavior for Scan.xs (see perlxs manual)
cc -c  -I. -I.. -Isrc -Iinclude -I/usr/include  -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O   
-DVERSION=\"0.23\"  -DXS_VERSION=\"0.23\" -KPIC
"-I/usr/local/lib/perl5/5.10.0/i86pc-solaris/CORE"  -Wall -Wno-unused-value
-DHAVE_FLAC Scan.c
cc: -W option with unknown program all
*** Error code 1
make: Fatal error: Command failed for target `Scan.o'
  AGRUNDMA/Audio-Scan-0.23.tar.gz
  /usr/bin/make -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent
state
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
root@fugly:/usr/local/src/perl-5.10.0#

=====

So I try taking out the -Wall flags DEFINE again and....

root@fugly:/root/.cpan/build/Audio-Scan-0.23# /usr/local/bin/perl ./Makefile.PL

Audio::Scan will be built with:

   MP3 support:     yes
   MP4 support:     yes
  FLAC support:     yes (/usr/include)
   OGG support:     yes
   ASF support:     yes
   MPC support:     yes
   MAC support:     yes
   WAV support:     yes
   AIFF support:    yes

Writing Makefile for Audio::Scan
root@fugly:/root/.cpan/build/Audio-Scan-0.23# make
cd libid3tag && make all
make  all-recursive
/usr/local/bin/perl /usr/local/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/5.10.0/ExtUtils/typemap  Scan.xs > Scan.xsc && mv Scan.xsc
Scan.c
Please specify prototyping behavior for Scan.xs (see perlxs manual)
cc -c  -I. -I.. -Isrc -Iinclude -I/usr/include  -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O   
-DVERSION=\"0.23\"  -DXS_VERSION=\"0.23\" -KPIC
"-I/usr/local/lib/perl5/5.10.0/i86pc-solaris/CORE"  -DHAVE_FLAC Scan.c
Running Mkbootstrap for Audio::Scan ()
chmod 644 Scan.bs
rm -f blib/arch/auto/Audio/Scan/Scan.so
LD_RUN_PATH="/usr/lib" cc  -G -L/usr/lib -L/usr/ccs/lib
-L/opt/sunstudio12.1/prod/lib -L/lib -L/usr/local/lib -L/usr/gnu/lib Scan.o  -o
blib/arch/auto/Audio/Scan/Scan.so libid3tag/.libs/libid3tag.a       \
   -lz -lFLAC   \

chmod 755 blib/arch/auto/Audio/Scan/Scan.so
cp Scan.bs blib/arch/auto/Audio/Scan/Scan.bs
chmod 644 blib/arch/auto/Audio/Scan/Scan.bs
Manifying blib/man3/Audio::Scan.3
root@fugly:/root/.cpan/build/Audio-Scan-0.23#
root@fugly:/root/.cpan/build/Audio-Scan-0.23#
root@fugly:/root/.cpan/build/Audio-Scan-0.23# make test
cd libid3tag && make all
make  all-recursive
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01use............ok
t/02pod............skipped
        all skipped: Test::Pod 1.14 required
t/03podcoverage....skipped
        all skipped: Test::Pod::Coverage 1.04 required
t/04critic.........skipped
        all skipped: Critic test only for developers.
t/05mp3............ok
t/06flac...........ok
t/07ogg............ok
t/08asf............ok
        10/138 skipped: various reasons
t/09wav............ok
t/10musepack.......ok
t/11mac............ok
t/12aiff...........ok
t/13mp4............ok
t/14aac............ok
All tests successful, 3 tests and 10 subtests skipped.
Files=14, Tests=602,  1 wallclock secs ( 0.48 cusr +  0.04 csys =  0.52 CPU)
root@fugly:/root/.cpan/build/Audio-Scan-0.23#


It works! With cc and the latest perl.

Thanks Andy - I Did just need to get out of the dark ages - I'll update the
Slim Forum post I made with the Solution to a working 7.4 nightly on
OpenSolaris once I recompile all the other modules. 

You just need to fix the configure to remove those options if cc used. 

Regards,

Bret
Comment 9 Andy Grundman 2009-07-03 08:31:06 UTC
Great thanks, I'll see about disabling -Wall for non-gcc compilers.
Comment 10 Andy Grundman 2009-07-10 14:25:24 UTC
Fixed in Audio::Scan 0.25.
Comment 11 Bret 2009-07-14 11:28:57 UTC
Hello Andy,

Nearly there :) On .25 Stil got a Makefile error;

root@fugly:/root/.cpan/build/Audio-Scan-0.25-46hTzA# perl ./Makefile.PL

Audio::Scan will be built with:

   MP3 support:     yes
   MP4 support:     yes
  FLAC support:     yes (/usr/include)
   OGG support:     yes
   ASF support:     yes
   MPC support:     yes
   MAC support:     yes
   WAV support:     yes
   AIFF support:    yes

Writing Makefile for Audio::Scan
root@fugly:/root/.cpan/build/Audio-Scan-0.25-46hTzA# make
Skip blib/lib/Audio/Scan.pm (unchanged)
cd libid3tag && make all
make  all-recursive
cc -c  -I. -I.. -Isrc -Iinclude -I/usr/include  -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O    -DVERSION=\"0.25\"  -DXS_VERSION=\"0.25\" -KPIC "-I/usr/local/lib/perl5/5.10.0/i86pc-solaris/CORE"  -Wno-unused-value -DHAVE_FLAC Scan.c
cc: -W option with unknown program no-unused-value
*** Error code 1
make: Fatal error: Command failed for target `Scan.o'


======

If I remove Wno-unused-value  from the generated Makefile it compiles and tests OK.

Regards,

Bret
Comment 12 Andy Grundman 2009-07-14 13:22:38 UTC
OK, will be fixed in 0.26.  Sorry about that, I thought only -Wall was causing the problem.
Comment 13 James Richardson 2009-10-05 14:28:04 UTC
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server!
    * SqueezeCenter: 28672
    * Squeezebox 2 and 3: 130
    * Transporter: 80
    * Receiver: 65
    * Boom: 50
    * Controller: 7790
    * Radio: 7790  

Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.