ports/164959: pam_google_authenticator install deletes /dev/null
Vick Khera
vivek at khera.org
Fri Feb 10 15:20:09 UTC 2012
The following reply was made to PR ports/164959; it has been noted by GNATS.
From: Vick Khera <vivek at khera.org>
To: bug-followup at 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 at sandbox]# ls -l /dev/null
crw-rw-rw- 1 root wheel 0, 8 Feb 10 09:44 /dev/null
[root at sandbox]# pwd
/usr/ports/security/pam_google_authenticator
[root at 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 at sandbox]# ls -l /dev/null
ls: /dev/null: No such file or directory
[root at sandbox]# ps
ps: /dev/null: No such file or directory
[root at sandbox]# exit
Script done on Fri Feb 10 09:44:27 2012=
More information about the freebsd-ports-bugs
mailing list