Installation problem v0.8, Cygwin on WinXP

david serafini <[email protected]>
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
I'm trying to build from the tar file on Cygwin using python v2.4

I used the command: python setup.py config --prefix=/usr/local

This gets several msgs of the form:

/usr/local/pkg/synopsis-0.8/Synopsis/Parsers/Cpp/ucpp/configure: line 1: 
pkg-config: command not found
/usr/local/pkg/synopsis-0.8/Synopsis/Parsers/Cpp/ucpp/configure: line 1: 
pkg-config: command not found

but it succeeds anyway.  But the compile fails in ucpp directory

g++ -I /usr/local/pkg/synopsis-0.8/Synopsis/Parsers/Cpp/ucpp 
-I/usr/local/include -I /usr/include/python2.4 -D_REENTRANT -g -O2 -c -o 
ucpp.o /usr/local/pkg/synopsis-0.8/Synopsis/Parsers/Cpp/ucpp/ucpp.cc
/usr/local/pkg/synopsis-0.8/Synopsis/Parsers/Cpp/ucpp/ucpp.cc:8:34: 
Synopsis/AST/ASTKit.hh: No such file or directory
/usr/local/pkg/synopsis-0.8/Synopsis/Parsers/Cpp/ucpp/ucpp.cc:9:35: 
Synopsis/AST/TypeKit.hh: No such file or directory
/usr/local/pkg/synopsis-0.8/Synopsis/Parsers/Cpp/ucpp/ucpp.cc:10:27: 
Support/Path.hh: No such file or directory
/usr/local/pkg/synopsis-0.8/Synopsis/Parsers/Cpp/ucpp/ucpp.cc:11:35: 
Support/ErrorHandler.hh: No such file or directory

The Synopsis and Support directories are present in the
'synopsis-0.8/src' directory, but not in the directories
mentioned in the -I options to g++.

I tried symlinking these dirs into /usr/local/include, and the compile
succeeded, but the link failed with a bunch of missing references:

g++ -shared  -o ucpp.dll mem.o hashtable.o cpp.o lexer.o assert.o 
macro.o eval.o ucpp.o -L /usr/lib/python2.4/config -lpython2.4  -lpthread
ucpp.o(.text+0x96): In function 
`_ZN8Synopsis3AST8Declared6acceptEPNS0_11TypeVisitorE':
/usr/local/include/Synopsis/AST/Declared.hh: undefined reference to 
`Synopsis::Path::normalize(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
ucpp.o(.text+0x108):/usr/local/include/Synopsis/AST/Declared.hh: 
undefined reference to `Synopsis::Path::strip(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
...etc...


Any suggestions?

Thanks in advance,
dbs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.