Tito Mari Francis Escaño <titomarifran...@gmail.com> wrote: > Hi everyone, > I'm trying to build Portable Object Compiler from > https://sourceforge.net/projects/objc/ in OpenBSD snapshot but it keeps > complaining that it can't find yacc.h so it won't push through.
It's always a good idea to share a tarball, especially when asking for help. It makes your situation "reproducible" (sorta) so it's easier for someone else to help you debug the issue. It's also incredibly useful to also copy/paste the *exect* output from your command, including the errors. > I have the build tools installed during initial installation, so I was > wondering where the problem is. > Is there such a thing as yacc.h in any package or ports? When in doubt you can use pkglocate to look for files owned by packages, even if you don't have them installed. It's an incredibly useful tool. However, in this case I doubt it'll help you. yacc is included in base and given that's a parser generator I don't find strange to have it as requirement for a compiler. Yacc usually generates a file called `y.tab.c' and, if -d is provided, it generates y.tab.h too. Bison (a GNU implementation of yacc) does the same but instead of the "y" uses the name of the yacc file as base for the output IIRC. Maybe playing with the -d, -b and/or -o flags helps? what if you "force" it to use GNU bison? > Please let me know. > Thanks.