Hi All,
Hopefully someone can help me with this. I'm not a c programmer
so don't claim to know much about what's going on. I'm trying
to get this to work with Solaris 7 on Intel. Still can't get
1.1.26 configure script to find guile, so am working with 1.1.25.
Start the configure script with ./configure --with-guile=/usr/include
and it scoots on thru.
Then using gnu make, /usr/local/bin/make motif and things run thru
for a while, and then
make[4]: Entering directory `/tmp/gnucash-1.1.25/src/swig/perl5'
/bin/bash: -c: line 1: syntax error near unexpected token `()'
/bin/bash: -c: line 1: `() >> gnucash.engine.i'
So looking at gnucash.engine.i and changing it to look like
this:
rem out third line of the file
%module gnucash
%include perl5_swig_annotations.i
#%{
the makefile for this directory is:
# These three lines are suggested defs for autoconf (see the info
pages).
include ../../../Makefile.init
INCLPATH = \
-I/usr/local/include \
-I. \
-I../../../ \
-I../../../src \
-I../../../src/swig\
-I../../../src/engine \
-I../../../include \
-I/usr/lib/perl5/i386-linux/5.00404/CORE \
-I$(prefix)/include
# set -Dbool=char because the perl headers need this
# use -fpic so that we can create loadable module
CFLAGS = -g -O2 -O2 -Wall ${INCLPATH} -Dbool=char -fpic -Wno-unused
SWIG_FLAGS := -stat -perl5 \
-I.. -I../../../src/engine
######################################################################
# SEE Makefile.common for information about these variables.
INDEP_SRCS = gnucash-engine-perl5_wrap.c
######################################################################
all: default
# This inclusion must come after the first target, and after the
# definitions of *_SRCS, etc., but before the usage of *_OBJS.
include ../../../Makefile.common
default: gnucash.so
gnucash.so: ${OBJS} ../../engine/libengine.a
gcc -shared ${OBJS} ../../engine/libengine.a -lnana -o gnucash.so
SWIG_FILTER := %P.h %/util.h
SWIG_ENGINE_HDRS := \
$(filter-out ${SWIG_FILTER},$(wildcard ../../../src/engine/*.h))
SWIG_ALL_HDRS := \
${SWIG_ENGINE_HDRS} \
../helperfuncs.h \
$(filter-out ${SWIG_FILTER},$(wildcard ../../../src/guile/gnucash.h))
ifeq (${HAVE_PLOTUTILS},1)
SWIG_ALL_HDRS += ../plot.preproc.h
endif
# Because Swig's include mechanism is not too smart.
SWIG_ENGINE_BASENAMES := $(notdir ${SWIG_ENGINE_HDRS})
SWIG_ALL_BASENAMES := $(notdir ${SWIG_ALL_HDRS})
# This is .PHONY because it has to be re-generated *every* time. Who
# knows when headers are added to the engine dir?
gnucash.engine.i: ${SWIG_ENGINE_HDRS} perl5_swig_annotations.i
@echo "%module gnucash" > $@
@echo "%include perl5_swig_annotations.i" >> $@
@echo "%{" >> $@
@($(foreach hdr,${SWIG_ENGINE_BASENAMES},echo "#include <${hdr}>"; ))
>> $@
@echo "%}" >> $@
@($(foreach hdr,${SWIG_ENGINE_BASENAMES},echo %include ${hdr}; )) >> $@
TRASH += gnucash.engine.i gnucash.engine_wrap.doc
# gnucash.all.i: guile_swig_annotations.i ${SWIG_ALL_HDRS}
# @echo "%module gnucash" > $@
# @echo "%include guile_swig_annotations.i" >> $@
# @echo "%{" >> $@
# @($(foreach hdr,${SWIG_ALL_BASENAMES},echo "#include <${hdr}>"; )) >>
$@
# @echo "%}" >> $@
# @($(foreach hdr,${SWIG_ALL_BASENAMES},echo %include ${hdr}; )) >> $@
# TRASH += gnucash.all.i gnucash.all_wrap.doc
gnucash-engine-perl5_wrap.c: gnucash.engine.i
swig ${SWIG_FLAGS} -o $@ $<
# perl -pi -e 's/^void gnucash\(\)/void gnucash_swig_init\(\)/' $@
TRASH += gnucash-engine-perl5_wrap.c
# gnucash-all-guile_wrap.c: gnucash.all.i
# swig ${SWIG_FLAGS} -o $@ $<
# perl -pi -e 's/^void gnucash\(\)/void gnucash_swig_init\(\)/' $@
# TRASH += gnucash-all-guile_wrap.c
# Local Variables:
# tab-width: 2
# End:
after making the change, the compilation continues to the very end, at
which point
I do not get gnucash.motif, but instead get the following:
make[3]: Leaving directory `/tmp/gnucash-1.1.25/src/guile'
make[3]: Entering directory `/tmp/gnucash-1.1.25/src/motif'
gcc -o ../../gnucash.motif obj/motif/AccWindow.o
obj/motif/AccountMenu.o obj/motif/AdjBWindow.o obj/motif/BuildMenu.o
obj/motif/Destroy.o obj/motif/FileBox.o obj/motif/FileDialog.o
obj/motif/HelpWindow.o obj/motif/MainWindow.o obj/motif/PriceMenu.o
obj/motif/RecnWindow.o obj/motif/RegWindow.o obj/motif/Reports.o
obj/motif/TextBox.o obj/motif/XferWindow.o obj/motif/top-level.o
obj/motif/xtutil.o ../../src/swig/guile/obj/gnucash-all-guile_wrap.o
-L/usr/local/lib -lSM -lICE -lXmHTML -lXm -lsocket -lnsl
-L/usr/openwin/lib -R/usr/openwin/lib -lXext -lXmu -lXt -lX11
-L/usr/include/lib -lguile -L ./lib/XmHTML-1.1.0 -lm -L/usr/include/lib
-lguile -lnana
Undefined first referenced
symbol in file
xaccMallocAccount obj/motif/AccWindow.o
xaccGroupGetNextFreeCode obj/motif/AccWindow.o
qt_error /usr/local/lib/libguile.so
xaccLoadXferCell obj/motif/RegWindow.o
xaccInvAcctSetPriceSrc obj/motif/AccWindow.o
xaccLedgerDisplayRefresh obj/motif/RegWindow.o
xaccLogEnable obj/motif/FileDialog.o
xaccLogDisable obj/motif/FileDialog.o
xaccSessionBeginFile obj/motif/FileDialog.o
xaccConfigSplitRegister obj/motif/RegWindow.o
xaccAccountGetCurrency obj/motif/AccWindow.o
xaccInvAcctGetPriceSrc obj/motif/AccWindow.o
qt_block /usr/local/lib/libguile.so
xaccPrintAmount obj/motif/MainWindow.o
xaccAccountSetCurrency obj/motif/AccWindow.o
xaccAccListDisplayRefresh obj/motif/RegWindow.o
xaccTransCommitEdit obj/motif/AccWindow.o
xaccLedgerDisplaySimple obj/motif/RegWindow.o
XbaeMatrixSetCellWidget obj/motif/MainWindow.o
xaccConsolidateGrpTransactions obj/motif/FileDialog.o
xaccSRSaveRegEntry obj/motif/RegWindow.o
xaccReadQIFAccountGroup obj/motif/FileDialog.o
xaccSessionSetGroup obj/motif/FileDialog.o
xaccSplitSetShareAmount obj/motif/XferWindow.o
XbaeMatrixSetCell obj/motif/RecnWindow.o
xaccConcatGroups obj/motif/FileDialog.o
xaccTransGetNum obj/motif/RecnWindow.o
xaccAccountGetChildren obj/motif/AccountMenu.o
xaccGetFileIOError obj/motif/FileDialog.o
xaccAccountCommitEdit obj/motif/AccWindow.o
xaccTransCountSplits obj/motif/RegWindow.o
XbaeMatrixSelectRow obj/motif/MainWindow.o
gnc_shutdown obj/motif/MainWindow.o
xbaeMatrixWidgetClass obj/motif/MainWindow.o
rl_cleanup_after_signal /usr/local/lib/libguile.so
xaccAccountGetAccInfo obj/motif/AccWindow.o
XbaeMatrixGetRowPixelHeight obj/motif/MainWindow.o
XbaeMatrixDeleteRows obj/motif/MainWindow.o
rl_redisplay /usr/local/lib/libguile.so
XbaeMatrixAddRows obj/motif/MainWindow.o
filename_completion_function /usr/local/lib/libguile.so
xaccGroupInsertAccount obj/motif/AccWindow.o
xaccMallocSession obj/motif/FileDialog.o
xaccAccountGetName obj/motif/AccWindow.o
XbaeMatrixGetRowUserData obj/motif/MainWindow.o
xaccAccountGetBalance obj/motif/MainWindow.o
xaccAccountGetTypeStr obj/motif/AccWindow.o
qt_abort /usr/local/lib/libguile.so
xaccFreeAccountGroup obj/motif/FileDialog.o
xaccLedgerDisplayAccGroup obj/motif/RegWindow.o
printDateSecs obj/motif/AdjBWindow.o
xaccAccountSetSecurity obj/motif/AccWindow.o
xaccAccountBeginEdit obj/motif/AccWindow.o
xaccQuerySetDateRangeL obj/motif/RegWindow.o
xaccRemoveAccount obj/motif/MainWindow.o
xaccSessionGetGroup obj/motif/FileDialog.o
xaccAccountGetSecurity obj/motif/AccWindow.o
XbaeMatrixDeselectAll obj/motif/MainWindow.o
xaccGetAccountRoot obj/motif/RegWindow.o
xaccSplitGetAccount obj/motif/RegWindow.o
xaccFreeAccount obj/motif/AccWindow.o
xaccSplitGetParent obj/motif/RecnWindow.o
rl_outstream /usr/local/lib/libguile.so
xaccAccountSetDescription obj/motif/AccWindow.o
xaccSplitGetReconcile obj/motif/RecnWindow.o
xaccCreateCursor obj/motif/RegWindow.o
xaccResolveFilePath obj/motif/FileDialog.o
XbaeMatrixGetCell obj/motif/RecnWindow.o
xaccAccountGetType obj/motif/AccWindow.o
rl_getc_function /usr/local/lib/libguile.so
xaccGroupGetNumAccounts obj/motif/AccountMenu.o
xaccTransRollbackEdit obj/motif/RegWindow.o
xaccAccountTreeScrubOrphans obj/motif/MainWindow.o
xaccTransGetDateStr obj/motif/RecnWindow.o
xaccQuerySetSortOrder obj/motif/RegWindow.o
get_fileptr_stderr
../../src/swig/guile/obj/gnucash-all-guile_wrap.o
xaccQueryGetLatestDateFound obj/motif/RegWindow.o
xaccMallocAccountGroup obj/motif/FileDialog.o
xaccRecomputeGroupBalance obj/motif/MainWindow.o
xaccSRGetCurrentSplit obj/motif/RegWindow.o
loglevel obj/motif/AccWindow.o
xaccAccountGetSplit obj/motif/RecnWindow.o
add_history /usr/local/lib/libguile.so
xaccAccountSetName obj/motif/AccWindow.o
xaccDestroyLedgerDisplay obj/motif/Destroy.o
xaccAccountSetNotes obj/motif/AccWindow.o
xaccAccountTreeScrubImbalance obj/motif/MainWindow.o
xaccTransBeginEdit obj/motif/AccWindow.o
XbaeMatrixSetRowUserData obj/motif/MainWindow.o
xaccTransGetDescription obj/motif/RecnWindow.o
xaccNextTabGroup obj/motif/RegWindow.o
xaccCastToInvAcct obj/motif/AccWindow.o
xaccSRRedrawRegEntry obj/motif/RegWindow.o
xaccGetNumAccounts obj/motif/AccountMenu.o
xaccSplitGetValue obj/motif/RecnWindow.o
rl_redisplay_function /usr/local/lib/libguile.so
xaccSplitDestroy obj/motif/RegWindow.o
xaccTransSetDescription obj/motif/AccWindow.o
get_fileptr_stdin
../../src/swig/guile/obj/gnucash-all-guile_wrap.o
xaccAccountSetType obj/motif/AccWindow.o
xaccSplitGetBalance obj/motif/AdjBWindow.o
rl_instream /usr/local/lib/libguile.so
xaccAccountGetReconciledBalance obj/motif/RecnWindow.o
xaccAccountGetCode obj/motif/AccWindow.o
xaccAccountGetDescription obj/motif/AccWindow.o
xaccMallocDateCell obj/motif/RegWindow.o
XbaeMatrixSetCellColor obj/motif/MainWindow.o
xaccTransSetDateToday obj/motif/AccWindow.o
xaccTablePrintHTML obj/motif/RegWindow.o
xaccAccountScrubImbalance obj/motif/RegWindow.o
xaccSessionEnd obj/motif/FileDialog.o
xaccAccountDisplayRefresh obj/motif/AdjBWindow.o
xaccSessionGetError obj/motif/FileDialog.o
xaccSplitSetValue obj/motif/AdjBWindow.o
xaccLedgerDisplayClose obj/motif/RegWindow.o
xaccGroupGetBalance obj/motif/MainWindow.o
xaccMergeAccounts obj/motif/FileDialog.o
xaccTableWebServeHTML obj/motif/RegWindow.o
xaccSessionSave obj/motif/FileDialog.o
xaccSplitGetShareAmount obj/motif/RecnWindow.o
xaccSetDateCellValueSecs obj/motif/RegWindow.o
xaccSplitGetMemo obj/motif/RegWindow.o
xaccAccountGetNextChildCode obj/motif/AccWindow.o
xaccSplitSetReconcile obj/motif/AdjBWindow.o
xaccAccountGroupNotSaved obj/motif/FileDialog.o
xaccTransSetDateStr obj/motif/AdjBWindow.o
xaccCreateTable obj/motif/RegWindow.o
xaccMallocTransaction obj/motif/AccWindow.o
xaccTransSetMemo obj/motif/XferWindow.o
xaccAccountGetNotes obj/motif/AccWindow.o
safe_strcmp obj/motif/AccWindow.o
xaccSessionDestroy obj/motif/FileDialog.o
main
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/crt1.o
readline /usr/local/lib/libguile.so
xaccAccountGroupMarkSaved obj/motif/FileDialog.o
rl_completion_entry_function /usr/local/lib/libguile.so
xaccTransDisplayRefresh obj/motif/RegWindow.o
xaccQuerySetMaxSplits obj/motif/RegWindow.o
xaccInsertSubAccount obj/motif/AccWindow.o
xaccAccountSetCode obj/motif/AccWindow.o
xaccGroupGetAccount obj/motif/AccountMenu.o
xaccAccountInsertSplit obj/motif/AccWindow.o
xaccGetQIFIOError obj/motif/FileDialog.o
get_fileptr_stdout
../../src/swig/guile/obj/gnucash-all-guile_wrap.o
xaccLogSetBaseName obj/motif/FileDialog.o
xaccQueryGetEarliestDateFound obj/motif/RegWindow.o
xaccSessionGetFilePath obj/motif/FileDialog.o
_gnc_shutdown_
../../src/swig/guile/obj/gnucash-all-guile_wrap.o
rl_free_line_state /usr/local/lib/libguile.so
xaccTransGetSplit obj/motif/AccWindow.o
ld: fatal: Symbol referencing errors. No output written to
../../gnucash.motif
make[3]: *** [../../gnucash.motif] Error 1
make[3]: Leaving directory `/tmp/gnucash-1.1.25/src/motif'
make[2]: *** [motif] Error 2
make[2]: Leaving directory `/tmp/gnucash-1.1.25/src'
make[1]: *** [build-flavor] Error 2
make[1]: Leaving directory `/tmp/gnucash-1.1.25'
make: *** [motif] Error 2
Can anyone give me a hand with this?
thanks in advance,
alan
[EMAIL PROTECTED]
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body