[sane-devel] MacOS X SCSI support and other changes in SANE CVS

Peter O'Gorman peter at pogma.com
Thu May 1 16:27:56 BST 2003


>
>> gcc -o .libs/scanimage scanimage.o stiff.o  
>> ../backend/.libs/libsane.dylib -framework CoreFoundation -framework 
>> IOKit ../lib/liblib.a -lm
>>

I thought at first that this was a link order issue, so I tried:

gcc -ansi -o .libs/scanimage scanimage.o stiff.o ../lib/liblib.a 
../backend/.libs/libsane.dylib -framework CoreFoundation -framework 
IOKit -lm

But it told me "Undefined Symbol: _alloca", rebuilding after setting 
CPPFLAGS=-Dalloca=__builtin_alloca, then changing the link order again 
made it work.

I'll look into doing this in a patch, need some sleep right now.

Peter




More information about the sane-devel mailing list