Thursday, July 8, 2004, 14:17:25, you wrote:
> On Jul 8, 2004, at 5:10 AM, Daniel Vollmer wrote:
>> I have now managed to give it a go. Attached is the error log for
>> IoDesktop. Summary:
>> - libevent is not happy (cannot find sys/event.h)
>> - some missing dylib-files (??? freetype for example)
>> - libpng unhappy (wrong options to CC -suppress?)
>> - libtool included with libmpeg2 seems to have a hardcoded path to sed
>> as /usr/bin/sed. On my machine, sed is in /bin.
>> - portaudio is really unhappy because it is trying to compile for a
>> mac (missing configure step?)
>> Never got to the linking stage... ;)
> Thanks for the bug report. Did you run make configure at the top level
No, I didn't. There was a configure script in the archive, but that
simply did nothing. I have now done a "make config" instead and that
has in fact done some configuring. :)
It now builds IoVM and IoDesktop, but IoServer cannot link:
cc -o ioServer main.o IoServerInit.o -L. -lIoServer -L../IoVM/_libs -lIoVM -L_libs -ldl -lcurses -lcurses -ldl -ldb -lpcre -levent -lm
../IoVM/_libs/libIoVM.a(IoFile.o)(.text+0x4ff): In function `IoFile_useTemporaryPath':
/home/maven/IoDesktop-2004-07-06/IoVM/IoFile.c:266: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
_libs/libdb.a(mut_pthread.o)(.text+0x9c): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_destroy'
_libs/libdb.a(mut_pthread.o)(.text+0x139): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_condattr_setpshared'
_libs/libdb.a(mut_pthread.o)(.text+0x14b): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_init'
_libs/libdb.a(mut_pthread.o)(.text+0x16f): In function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_setpshared'
_libs/libdb.a(mut_pthread.o)(.text+0x1c4): In function `__db_pthread_mutex_lock':
: undefined reference to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
This could be rectified by adding -lpthread to the CCLIBS-flags for
IoServer if SleepyHead is used.
I now have io, ioServer and ioDesktop compiled. Do you want the
executable stripped and upx'd? That'd reduce their size considerably:
base total 13536
-rwxr-xr-x 1 maven maven 1001315 Jul 8 14:42 io
-rwxr-xr-x 1 maven maven 8827484 Jul 8 14:38 ioDesktop
-rwxr-xr-x 1 maven maven 4001344 Jul 8 14:56 ioServer
stripped total 4132
-rwxr-xr-x 1 maven maven 139304 Jul 8 14:56 io
-rwxr-xr-x 1 maven maven 2803916 Jul 8 14:56 ioDesktop
-rwxr-xr-x 1 maven maven 1269268 Jul 8 14:56 ioServer
stripped+upx total 1736
-rwxr-xr-x 1 maven maven 59742 Jul 8 14:56 io
-rwxr-xr-x 1 maven maven 1162127 Jul 8 14:56 ioDesktop
-rwxr-xr-x 1 maven maven 536864 Jul 8 14:56 ioServer
ioDesktop seems to run SongJam OK (including UI and sound), but I take
it isn't finished yet --- clicking on Help complains that it can't get
file descriptor for the console... ;)
[Computer Lie #1: You'll never use all that disk space.]