Thanks for the response Omar. The tarball can be downloaded from https://sourceforge.net/projects/objc/files/src/objc-3.3.25.tar.gz The error is illustrated below: [image: portable obj compiler error.png] I already installed Bison hoping it will provide yacc.h, but it didn't also include that file. I also tried using the y.tab.h file but it had the same error. I tried to comment out the yacc.h header, still got the same error message.
On Tue, Apr 19, 2022 at 1:44 AM Omar Polo <o...@openbsd.org> wrote: > 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. > > >