[Debburn-devel] cdrkit-1.0 build error on Solaris 2.8

Brian Lindholm brian_lindholm at users.sourceforge.net
Wed Nov 29 23:56:57 CET 2006


Lorenz,

Per your suggestion, I applied the following patch to cdrkit-1.0:

diff -ru cdrkit-1.0-orig/include/xconfig.h.in 
cdrkit-1.0/include/xconfig.h.in
--- cdrkit-1.0-orig/include/xconfig.h.in 2006-10-03 08:18:08.000000000 -0400
+++ cdrkit-1.0/include/xconfig.h.in 2006-11-29 10:24:08.939996293 -0500
@@ -79,7 +79,7 @@
#define HAVE_SYS_IPC_H 1 /* to use definitions for shmget() ... from 
sys/ipc.h */
/* #undef MAJOR_IN_MKDEV */ /* if we should include sys/mkdev.h to get 
major()/minor()/makedev() */
#define MAJOR_IN_SYSMACROS 1 /* if we should include sys/sysmacros.h to 
get major()/minor()/makedev() */
-/* #undef HAVE_SYS_DKIO_H */ /* if we may include sys/dkio.h for disk 
ioctls */
+#define HAVE_SYS_DKIO_H 1 /* if we may include sys/dkio.h for disk 
ioctls */
/* #undef HAVE_SYS_DKLABEL_H */ /* if we may include sys/dklabel.h for 
disk label */
/* #undef HAVE_SUN_DKIO_H */ /* if we may include sun/dkio.h for disk 
ioctls */
/* #undef HAVE_SUN_DKLABEL_H */ /* if we may include sun/dklabel.h for 
disk label */

The Solaris 2.8 build went much further but still didn't finish.
It barfed on cdda2wav as follows:

make -C build all
make[1]: Entering directory `/tmp/lindhobe/cdrkit-1.0/build'
make[2]: Entering directory `/tmp/lindhobe/cdrkit-1.0/build'
[ 2%] Built target paranoia
[ 5%] Built target scg
[ 34%] Built target schily
[ 34%] Built target deflt
make[3]: Entering directory `/tmp/lindhobe/cdrkit-1.0/build'
Linking C executable cdda2wav
Undefined first referenced
symbol in file
socket CMakeFiles/cdda2wav.dir/toc.o
volmgt_inuse ../libscg/libscg.a(scsihack.o)
gethostbyname CMakeFiles/cdda2wav.dir/toc.o
sched_get_priority_max CMakeFiles/cdda2wav.dir/cdda2wav.o
isinf ../libschily/libschily.a(fconv.o)
volmgt_running ../libscg/libscg.a(scsihack.o)
sched_get_priority_min CMakeFiles/cdda2wav.dir/cdda2wav.o
setsockopt ../libscg/libscg.a(scsi-remote.o)
volmgt_symdev ../libscg/libscg.a(scsihack.o)
sched_setscheduler CMakeFiles/cdda2wav.dir/cdda2wav.o
getservbyname CMakeFiles/cdda2wav.dir/toc.o
media_findname ../libscg/libscg.a(scsihack.o)
volmgt_symname ../libscg/libscg.a(scsihack.o)
rcmd ../libscg/libscg.a(scsi-remote.o)
connect CMakeFiles/cdda2wav.dir/toc.o
ld: fatal: Symbol referencing errors. No output written to cdda2wav
collect2: ld returned 1 exit status
make[3]: *** [cdda2wav/cdda2wav] Error 1
make[3]: Leaving directory `/tmp/lindhobe/cdrkit-1.0/build'
make[2]: *** [cdda2wav/CMakeFiles/cdda2wav.dir/all] Error 2
make[2]: Leaving directory `/tmp/lindhobe/cdrkit-1.0/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/lindhobe/cdrkit-1.0/build'
make: *** [all] Error 2

My guess is a missing library. I didn't have time to dig into which one.
I'll poke further tomorrow.

Brian


Lorenz Minder wrote:
> Hi,
>
> Just a thought. I don't have Solaris, can't test this.
>
> Brian Lindholm wrote:
>   
>> [...]
>>  I was unable to fix it myself.  Any suggestions?
>> [...]
>> /tmp/lindhobe/cdrkit-1.0/libscg/scsi-sun.c:83: warning: "struct 
>> dk_cinfo" declared inside parame
>> [...]
>>     
>
> Try to #define HAVE_SUN_DKIO_H in xconfig.h, or possibly
> HAVE_SYS_DKIO_H. (They are currently #undef'd, right?) Check which one
> by looking which file you have in the include path.
>
> Let us know if it worked.
>
> Best,
> --Lorenz
>   



More information about the Debburn-devel mailing list