Building pathan for Berkeley DB XML

Anagh Lal anaghlal2002 at yahoo.com
Fri Jun 25 15:46:05 PDT 2004


Hi,
I was able to get libpathan installed using the
packages at
the FreeBSD website.

But I am not able to install Berkeley DB XML because
it reuires pathan source to be built.

I am not able to build pathan.

I am on 

FreeBSD ne211-demo.unl.edu 5.2-RELEASE FreeBSD
5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004    
root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
 i386

I have used 5.2-Current/i386  ports from the FreeBSD
websiteto install xerces, libpathan and berkeley db.

First I had to build xerces for FreeBSD configured
with
--enable-cxx and --enable-java

I added the --enable-java parameters and some others
as required by the Berkeley db xml website
 in the makefile 
CONFIGURE_ARGS+= -minmem -nsocket -tnative -rnone
and similarly for ---enable-java and --enable-cxx

The make and make install were succesful.
I set the XERCESROOT as /root/xerces_install/xerces-c2

it is where i have extracted the tar files.

now i go to where i have extracted the downloaded
files
for libpathan

I change to the following in the makefile

LIB_DEPENDS=
xerces-c.25:/root/xerces_install/xerces-c2
BUILD_DEPENDS=
${NONEXISTENT}:/root/xerces_install/xerces-c2:extract

XERCESCROOT=	`cd /root/xerces_install/xerces-c2 ;
${MAKE} -V WRKSRC`


then a make results in an error shown below

===>  Building for libpathan-1.2_2
gmake -C
/root/pathan_install/libpathan/work/libpathan-1.2/src/parser
gmake[1]: Entering directory
`/root/pathan_install/libpathan/work/libpathan-1.2/src/parser'
gmake[1]: Leaving directory
`/root/pathan_install/libpathan/work/libpathan-1.2/src/parser'
gmake[1]: Entering directory
`/root/pathan_install/libpathan/work/libpathan-1.2/src/parser'
bison -y -p XPathyy -d -v XPathParser.y -o
XPathParser.cpp
perl -pi -e
"s/yyparse\(YYPARSE_PARAM_ARG\)/PATHAN_EXPORT
yyparse(YYPARSE_PARAM_ARG)/g" XPathParser.cpp
perl -pi -e "s/int yydebug/int PATHAN_EXPORT
yydebug/g" XPathParser.cpp
c++ -c -DUNIX -Wall -ftemplate-depth-50 -O -pipe
-mcpu=pentiumpro
-I/root/pathan_install/libpathan/work/libpathan-1.2/src/patches/Xerces2_1_0/src
-I/root/xerces_install/xerces-c2/work/xerces-c-src_2_5_0/src
-I/root/pathan_install/libpathan/work/libpathan-1.2/src
-o
/root/pathan_install/libpathan/work/libpathan-1.2/objs/XPathParser.lo
XPathParser.cpp
mkdir
/root/pathan_install/libpathan/work/libpathan-1.2/objs/.libs
 c++ -c -DUNIX -Wall -ftemplate-depth-50 -O -pipe
-mcpu=pentiumpro
-I/root/pathan_install/libpathan/work/libpathan-1.2/src/patches/Xerces2_1_0/src
-I/root/xerces_install/xerces-c2/work/xerces-c-src_2_5_0/src
-I/root/pathan_install/libpathan/work/libpathan-1.2/src
XPathParser.cpp  -fPIC -DPIC -o
/root/pathan_install/libpathan/work/libpathan-1.2/objs/.libs/XPathParser.o
XPathParser.cpp: In function `int
XPathyyparse(void*)':
XPathParser.cpp:2427: error: syntax error before
`goto'
XPathParser.cpp:2418: warning: label `yyerrlab1'
defined but not used
gmake[1]: ***
[/root/pathan_install/libpathan/work/libpathan-1.2/objs/XPathParser.lo]
Error 1
gmake[1]: Leaving directory
`/root/pathan_install/libpathan/work/libpathan-1.2/src/parser'
gmake: *** [subdirs] Error 2
*** Error code 2
 
Stop in /root/pathan_install/libpathan.


I have installed berkeley db xml on windows, i did not
have to do anything..
now moving my project to FreeBSD is bottleneckd
because
Ican no not install Berkeley DB XML.
My lack of knowledge and experience in FreeBSD/UNIX
environment is to blame.
I am hoping my inputs were clear enough and hopefilly
one of the three parties (Pathan, FreeBSD and Berkeley
DB XML ) will be able to help me out.

I really hope it is not as tough to install software
on 
UNIX based  systems.

Thanks in advance,
Sorry for the trouble.

Anagh Lal. 
GRA,
CSE, Univ.of NE- Lincoln.

setenv XERCESROOT= xerces-c2/work/xerces-c-src_2_5_0





		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail


More information about the freebsd-ports mailing list