Date: Fri, 10 Feb 2012 15:20:09 GMT From: Vick Khera <vivek@khera.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/164959: pam_google_authenticator install deletes /dev/null Message-ID: <201202101520.q1AFK9M5062327@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/164959; it has been noted by GNATS. From: Vick Khera <vivek@khera.org> To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/164959: pam_google_authenticator install deletes /dev/null Date: Fri, 10 Feb 2012 09:54:11 -0500 Some more refined details: To repeat, all you have to do is this: cd /usr/ports/security/pam_google_authenticator make and your /dev/null disappears. The only reference to /dev/null in the Makefile is this: LDL_LDFLAGS :=3D $(shell $(CC) -shared -ldl -xc -o /dev/null /dev/null = \ >/dev/null 2>&1 && echo ' -ldl') and that is referenced on every programs' link command. See: Script started on Fri Feb 10 09:44:05 2012 [root@sandbox]# ls -l /dev/null crw-rw-rw- 1 root wheel 0, 8 Feb 10 09:44 /dev/null [root@sandbox]# pwd /usr/ports/security/pam_google_authenticator [root@sandbox]# make =3D=3D=3D> License AL2 accepted by the user =3D=3D=3D> Extracting for pam_google_authenticator-20120119 =3D> SHA256 Checksum OK for google-authenticator-20120119.tar.gz. /usr/ports/distfiles//google-authenticator-20120119.tar.gz: 76.0% =3D=3D=3D> Patching for pam_google_authenticator-20120119 =3D=3D=3D> pam_google_authenticator-20120119 depends on executable: = gmake - found =3D=3D=3D> Configuring for pam_google_authenticator-20120119 =3D=3D=3D> Building for pam_google_authenticator-20120119 cc --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden -O2 -pipe = -fno-strict-aliasing -o google-authenticator.o google-authenticator.c cc --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden -O2 -pipe = -fno-strict-aliasing -o base32.o base32.c cc --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden -O2 -pipe = -fno-strict-aliasing -o hmac.o hmac.c cc --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden -O2 -pipe = -fno-strict-aliasing -o sha1.o sha1.c cc -g -o google-authenticator google-authenticator.o base32.o hmac.o = sha1.o=20 cc --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden -O2 -pipe = -fno-strict-aliasing -o pam_google_authenticator.o = pam_google_authenticator.c pam_google_authenticator.c: In function 'request_pass': pam_google_authenticator.c:776: warning: initialization discards = qualifiers from pointer target type cc -shared -g -o pam_google_authenticator.so = pam_google_authenticator.o base32.o hmac.o sha1.o -lpam cc --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden -O2 -pipe = -fno-strict-aliasing -o demo.o demo.c cc -DDEMO --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden -O2 = -pipe -fno-strict-aliasing -o pam_google_authenticator_demo.o = pam_google_authenticator.c pam_google_authenticator.c: In function 'request_pass': pam_google_authenticator.c:776: warning: initialization discards = qualifiers from pointer target type cc -g -rdynamic -o demo demo.o pam_google_authenticator_demo.o = base32.o hmac.o sha1.o=20 cc -DTESTING --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden = -O2 -pipe -fno-strict-aliasing \ -o pam_google_authenticator_testing.o = pam_google_authenticator.c pam_google_authenticator.c: In function 'request_pass': pam_google_authenticator.c:776: warning: initialization discards = qualifiers from pointer target type cc -shared -g -o pam_google_authenticator_testing.so = pam_google_authenticator_testing.o base32.o hmac.o sha1.o -lpam cc --std=3Dgnu99 -Wall -O2 -g -fPIC -c -fvisibility=3Dhidden -O2 -pipe = -fno-strict-aliasing -o pam_google_authenticator_unittest.o = pam_google_authenticator_unittest.c cc -g -rdynamic -o pam_google_authenticator_unittest = pam_google_authenticator_unittest.o base32.o hmac.o sha1.o -lc=20 [root@sandbox]# ls -l /dev/null ls: /dev/null: No such file or directory [root@sandbox]# ps ps: /dev/null: No such file or directory [root@sandbox]# exit Script done on Fri Feb 10 09:44:27 2012=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202101520.q1AFK9M5062327>