Hello everybody,

I tried statically linking some stars with my own pigiRpc (pt 0.7.1).
Firstly, I tried linking the ATM stars at
$PTOLEMY/src/domains/de/atm/stars, which use
$PTOLEMY/src/sdf/atm/kernel/VoiceData.h as their message type. I
followed all steps described in the Programmer's Manual, section 1.3
(Creating custom versions of pigiRpc). For instance, when I statically
linked 4 stars DEThroughput.pl DELatency.pl DENullRemove.pl
DEInputSynch.pl, problem occured with DEInputSynch with the following
message:

...
gcc -fPIC -O2  -Wall -Wsynth  -DPTHPUX10 -D_CMA_NOWRAPPERS_ -D_REENTRANT
-D_HPUX_SOURCE -DPTNO_THREADS -g -DUSG   -c palettes.pigiRpc.c
echo char '*gVersion = "Version:' "pigiExample Demonstration" \
        'With All Common Domains' \
        '%created' `date` '";' | sed 's/%/\\n/g' > version.c
echo "char DEFAULT_DOMAIN[] = \"SDF\";" \
        >> version.c
gcc -c version.c
g++ -L/tools/ptolemy/lib.hppa -Wl,-x,-E,-G
-Wl,+s,+b,/tools/ptolemy/lib.hppa:/tools/ptolemy/octtools/lib.hppa:/tools/ptolemy/X11R6/lib:/tools/ptolemy/gnu/hppa/lib:/tools/ptolemy/tcltk/itcl.hppa/lib/itcl
pigiMain.o palettes.pigiRpc.o DEThroughput.o DELatency.o DENullRemove.o
DEInputSynch.o   ../domains/cgc/tcltk/targets/CGCTclTkTarget.o
../domains/cgc/tcltk/targets/CGCTychoTarget.o
../domains/cg/targets/CGBDFTarget.o 
../domains/cgc/targets/uniproc/CGCBDFTarget.o
../domains/cg/targets/CGCostTarget.o
../domains/cg/targets/CGMultiTarget.o
../domains/cg/targets/CGSharedBus.o 
../domains/sdf/targets/CompileTarget.o
/tools/ptolemy/obj.hppa/pigilib/ptkRegisterCmds.o -lsrcgcstars -lsrcgc
-lsrstars -lsr -lcg56targets -lcg56dspstars -lcg56stars -lcg56
-lc50targets -lc50dspstars -lc50stars -lc50 -lvhdltargets
-lvhdltcltktargets -lvhdlstars -lvhdl -lvhdlbstars -lvhdlb
-lmdsdftclstars -lmdsdfstars -lmdsdf -lacstargets -lacsstars -lacs
-lddfstars -lddf -ldecontribstars -ldetclstars -ldestars -lde
-lcgccontribstars -lcgctcltk -lcgcmultitargets -lcgctargets
-lcgcdspstars -lcgcstars -lcgc -lbdfstars -lMacro -lDC -lHu -lDL -lHier
-lcgddf -lPar -lcgstars -lcg -lfsmstars -lfsm -lsdfdfmstars
-lsdftclstars -lsdfdspstars -lsdfimagestars -lsdfmatrixstars
-lsdfmatlabstars -lsdfcontribstars -lsdfcontrib  -lsdfstars -lbdf -lls
-lsdf -lhofstars -lhof -L/tools/ptolemy/octtools/lib.hppa -lpigi -lrpc
-loh -lvov -llist -lutility -lst -lerrtrap -luprintf  -lptk
-L/tools/ptolemy/tcltk/itcl.hppa/lib/itcl -litk2.2
-L/tools/ptolemy/tcltk/itcl.hppa/lib/itcl -ltk4.2i 
-L/tools/ptolemy/X11R6/lib -lX11  version.o -lptcl -lptdsp -lexttools 
-lptmathematica -lptolemy -L/tools/ptolemy/tcltk/itcl.hppa/lib/itcl
-litcl2.2 -L/tools/ptolemy/tcltk/itcl.hppa/lib/itcl -ltcl7.6i -lstdc++
-lm -ldld /tools/ptolemy/lib.hppa/flush_cache.o -o pigiRpc
/usr/ccs/bin/ld: Unsatisfied symbols:
   VoiceData virtual table(data)
   VoiceData::clearMessage(void)(code)
collect2: ld returned 1 exit status
make[1]: *** [pigiRpc] Error 1
make[1]: Leaving directory `/tools/ptolemy/obj.hppa/thanh'
make: *** [pigiRpc] Error 2

Surprisingly, the problem was only with the stars that call the
constructor *new VoiceData(). I did not see any problem with the library
VoiceData.h, so I suggest that the problem would be the shared library
but I'm not sure. I have so far not much experience with shared library
(our system is HPUX 10.20).

Has anybody some suggestions? Thank you very much for any help.

Regards,

Thanh

-- 
------------------------------------------------
    Nguyen Huu Thanh                      

    Universitaet der Bundeswehr Muenchen  
    Institut fuer informationstechnische Systeme
    Werner-Heisenberg-Weg 39
    85577 Neubiberg                        
    Tel.: +49 89 6004-2279                   
    Email: [EMAIL PROTECTED]  
-------------------------------------------------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to