building the wdm port fails with the following error: cc -L/usr/local/lib -L./bin -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib src/wdmLogin/Login.o src/wdmLogin/config.o -lcrypt -lutil -lwdm -lSM -lICE -lXext -lX11 -lm -lXinerama -lWINGs -lwraster -ltiff -lXpm -lpng -lz -ljpeg -lungif -L/usr/X11R6/lib -L/usr/local/lib -lXft -lfreetype -lz -lXrender -lX11 -lXext -lfontconfig -lXext -lX11 -lm -o bin/wdmLogin src/wdmLogin/Login.o: In function `parse_helpArg': src/wdmLogin/Login.o(.text+0xb7): undefined reference to `libintl_gettext' src/wdmLogin/Login.o: In function `PrintErrMsg': src/wdmLogin/Login.o(.text+0x53e): undefined reference to `libintl_gettext' src/wdmLogin/Login.o: In function `init_pwdfield': src/wdmLogin/Login.o(.text+0x74b): undefined reference to `libintl_gettext' src/wdmLogin/Login.o: In function `init_namefield': src/wdmLogin/Login.o(.text+0x7ae): undefined reference to `libintl_gettext' src/wdmLogin/Login.o: In function `PerformLogin': src/wdmLogin/Login.o(.text+0x8c2): undefined reference to `libintl_gettext' src/wdmLogin/Login.o(.text+0x97c): more undefined references to `libintl_gettext' follow src/wdmLogin/Login.o: In function `main': src/wdmLogin/Login.o(.text+0x21a8): undefined reference to `libintl_bindtextdomain' src/wdmLogin/Login.o(.text+0x21c2): undefined reference to `libintl_bindtextdomain' src/wdmLogin/Login.o(.text+0x21d2): undefined reference to `libintl_textdomain' Fix: in Makefile replace CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ DEF_SERVER="${DEF_SERVER}" by CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \ DEF_SERVER="${DEF_SERVER}" How-To-Repeat: cd /usr/ports/x11/wdm make
State Changed From-To: open->feedback This builds fine here, and on package cluster too. Can you provide complete build log? I can't see how your suggested fix (removing -L/usr/local/lib from LDFLAGS in configure environment) could fix this.
Responsible Changed From-To: freebsd-ports-bugs->pav Poke.
Here is the complete log: If you want to compile with PAM support, hit Ctrl-C right now and use "make WITH_PAM=yes" ===> Vulnerability check disabled, database not found ===> Extracting for wdm-1.27 >> Checksum OK for wdm/wdm-1.27.tar.bz2. >> Checksum OK for wdm/beastie.xpm. >> Checksum OK for wdm/daemon1-HQ-1280x960.jpg. ===> Patching for wdm-1.27 ===> Applying FreeBSD patches for wdm-1.27 ===> wdm-1.27 depends on shared library: wraster.4 - found ===> wdm-1.27 depends on shared library: X11.6 - found ===> Configuring for wdm-1.27 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for ranlib... ranlib checking for xrdb... /usr/X11R6/bin/xrdb checking for xconsole... /usr/X11R6/bin/xconsole checking for shutdown... /sbin/shutdown checking for xterm... /usr/X11R6/bin/xterm checking for X... /usr/X11R6/bin/X checking for sh... /bin/sh checking for bash... /usr/local/bin/bash checking how to run the C preprocessor... cc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking whether sys_siglist is declared... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking for pid_t... yes checking for mkstemp... yes checking for main in -lshadow... no checking shadow.h usability... no checking shadow.h presence... no checking for shadow.h... no checking for SELinux support... no checking for main in -lutil... yes checking for main in -lcrypt... yes checking for killpg in -lucb... no checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for XineramaIsActive in -lXinerama... yes checking for get-wings-flags... get-wings-flags checking for prefix... /usr/X11R6 checking for exec_prefix... /usr/X11R6 checking for logdir... /var/log checking for runlockdir... /var/run checking for defuserpath... /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin checking for defsystempath... /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin checking if wdmdir has been specified... yes, using /usr/X11R6/lib/X11/wdm checking if gfxdir has been specified... yes, using /usr/X11R6/lib/X11/wdm/pixmaps checking if Logo pixmap specified... beastie.xpm checking for wmaker... /usr/X11R6/bin/wmaker checking for afterstep... /usr/X11R6/bin/afterstep checking for blackbox... /usr/X11R6/bin/blackbox checking for icewm... /usr/X11R6/bin/icewm checking for xsession... /usr/X11R6/bin/xsession checking for startkde... no checking if window manager list specified... wmaker:afterstep:blackbox:ctwm:enlightenment:fvwm:fvwm2:fvwm95:olvwm:qvwm:tvtwm configure: WARNING: make sure Xsession and Xclients support the above list checking for gettext... no checking for gettext in -lintl... yes checking for xgettext... xgettext checking for msgfmt... msgfmt xgettext isn't GNU version configure: creating ./config.status config.status: creating Makefile config.status: creating include/config.h ===> Building for wdm-1.27 cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/TestLogin/TestLogin.c -o src/TestLogin/TestLogin.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/libwdm/debug.c -o src/libwdm/debug.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/libwdm/environment.c -o src/libwdm/environment.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/libwdm/names.c -o src/libwdm/names.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/libwdm/plcheckers.c -o src/libwdm/plcheckers.o mkdir -p bin ar cru bin/libwdm.a src/libwdm/debug.o src/libwdm/environment.o src/libwdm/names.o src/libwdm/plcheckers.o ranlib bin/libwdm.a mkdir -p bin cc -L/usr/local/lib -L./bin -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib src/TestLogin/TestLogin.o -lcrypt -lutil -lwdm -lSM -lICE -lXext -lX11 -lm -lXinerama -lWINGs -lwraster -ltiff -lXpm -lpng -lz -ljpeg -lungif -L/usr/X11R6/lib -L/usr/local/lib -lXft -lfreetype -lz -lXrender -lX11 -lXext -lfontconfig -lXext -lX11 -lm -o bin/TestLogin cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/Greet.c -o src/wdm/Greet.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/access.c -o src/wdm/access.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/auth.c -o src/wdm/auth.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/choose.c -o src/wdm/choose.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/daemon.c -o src/wdm/daemon.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/dm.c -o src/wdm/dm.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/dpylist.c -o src/wdm/dpylist.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/file.c -o src/wdm/file.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/genauth.c -o src/wdm/genauth.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/loghelpers.c -o src/wdm/loghelpers.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/mitauth.c -o src/wdm/mitauth.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/netaddr.c -o src/wdm/netaddr.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/policy.c -o src/wdm/policy.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/protodpy.c -o src/wdm/protodpy.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/reset.c -o src/wdm/reset.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/resource.c -o src/wdm/resource.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/server.c -o src/wdm/server.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/session.c -o src/wdm/session.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/socket.c -o src/wdm/socket.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/util.c -o src/wdm/util.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/verify.c -o src/wdm/verify.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdm/xdmcp.c -o src/wdm/xdmcp.o mkdir -p bin cc -L/usr/local/lib -L./bin -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib src/wdm/Greet.o src/wdm/access.o src/wdm/auth.o src/wdm/choose.o src/wdm/daemon.o src/wdm/dm.o src/wdm/dpylist.o src/wdm/file.o src/wdm/genauth.o src/wdm/loghelpers.o src/wdm/mitauth.o src/wdm/netaddr.o src/wdm/policy.o src/wdm/protodpy.o src/wdm/reset.o src/wdm/resource.o src/wdm/server.o src/wdm/session.o src/wdm/socket.o src/wdm/util.o src/wdm/verify.o src/wdm/xdmcp.o -lcrypt -lutil -lwdm -lSM -lICE -lXext -l X11 -lm -lXinerama -lWINGs -lwraster -ltiff -lXpm -lpng -lz -ljpeg -lungif -L/usr/X11R6/lib -L/usr/local/lib -lXft -lfreetype -lz -lXrender -lX11 -lXext -lfontconfig -lXext -lX11 -lm -lXmu -lXau -lXdmcp -o bin/wdm cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdmChooser/chooser.c -o src/wdmChooser/chooser.o mkdir -p bin cc -L/usr/local/lib -L./bin -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib src/wdmChooser/chooser.o -lcrypt -lutil -lwdm -lSM -lICE -lXext -lX11 -lm -lXinerama -lWINGs -lwraster -ltiff -lXpm -lpng -lz -ljpeg -lungif -L/usr/X11R6/lib -L/usr/local/lib -lXft -lfreetype -lz -lXrender -lX11 -lXext -lfontconfig -lXext -lX11 -lm -o bin/wdmChooser cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdmLogin/Login.c -o src/wdmLogin/Login.o cc -c -I/usr/local/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -O -fomit-frame-pointer -pipe -march=pentiumpro -DHAVE_CONFIG_H -I./include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include src/wdmLogin/config.c -o src/wdmLogin/config.o mkdir -p bin cc -L/usr/local/lib -L./bin -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib src/wdmLogin/Login.o src/wdmLogin/config.o -lcrypt -lutil -lwdm -lSM -lICE -lXext -lX11 -lm -lXinerama -lWINGs -lwraster -ltiff -lXpm -lpng -lz -ljpeg -lungif -L/usr/X11R6/lib -L/usr/local/lib -lXft -lfreetype -lz -lXrender -lX11 -lXext -lfontconfig -lXext -lX11 -lm -o bin/wdmLogin src/wdmLogin/Login.o: In function `parse_helpArg': src/wdmLogin/Login.o(.text+0xb7): undefined reference to `libintl_gettext' src/wdmLogin/Login.o: In function `PrintErrMsg': src/wdmLogin/Login.o(.text+0x53e): undefined reference to `libintl_gettext' src/wdmLogin/Login.o: In function `init_pwdfield': src/wdmLogin/Login.o(.text+0x74b): undefined reference to `libintl_gettext' src/wdmLogin/Login.o: In function `init_namefield': src/wdmLogin/Login.o(.text+0x7ae): undefined reference to `libintl_gettext' src/wdmLogin/Login.o: In function `PerformLogin': src/wdmLogin/Login.o(.text+0x8c2): undefined reference to `libintl_gettext' src/wdmLogin/Login.o(.text+0x97c): more undefined references to `libintl_gettext' follow src/wdmLogin/Login.o: In function `main': src/wdmLogin/Login.o(.text+0x21a8): undefined reference to `libintl_bindtextdomain' src/wdmLogin/Login.o(.text+0x21c2): undefined reference to `libintl_bindtextdomain' src/wdmLogin/Login.o(.text+0x21d2): undefined reference to `libintl_textdomain' *** Error code 1 Stop in /usr/tmp/usr/ports/x11/wdm/work/wdm-1.27. *** Error code 1 Stop in /usr/ports/x11/wdm. -- GPG Fingerprint: 231E E4DA 4DA9 3A93 3582 664A 1A20 6F37 5D1B 81C0
State Changed From-To: feedback->analyzed It's unclear why this fix works, but it does (I just ran into the same problem). I just committed the fix so that at least the build will be unbroken, thank you Florian for submitting this PR, you saved me a lot of time today. I'll let pav decide whether to close the PR, or pursue this further. Doug
State Changed From-To: analyzed->closed Sorry, I can't figure it out either. So let this die.
Responsible Changed From-To: pav->freebsd-ports-bugs Sorry, I can't figure it out either. So let this die.