--- building in 64 bit mode:

./configure --prefix=/my/path
make
make check

This fails with:
Arrrgggg!!: Trying to free memory allocated by a different thread!

Output:
http://pastebin.com/nDeuAaxa

--- building in 32 bit mode:

32-bit is forced using:

export CFLAGS="-arch i386"
export LDFLAGS="-arch i386"

./configure --prefix=/my/path
make

Building then fails:

if gcc -std=gnu99 -DPACKAGE_NAME=\"lcms2\" -DPACKAGE_TARNAME=\"lcms2\" 
-DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"lcms2\ 2.0\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHasZLIB=1 -I. -I. 
-I../include -I../include -I../src    --pedantic -Wall -std=c99 -O2 -MT 
testcms2.o -MD -MP -MF ".deps/testcms2.Tpo" -c -o testcms2.o testcms2.c; \
[...]
/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99  --pedantic -Wall 
-std=c99 -O2  -arch i386  -o testcms -arch i386  testcms2.o ../src/liblcms2.la  
libtool: link: gcc -std=gnu99 --pedantic -Wall -std=c99 -O2 -arch i386 -o 
.libs/testcms -arch i386 testcms2.o  ../src/.libs/liblcms2.dylib -lm
ld: warning: in testcms2.o, file is not of required architecture
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o


This can be fixed by adding "-arch i386" to testbed/Makefile

make and "make check" then succeeds in 32 bit mode.

----
   - Peter Speck



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Lcms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to