On Sat, Mar 12, 2011 at 2:11 AM, Leo Izen<leo.izen@gm...>  wrote:

>  On Fri, Mar 11, 2011 at 7:48 PM, George D Pylant III<objectivecgdp@...>  
> wrote:
>
>>  Thought I was home free after finally getting Schroedinger 1.0.10 to
>>  configure successfully after I installed pkg-config on my Mac Pro.  But then
>>  make fails with
>>
>>   /Volumes/Ramdisk/sw/lib/liborc-0.4.a
>>  Undefined symbols:
>>   "__schro_decode_prediction_only", referenced from:
>>       _schro_init in libschroedinger-1.0.a(libschroedinger_1.0_la-schro.o)
>>   "__schro_telemetry", referenced from:
>>       _schro_init in libschroedinger-1.0.a(libschroedinger_1.0_la-schro.o)
>>  ld: symbol(s) not found
>>  collect2: ld returned 1 exit status
>>  make[3]: *** [arith] Error 1
>>  make[2]: *** [all-recursive] Error 1
>>  make[1]: *** [all-recursive] Error 1
>>  make: *** [all] Error 2
>>
>>  Is there a fix for this? Is there a way to "define" these "undefined
>>  symbols" in the configure line or with cflags/ldflags?  Please advise.
>>   Thank you.
>>
>
>A symbol is a named item in an executable-code file, which is usually a
>function but can also be external variables. To "define" a symbol would
>require providing a c/c++ source file that contains the function/external
>variable definition, probably a function in this case given names such as
>"__schro_decode_prediction_only". It does appear that some of the symbols
>have an _, and some have 2 _s, or __, as a prefix of the symbol. I suggest
>adding -DNO_PREFIX to your CPPFLAGS, as in
>
>export CPPFLAGS=$CPPFLAGS\ -DNO_PREFIX


Sorry for dragging up an old email, but I had this exact same problem trying
to compile on OSX 10.6. The items are clearly defined in lines 74&  75 of
schrodecoder.c and they make it into the object file
libschroedinger_1.0_la-schrodecoder.o

However, it appears that this object file is never included? By reversing it
and making the defines in schro.c, and referencing it in schrodecoder.c,
resolved the compile problem. [Leo - NO_PREFIX is not used anywhere in the
source, so I don't see how defining it would help, and it doesn't. Maybe
you where thinking of the gcc flag that turns off the appending of the leading
underscore?]

After fixing this, I get another similar problem. Actually, a whole host of
missing defines. Basically every _orc_code_orc_* defined in tmp-orc.c is not
found when trying to link upsample_speed. I see 2 tmp-orc.c files, one in
schroedinger, and the other in testsuite/perf. The second one doesn't appear
to get compiled.

gcc -DHAVE_CONFIG_H -I. -I../..    -Wall -I../..  -I/usr/local/include/orc-0.4  
 -DSCHRO_ENABLE_UNSTABLE_API -g -O3 -MT upsample_speed.o -MD -MP -MF 
.deps/upsample_speed.Tpo -c -o upsample_speed.o upsample_speed.c
mv -f .deps/upsample_speed.Tpo .deps/upsample_speed.Po
/bin/sh ../../libtool --tag=CC   --mode=link gcc -Wall -I../..  
-I/usr/local/include/orc-0.4   -DSCHRO_ENABLE_UNSTABLE_API -g -O3   -o 
upsample_speed upsample_speed.o ../libschrotest.la 
../../schroedinger/libschroedinger-1.0.la -L/usr/local/lib -lorc-0.4     
-lpthread   -lorc-test-0.4 -L/usr/local/lib -lorc-0.4
libtool: link: gcc -Wall -I../.. -I/usr/local/include/orc-0.4 
-DSCHRO_ENABLE_UNSTABLE_API -g -O3 -o upsample_speed upsample_speed.o  
../.libs/libschrotest.a 
/Users/deron/dev/src/video/schroedinger/schroedinger/.libs/libschroedinger-1.0.a
 -L/usr/local/lib ../../schroedinger/.libs/libschroedinger-1.0.a -lpthread 
/usr/local/lib/liborc-test-0.4.dylib /usr/local/lib/liborc-0.4.dylib
Undefined symbols:
   "__orc_code_orc_haar_split_s16_hi", referenced from:
       _wavelet_iwt_haar_vert in 
libschroedinger-1.0.a(libschroedinger_1.0_la-schrowaveletorc.o)
...(and many more)...

So, what could be going wrong? Did you get any further George?
To many unfamiliar trees for me to find the rotten one easily...

I've posted my config.log, nm output from
schroedinger/.libs/libschroedinger-1.0.a, and the make output at:

http://www.whdt.net/config.log
http://www.whdt.net/nmoutput.txt
http://www.whdt.net/makeoutput.txt

Thanks for any hints you might have!

Deron



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Schrodinger-devel mailing list
Schrodinger-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/schrodinger-devel

Reply via email to