Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libraries do not compile properly #18

Open
christiancasey opened this issue May 22, 2019 · 1 comment
Open

Libraries do not compile properly #18

christiancasey opened this issue May 22, 2019 · 1 comment

Comments

@christiancasey
Copy link

After finally getting cruncher to compile properly after much difficulty (it does not work on all systems, despite what the docs say), I then tried to compile the libraries. It seems to work fine for nouns, but when it gets to verbs everything falls apart. Here is the error I'm seeing (on a late-2013 MBP with Mojave):

cat stemsrc/vbs.latin.bas stemsrc/vbs.latin.irreg stemsrc/vbs.latin stemsrc/vbs.irreg stemsrc/vbs.mpi | \
	    perl -pe 's/([a-z])([aei])_v[ \t]+perfstem/$1\t$2vperf/g;' > \
	    conjfile
cat: stemsrc/vbs.mpi: No such file or directory
do_conj -L
make: *** [stemind/vbind] Abort trap: 6
christiansmbp2:Latin christiancasey$ 

I believe the problem is that my system lacks something that it needs, but I can't seem to figure out what it is. It could also have something to do with my workaround for the problem with Flex (see my response to another issue for details). The error message: Abort trap: 6 is wildly unhelpful.

@lutetiensis
Copy link

The problem is here.

strcpy(stembuf,stembuf+4);

It seems strcpy() tries to access beyond stembuf, ie. that the string starting at stembuf+4 is longer than the stembuf buffer.

I fixed the problem by changing the call into a strncpy():

strncpy(stembuf,stembuf+4,sizeof(stembuf));

I created another ticket for the rest of your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants