I have soft-linked /usr/X11R6/lib into cdesktopenv-code/cde/imports/x11/ and am no longer getting those warnings for libXau.a and libXdmcp.a The make World is still failing at dtlogin and fails the rest of the build. Others are reporting same issue: http://www.bsdforen.de/threads/cde-baut-nicht-mehr-auf-openbsd-5-7.31863/ Has anyone been able to compile on OpenBSD 5.7?
However, I am able to compile an individual program such as dtcalc If I try and compile dtlogin by itself it fails with the following # cd dtlogin # make making all in programs/dtlogin/config... rm -f dtlogin cc -o dtlogin -O2 -fno-strict-aliasing -pipe -Wall -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -L../../exports/lib -L../../imports/motif/lib -L../../imports/x11/lib access.o account.o auth.o genauth.o daemon.o dm.o dpylist.o error.o file.o mitauth.o protodpy.o policy.o reset.o resource.o server.o session.o socket.o util.o verify.o version.o apollo.o sysauth.o fontpath.o qualify.o usl_ptty.o choose.o netaddr.o xdmcp.o -lXau -lXmu -L../../exports/lib -L../../imports/motif/lib -L../../imports/x11/lib -lXt -lX11 -lXdmcp -lXext -lX11 -L/usr/X11R6/lib -L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib policy.o(.text+0x28f): In function `Willing': : warning: tmpnam() possibly used unsafely; consider using mkstemp() access.o(.text+0xaef): In function `ScanAccessDatabase': : warning: strcpy() is almost always misused, please use strlcpy() auth.o(.text+0x1e5): In function `openFiles': : warning: strcat() is almost always misused, please use strlcat() auth.o(.text+0xd75): In function `SetUserAuthorization': : warning: sprintf() is often misused, please use snprintf() auth.o(.text+0xd7d): In function `SetUserAuthorization': : warning: mktemp() possibly used unsafely; consider using mkstemp() genauth.o(.text+0x1f6): In function `GenerateAuthData': : undefined reference to `setkey' genauth.o(.text+0x219): In function `GenerateAuthData': : undefined reference to `encrypt' collect2: ld returned 1 exit status *** Error 1 in /root/cdesktopenv-code/cde/programs/dtlogin (Makefile:842 'dtlogin') # -----Original Message----- From: Edmond Orignac [mailto:edmond.orig...@wanadoo.fr] Sent: Sunday, June 14, 2015 5:45 AM To: cdesktopenv-devel@lists.sourceforge.net Subject: Re: [cdesktopenv-devel] OpenBSD 5.7 AMD64 fails to compile Hi, The compilation of dtlogin fails because of undefined references to `setkey' and to `encrypt'. Those are POSIX and System V functions, but they may need compatibility libraries on BSD. The warnings: target ../../imports/x11/lib/libXau.a (prerequisite of: dtlogin) does not have any command (BUG) ../../imports/x11/lib/libXdmcp.a (prerequisite of: dtlogin) does not have any command (BUG) could signal that you also have an incomplete installation of X11, without developper libraries for X authentication and XDMCP protocol or that the names/locations of those libraries have been changed in OpenBSD 5.7. Is dtlogin the only CDE program that fails to build or is that a more general failure of the build process ? In the first case, one can simply use xdm (or similar) to manage logins. On 13/06/2015 21:58, Alex Madama wrote: > Hi everyone, > > I am trying to update the wiki entry for OpenBSD CDE build. Using the > baseline that I wrote and verified with CDE 2.2.1 on OpenBSD 5.4. > > Currently with the new CDE 2.2.3 and OpenBSD 5.7 AMD64 I am unable to > get a proper compile. Tail of the make World is below: > > xdmcp.c: In function 'all_query_respond': > > xdmcp.c:249: warning: implicit declaration of function > 'RememberIndirectClient' > > xdmcp.c:251: warning: implicit declaration of function > 'ForgetIndirectClient' > > xdmcp.c: In function 'WaitForSomething': > > xdmcp.c:375: warning: suggest parentheses around && within || > > xdmcp.c:399: warning: implicit declaration of function > 'ProcessChooserSocket' > > xdmcp.c: In function 'manage': > > xdmcp.c:1011: warning: implicit declaration of function 'IsIndirectClient' > > xdmcp.c: In function 'forward_respond': > > xdmcp.c:548: warning: 'clientlen' may be used uninitialized in this > function > > xdmcp.c:547: warning: 'client' may be used uninitialized in this > function > > Warning: target ../../imports/x11/lib/libXau.a (prerequisite of: > dtlogin) does not have any command (BUG) > > Warning: target ../../imports/x11/lib/libXdmcp.a (prerequisite of: > dtlogin) does not have any command (BUG) > > rm -f dtlogin > > cc -o dtlogin -O2 -fno-strict-aliasing -pipe -Wall -Wpointer-arith > -Wno-unused -Wno-write-strings -Wno-switch -L../../exports/lib > -L../../imports/motif/lib -L../../imports/x11/lib access.o account.o > auth.o genauth.o daemon.o dm.o dpylist.o error.o file.o mitauth.o > protodpy.o policy.o reset.o resource.o server.o session.o socket.o > util.o verify.o version.o apollo.o sysauth.o fontpath.o qualify.o > usl_ptty.o choose.o netaddr.o xdmcp.o -lXau -lXmu -L../../exports/lib > -L../../imports/motif/lib -L../../imports/x11/lib -lXt -lX11 -lXdmcp > -lXext -lX11 -L/usr/X11R6/lib -L/usr/local/lib -L/usr/local/lib > -L/usr/X11R6/lib > > policy.o(.text+0x28f): In function `Willing': > > : warning: tmpnam() possibly used unsafely; consider using mkstemp() > > access.o(.text+0xaef): In function `ScanAccessDatabase': > > : warning: strcpy() is almost always misused, please use strlcpy() > > auth.o(.text+0x1e5): In function `openFiles': > > : warning: strcat() is almost always misused, please use strlcat() > > auth.o(.text+0xd75): In function `SetUserAuthorization': > > : warning: sprintf() is often misused, please use snprintf() > > auth.o(.text+0xd7d): In function `SetUserAuthorization': > > : warning: mktemp() possibly used unsafely; consider using mkstemp() > > genauth.o(.text+0x1f6): In function `GenerateAuthData': > > : undefined reference to `setkey' > > genauth.o(.text+0x219): In function `GenerateAuthData': > > : undefined reference to `encrypt' > > collect2: ld returned 1 exit status > > *** Error 1 in programs/dtlogin (Makefile:842 'dtlogin') > > *** Error 1 in programs (Makefile:729 'all') > > *** Error 1 in . (xmakefile:721 'all') > > *** Error 1 in /root/cdesktopenv-code/cde (Makefile:66 'World') > > Based on the existing OpenBSD wiki entry what other dependency might > be missing? > > Thanks, > > Alex > > > > ---------------------------------------------------------------------- > -------- > > > > _______________________________________________ > cdesktopenv-devel mailing list > cdesktopenv-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel ---------------------------------------------------------------------------- -- _______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel ------------------------------------------------------------------------------ _______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel