trying to compile frickin pptp proxy
Hi I'm trying to compile frickin pptp proxy on an OpenBSD 4.1 system. The compilation fails with the following errors: g++ -Wall -g -O2 -I/home/paolo/src/frickin/include -L/home/paolo/src/frickin/lib -o frickin2 main.o logger.o configuration.o session.o listener.o entity.o server.o client.o call.o rfc2637.o grehandler.o exception.o nat.o util.o -pthread -lconfig++ g++: main.o: No such file or directory g++: logger.o: No such file or directory g++: configuration.o: No such file or directory g++: session.o: No such file or directory g++: listener.o: No such file or directory g++: entity.o: No such file or directory g++: server.o: No such file or directory g++: client.o: No such file or directory g++: call.o: No such file or directory g++: rfc2637.o: No such file or directory g++: grehandler.o: No such file or directory g++: exception.o: No such file or directory g++: nat.o: No such file or directory g++: util.o: No such file or directory *** Error code 1 Stop in /home/paolo/src/frickin/src (line 12 of Makefile.OpenBSD). *** Error code 1 Stop in /home/paolo/src/frickin (line 5 of Makefile). I don't know why, but the objects never get created in the src directory. Does anyone know how to solve it? TIA Paolo
Re: trying to compile frickin pptp proxy
Paolo Supino wrote: I'm trying to compile frickin pptp proxy on an OpenBSD 4.1 system. You may want to reconsider the experiment with PPTP. It's very difficult to deal with and there appear to be serious problems with the protocol itself, even in later versions: http://www.schneier.com/pptp-faq.html IPsec and SSL are your two serious options: http://www.vpnc.org/vpn-standards.html -Lars
Re: trying to compile frickin pptp proxy
Hi Lars I know about the limitation and their implications, but unfortunately I don't control the other peer and have to live with what I'm given. TIA Paolo Lars Noodin wrote: Paolo Supino wrote: I'm trying to compile frickin pptp proxy on an OpenBSD 4.1 system. You may want to reconsider the experiment with PPTP. It's very difficult to deal with and there appear to be serious problems with the protocol itself, even in later versions: http://www.schneier.com/pptp-faq.html IPsec and SSL are your two serious options: http://www.vpnc.org/vpn-standards.html -Lars
Re: trying to compile frickin pptp proxy
On Tue, 28 Aug 2007, Paolo Supino wrote: Hi I'm trying to compile frickin pptp proxy on an OpenBSD 4.1 system. The compilation fails with the following errors: g++ -Wall -g -O2 -I/home/paolo/src/frickin/include -L/home/paolo/src/frickin/lib -o frickin2 main.o logger.o configuration.o session.o listener.o entity.o server.o client.o call.o rfc2637.o grehandler.o exception.o nat.o util.o -pthread -lconfig++ g++: main.o: No such file or directory g++: logger.o: No such file or directory g++: configuration.o: No such file or directory g++: session.o: No such file or directory g++: listener.o: No such file or directory g++: entity.o: No such file or directory g++: server.o: No such file or directory g++: client.o: No such file or directory g++: call.o: No such file or directory g++: rfc2637.o: No such file or directory g++: grehandler.o: No such file or directory g++: exception.o: No such file or directory g++: nat.o: No such file or directory g++: util.o: No such file or directory *** Error code 1 Stop in /home/paolo/src/frickin/src (line 12 of Makefile.OpenBSD). *** Error code 1 Stop in /home/paolo/src/frickin (line 5 of Makefile). I don't know why, but the objects never get created in the src directory. Does anyone know how to solve it? Maybe they're being created in [somewhere]/obj. Look there; try deleting [somewhere]/obj and recompile. Something is probably goofy in the Makefile. Something is all fricked up with frickin beyond the developer's subadolescent vocabulary choices. (The word is mildly offensive in English.) Try find /home/paolo/src/frickin | grep grehandler.o to find where those .o's are frickin going. Maybe the developer intended to use frickin gmake. Dave -- America ... might become dictatress of the world. She would be no longer the ruler of her own spirit. -- John Quincy Adams, July 4, 1821
Re: trying to compile frickin pptp proxy
Hi Thank you!!! I had the feeling that the problem is in the Makefile.OpenBSD, but didn't know how to fix it. Doing what you suggested below solved the problem and I'm now able to build frickin proxy. Now I have to make it work ... TIA Paolo Marmotic Marvel wrote: On Tue, 28 Aug 2007, Marmotic Marvel wrote: The compilation fails with the following errors: g++ -Wall -g -O2 -I/home/paolo/src/frickin/include -L/home/paolo/src/frickin/lib -o frickin2 main.o logger.o configuration.o session.o listener.o entity.o server.o client.o call.o rfc2637.o grehandler.o exception.o nat.o util.o -pthread -lconfig++ g++: main.o: No such file or directory g++: logger.o: No such file or directory g++: configuration.o: No such file or directory g++: session.o: No such file or directory g++: listener.o: No such file or directory g++: entity.o: No such file or directory g++: server.o: No such file or directory g++: client.o: No such file or directory g++: call.o: No such file or directory g++: rfc2637.o: No such file or directory g++: grehandler.o: No such file or directory g++: exception.o: No such file or directory g++: nat.o: No such file or directory g++: util.o: No such file or directory *** Error code 1 Stop in /home/paolo/src/frickin/src (line 12 of Makefile.OpenBSD). *** Error code 1 Stop in /home/paolo/src/frickin (line 5 of Makefile). I don't know why, but the objects never get created in the src directory. Does anyone know how to solve it? I've since dloaded the tar file. I duplicate your error. It is not a make/gmake problem. I would suggest you complain to the program's developers. The Makefiles may be broken. They are not written to use /usr/share/mk/bsd* I think the makefiles need a rule to make .o from .cpp. The src/Makefile.OpenBSD looks funny to me. It needs rules after the lines like main.o: main.cpp listener.hpp session.hpp grehandler.hpp exception.hpp logger.hp p $(CXX) -o $@ -c $(CXXFLAGS) main.cpp I believe this will help, you need similar lines all through the makefile. Dave
Re: trying to compile frickin pptp proxy
On Tue, 28 Aug 2007, Paolo Supino wrote: Hi Thank you!!! I had the feeling that the problem is in the Makefile.OpenBSD, but didn't know how to fix it. Doing what you suggested below solved the problem and I'm now able to build frickin proxy. Now I have to make it work ... TIA Paolo For some reason, 4.1 /usr/share/mk/sys.mk lacks suffix rules for .cpp This can be fixed by duplicating and then appropriately changing the set of rules for .cxx, and adding .cpp to the list of suffixes near the top of sys.mk. There may be reasons not to do this, but I don't know them. If you get the chance, inform the author of the proxy. Dave This patch seems to do the job: 8-- --- sys.mk.orig Tue May 22 04:09:58 2007 +++ sys.mk Tue Aug 28 15:51:31 2007 @@ -14,7 +14,7 @@ OSREV= $(OSMAJOR).$(OSMINOR) OSrev= $(OSMAJOR)$(OSMINOR) -.SUFFIXES: .out .a .ln .o .c .cc .C .cxx .F .f .r .y .l .s .S .cl .p .h .sh .m4 +.SUFFIXES: .out .a .ln .o .c .cc .C .cxx .F .f .r .y .l .s .S .cl .p .h .sh .m4 .cpp .LIBS: .a @@ -121,6 +121,15 @@ .cxx.o: ${COMPILE.cc} ${.IMPSRC} .cxx.a: + ${COMPILE.cc} ${.IMPSRC} + ${AR} ${ARFLAGS} $@ $*.o + rm -f $*.o + +.cpp: + ${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} +.cpp.o: + ${COMPILE.cc} ${.IMPSRC} +.cpp.a: ${COMPILE.cc} ${.IMPSRC} ${AR} ${ARFLAGS} $@ $*.o rm -f $*.o