GNOME Bugzilla – Bug 171304
Build fails on Solaris 9
Last modified: 2005-05-25 23:29:38 UTC
Build fails using jhbuild from HEAD on Solaris 9: /bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -o esdcat esdcat.o libesd.la -L/home/mccannwj/local/gnome/sun4u/lib -laudiofile -lm -lrt -lresolv -lsocket gcc -g -O2 -o .libs/esdcat esdcat.o ./.libs/libesd.so -L/home/mccannwj/local/gnome/sun4u/lib /home/mccannwj/local/gnome/sun4u/lib/libaudiofile.so -lm -lrt -lresolv -lsocket -Wl,--rpath -Wl,/home/mccannwj/local/gnome/sun4u/lib ./.libs/libesd.so: undefined reference to `SUN_LEN' collect2: ld returned 1 exit status
Created attachment 39107 [details] [review] patch Look ok to commit?
That line has been around for a *long* time. Are you sure something isn't messed up on your system, or broken in the build?
What line are you referring to?
Oops, sorry. Line 250: 1.42 (raster 08-Apr-99): socket_unix.sun_family = AF_UNIX; 1.54 (utx 28-Nov-00): strncpy(socket_unix.sun_path, ESD_UNIX_SOCKET_NAME, sizeof(socket_unix.sun_path)); 1.42 (raster 08-Apr-99): if ( connect( socket_out, --> 1.45 (timur 28-Jun-99): (struct sockaddr *) &socket_unix, SUN_LEN(&socket_unix) ) < 0 ) 1.54 (utx 28-Nov-00): return -1; 1.42 (raster 08-Apr-99): return socket_out; 1.42 (raster 08-Apr-99): }
Of esd.c
*** Bug 303804 has been marked as a duplicate of this bug. ***
William, please respond to David's question?
I don't have much to add. I don't normally make builds on Solaris and I can't be sure my setup isn't wrong.
I have the same issue on Solaris 10 (I build on it nightly). I don't believe there is something wrong with my setup. My patch, in bug 303804, only put references to SUN_LEN inside #ifdef/#endif (which should happen too) rather than #define the function.
Applied.