Subject: audio/libcddb on IRIX64
To: None <tech-pkg@netbsd.org>
From: Florian S. <flo@cfdisk.org>
List: tech-pkg
Date: 06/21/2004 11:42:31
This is a multi-part message in MIME format.
--------------070606010804030503090709
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi List

I had problems to build audio/libcddb on IRIX64 (6.5.20) with SGI's 
freeware gcc and SGI backend.
Here a small log:

if /bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -O2 -mips4 -mabi=64  -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_track.lo -MD -MP -MF ".deps/cddb_track.Tpo"  -c -o cddb_track.lo `test -f 'cddb_track.c' || echo './'`cddb_track.c;  then mv ".deps/cddb_track.Tpo" ".deps/cddb_track.Plo";  else rm -f ".deps/cddb_track.Tpo"; exit 1;  fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_track.lo -MD -MP -MF .deps/cddb_track.Tpo -c cddb_track.c  -DPIC -o .libs/cddb_track.o
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_track.lo -MD -MP -MF .deps/cddb_track.Tpo -c cddb_track.c -o cddb_track.o >/dev/null 2>&1
if /bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -O2 -mips4 -mabi=64  -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_disc.lo -MD -MP -MF ".deps/cddb_disc.Tpo"  -c -o cddb_disc.lo `test -f 'cddb_disc.c' || echo './'`cddb_disc.c;  then mv ".deps/cddb_disc.Tpo" ".deps/cddb_disc.Plo";  else rm -f ".deps/cddb_disc.Tpo"; exit 1;  fi
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_disc.lo -MD -MP -MF .deps/cddb_disc.Tpo -c cddb_disc.c  -DPIC -o .libs/cddb_disc.o
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_disc.lo -MD -MP -MF .deps/cddb_disc.Tpo -c cddb_disc.c -o cddb_disc.o >/dev/null 2>&1
if /bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -O2 -mips4 -mabi=64  -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_regex.lo -MD -MP -MF ".deps/cddb_regex.Tpo"  -c -o cddb_regex.lo `test -f 'cddb_regex.c' || echo './'`cddb_regex.c;  then mv ".deps/cddb_regex.Tpo" ".deps/cddb_regex.Plo";  else rm -f ".deps/cddb_regex.Tpo"; exit 1;  fi
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_regex.lo -MD -MP -MF .deps/cddb_regex.Tpo -c cddb_regex.c  -DPIC -o .libs/cddb_regex.o
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_regex.lo -MD -MP -MF .deps/cddb_regex.Tpo -c cddb_regex.c -o cddb_regex.o >/dev/null 2>&1
if /bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -O2 -mips4 -mabi=64  -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_error.lo -MD -MP -MF ".deps/cddb_error.Tpo"  -c -o cddb_error.lo `test -f 'cddb_error.c' || echo './'`cddb_error.c;  then mv ".deps/cddb_error.Tpo" ".deps/cddb_error.Plo";  else rm -f ".deps/cddb_error.Tpo"; exit 1;  fi
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_error.lo -MD -MP -MF .deps/cddb_error.Tpo -c cddb_error.c  -DPIC -o .libs/cddb_error.o
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_error.lo -MD -MP -MF .deps/cddb_error.Tpo -c cddb_error.c -o cddb_error.o >/dev/null 2>&1
if /bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -O2 -mips4 -mabi=64  -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_conn.lo -MD -MP -MF ".deps/cddb_conn.Tpo"  -c -o cddb_conn.lo `test -f 'cddb_conn.c' || echo './'`cddb_conn.c;  then mv ".deps/cddb_conn.Tpo" ".deps/cddb_conn.Plo";  else rm -f ".deps/cddb_conn.Tpo"; exit 1;  fi
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_conn.lo -MD -MP -MF .deps/cddb_conn.Tpo -c cddb_conn.c  -DPIC -o .libs/cddb_conn.o
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_conn.lo -MD -MP -MF .deps/cddb_conn.Tpo -c cddb_conn.c -o cddb_conn.o >/dev/null 2>&1
if /bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -O2 -mips4 -mabi=64  -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_cmd.lo -MD -MP -MF ".deps/cddb_cmd.Tpo"  -c -o cddb_cmd.lo `test -f 'cddb_cmd.c' || echo './'`cddb_cmd.c;  then mv ".deps/cddb_cmd.Tpo" ".deps/cddb_cmd.Plo";  else rm -f ".deps/cddb_cmd.Tpo"; exit 1;  fi
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_cmd.lo -MD -MP -MF .deps/cddb_cmd.Tpo -c cddb_cmd.c  -DPIC -o .libs/cddb_cmd.o
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_cmd.lo -MD -MP -MF .deps/cddb_cmd.Tpo -c cddb_cmd.c -o cddb_cmd.o >/dev/null 2>&1
if /bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -O2 -mips4 -mabi=64  -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_net.lo -MD -MP -MF ".deps/cddb_net.Tpo"  -c -o cddb_net.lo `test -f 'cddb_net.c' || echo './'`cddb_net.c;  then mv ".deps/cddb_net.Tpo" ".deps/cddb_net.Plo";  else rm -f ".deps/cddb_net.Tpo"; exit 1;  fi
 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -mips4 -mabi=64 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cddb_net.lo -MD -MP -MF .deps/cddb_net.Tpo -c cddb_net.c  -DPIC -o .libs/cddb_net.o
cddb_net.c: In function `sock_ready':
cddb_net.c:51: error: storage size of `tv' isn't known
cddb_net.c:51: warning: unused variable `tv'
cddb_net.c: In function `timeout_connect':
cddb_net.c:262: error: storage size of `tv' isn't known
cddb_net.c:262: warning: unused variable `tv'
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/libcddb/work/libcddb-0.9.4/lib
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/libcddb/work/libcddb-0.9.4
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/libcddb/work/libcddb-0.9.4
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/libcddb
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/libcddb


I've attached a patch, working for IRIX.

-Florian

--------------070606010804030503090709
Content-Type: text/plain;
 name="libcddb-irix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="libcddb-irix.patch"

--- lib/cddb_net.c.orig	Sun May 25 16:25:46 2003
+++ lib/cddb_net.c	Mon Jun 21 11:18:12 2004
@@ -28,6 +28,7 @@
 #include <unistd.h>
 #include <sys/select.h>
 #include <sys/socket.h>
+#include <sys/time.h>
 #include <sys/types.h>
 #include "cddb/cddb_ni.h"
 

--------------070606010804030503090709--