build pam_pkcs11 on solaris 10

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

build pam_pkcs11 on solaris 10

Nordell Jonas (4004)
Hi,

I am trying to compile pam_pkcs11 0.6.5 on a Solaris 10 X86 (gcc 4.5.1)
but card_eventmgr does not compile.

Error:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -fno-strict-aliasing -I/usr/sfw/include -I/usr/local/include -Wall -fno-strict-aliasing -I/usr/sfw/include -I/usr/include -I/usr/include/smartcard -I/usr/local/include -MT pam_pkcs11.lo -MD -MP -MF .deps/pam_pkcs11.Tpo -c pam_pkcs11.c -o pam_pkcs11.o >/dev/null 2>&1
mv -f .deps/pam_pkcs11.Tpo .deps/pam_pkcs11.Plo
/bin/bash ../../libtool --tag=CC   --mode=link gcc -Wall -fno-strict-aliasing -I/usr/sfw/include   -I/usr/include -I/usr/include/smartcard -I/usr/local/include -module -avoid-version -shared -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib -o pam_pkcs11.la -rpath /usr/local/lib/security pam_pkcs11.lo mapper_mgr.lo pam_config.lo ../mappers/libmappers.la -R/usr/sfw/lib -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl   -lpam  -lldap
libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,pam_pkcs11.so -o .libs/pam_pkcs11.so  .libs/pam_pkcs11.o .libs/mapper_mgr.o .libs/pam_config.o  -Wl,-z -Wl,allextract ../mappers/.libs/libmappers.a -Wl,-z -Wl,defaultextract  -R/usr/sfw/lib -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl -lpam -lldap -lc    -pthread
libtool: link: ( cd ".libs" && rm -f "pam_pkcs11.la" && ln -s "../pam_pkcs11.la" "pam_pkcs11.la" )
make[3]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/pam_pkcs11'
Making all in tools
make[3]: Entering directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/tools'
gcc -DHAVE_CONFIG_H -I. -I../.. -D_REENTRANT -I/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/usr/include/smartcard/PCSC   -I/usr/sfw/include    -I/usr/local/include  -I/usr/include -I/usr/include/smartcard -I/usr/local/include -MT card_eventmgr.o -MD -MP -MF .deps/card_eventmgr.Tpo -c -o card_eventmgr.o card_eventmgr.c
mv -f .deps/card_eventmgr.Tpo .deps/card_eventmgr.Po
/bin/bash ../../libtool --tag=CC   --mode=link gcc  -I/usr/include -I/usr/include/smartcard -I/usr/local/include -L/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/usr/lib -lpcsclite -lpthread   -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib -o card_eventmgr card_eventmgr.o ../scconf/libscconf.la ../common/libcommon.la -lpam  -lldap
libtool: link: gcc -I/usr/include -I/usr/include/smartcard -I/usr/local/include -o card_eventmgr card_eventmgr.o  -L/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/usr/lib -lpcsclite -lpthread -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib ../scconf/.libs/libscconf.a ../common/.libs/libcommon.a -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl -lpam -lldap -pthread
Undefined                       first referenced
 symbol                             in file
daemon                              card_eventmgr.o
ld: fatal: Symbol referencing errors. No output written to card_eventmgr
collect2: ld returned 1 exit status
make[3]: *** [card_eventmgr] Error 1
make[3]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/tools'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5'
make: *** [all] Error 2

Anyone know what this is?

BR
Jonas
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Ludovic Rousseau
2010/11/16 Nordell Jonas (4004) <[hidden email]>:
> Hi,

Hello,

> I am trying to compile pam_pkcs11 0.6.5 on a Solaris 10 X86 (gcc 4.5.1)
> but card_eventmgr does not compile.
>
> Error:
>
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -fno-strict-aliasing -I/usr/sfw/include -I/usr/local/include -Wall -fno-strict-aliasing -I/usr/sfw/include -I/usr/include -I/usr/include/smartcard -I/usr/local/include -MT pam_pkcs11.lo -MD -MP -MF .deps/pam_pkcs11.Tpo -c pam_pkcs11.c -o pam_pkcs11.o >/dev/null 2>&1
> mv -f .deps/pam_pkcs11.Tpo .deps/pam_pkcs11.Plo
> /bin/bash ../../libtool --tag=CC   --mode=link gcc -Wall -fno-strict-aliasing -I/usr/sfw/include   -I/usr/include -I/usr/include/smartcard -I/usr/local/include -module -avoid-version -shared -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib -o pam_pkcs11.la -rpath /usr/local/lib/security pam_pkcs11.lo mapper_mgr.lo pam_config.lo ../mappers/libmappers.la -R/usr/sfw/lib -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl   -lpam  -lldap
> libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,pam_pkcs11.so -o .libs/pam_pkcs11.so  .libs/pam_pkcs11.o .libs/mapper_mgr.o .libs/pam_config.o  -Wl,-z -Wl,allextract ../mappers/.libs/libmappers.a -Wl,-z -Wl,defaultextract  -R/usr/sfw/lib -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl -lpam -lldap -lc    -pthread
> libtool: link: ( cd ".libs" && rm -f "pam_pkcs11.la" && ln -s "../pam_pkcs11.la" "pam_pkcs11.la" )
> make[3]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/pam_pkcs11'
> Making all in tools
> make[3]: Entering directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/tools'
> gcc -DHAVE_CONFIG_H -I. -I../.. -D_REENTRANT -I/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/usr/include/smartcard/PCSC   -I/usr/sfw/include    -I/usr/local/include  -I/usr/include -I/usr/include/smartcard -I/usr/local/include -MT card_eventmgr.o -MD -MP -MF .deps/card_eventmgr.Tpo -c -o card_eventmgr.o card_eventmgr.c
> mv -f .deps/card_eventmgr.Tpo .deps/card_eventmgr.Po
> /bin/bash ../../libtool --tag=CC   --mode=link gcc  -I/usr/include -I/usr/include/smartcard -I/usr/local/include -L/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/usr/lib -lpcsclite -lpthread   -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib -o card_eventmgr card_eventmgr.o ../scconf/libscconf.la ../common/libcommon.la -lpam  -lldap
> libtool: link: gcc -I/usr/include -I/usr/include/smartcard -I/usr/local/include -o card_eventmgr card_eventmgr.o  -L/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/usr/lib -lpcsclite -lpthread -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib ../scconf/.libs/libscconf.a ../common/.libs/libcommon.a -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl -lpam -lldap -pthread
> Undefined                       first referenced
>  symbol                             in file
> daemon                              card_eventmgr.o
> ld: fatal: Symbol referencing errors. No output written to card_eventmgr
> collect2: ld returned 1 exit status
> make[3]: *** [card_eventmgr] Error 1
> make[3]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/tools'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5'
> make: *** [all] Error 2
>
> Anyone know what this is?

It looks like your Solaris does not provide the daemon(3) library
call. That is the first time I see this error.

Does "man daemon" returns something one your system?

Any other Solaris expert can help?

BYe

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Nordell Jonas (4004)
Hi,

Thanks for your reply.

No man daemon does not return anything.
" No manual entry for daemon."

/Jonas

-----Ursprungligt meddelande-----
Från: Ludovic Rousseau [mailto:[hidden email]]
Skickat: den 17 november 2010 10:26
Till: Nordell Jonas (4004)
Kopia: [hidden email]
Ämne: Re: [opensc-user] build pam_pkcs11 on solaris 10

2010/11/16 Nordell Jonas (4004) <[hidden email]>:
> Hi,

Hello,

> I am trying to compile pam_pkcs11 0.6.5 on a Solaris 10 X86 (gcc
> 4.5.1) but card_eventmgr does not compile.
>
> Error:
>
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -Wall
> -fno-strict-aliasing -I/usr/sfw/include -I/usr/local/include -Wall
> -fno-strict-aliasing -I/usr/sfw/include -I/usr/include
> -I/usr/include/smartcard -I/usr/local/include -MT pam_pkcs11.lo -MD
> -MP -MF .deps/pam_pkcs11.Tpo -c pam_pkcs11.c -o pam_pkcs11.o
> >/dev/null 2>&1 mv -f .deps/pam_pkcs11.Tpo .deps/pam_pkcs11.Plo
> /bin/bash ../../libtool --tag=CC   --mode=link gcc -Wall
> -fno-strict-aliasing -I/usr/sfw/include   -I/usr/include
> -I/usr/include/smartcard -I/usr/local/include -module -avoid-version
> -shared -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib -o
> pam_pkcs11.la -rpath /usr/local/lib/security pam_pkcs11.lo
> mapper_mgr.lo pam_config.lo ../mappers/libmappers.la -R/usr/sfw/lib
> -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl   -lpam  -lldap
> libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,pam_pkcs11.so -o
> .libs/pam_pkcs11.so  .libs/pam_pkcs11.o .libs/mapper_mgr.o
> .libs/pam_config.o  -Wl,-z -Wl,allextract
> ../mappers/.libs/libmappers.a -Wl,-z -Wl,defaultextract  
> -R/usr/sfw/lib -L/usr/lib -L/usr/lib/smartcard -L/usr/local/lib
> -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl -lpam -lldap -lc    
> -pthread
> libtool: link: ( cd ".libs" && rm -f "pam_pkcs11.la" && ln -s
> "../pam_pkcs11.la" "pam_pkcs11.la" )
> make[3]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/pam_pkcs11'
> Making all in tools
> make[3]: Entering directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/tools'
> gcc -DHAVE_CONFIG_H -I. -I../.. -D_REENTRANT
> -I/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/u
> sr/include/smartcard/PCSC   -I/usr/sfw/include    -I/usr/local/include  
> -I/usr/include -I/usr/include/smartcard -I/usr/local/include -MT
> card_eventmgr.o -MD -MP -MF .deps/card_eventmgr.Tpo -c -o
> card_eventmgr.o card_eventmgr.c mv -f .deps/card_eventmgr.Tpo
> .deps/card_eventmgr.Po /bin/bash ../../libtool --tag=CC   --mode=link
> gcc  -I/usr/include -I/usr/include/smartcard -I/usr/local/include
> -L/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/u
> sr/lib -lpcsclite -lpthread   -L/usr/lib -L/usr/lib/smartcard
> -L/usr/local/lib -o card_eventmgr card_eventmgr.o
> ../scconf/libscconf.la ../common/libcommon.la -lpam  -lldap
> libtool: link: gcc -I/usr/include -I/usr/include/smartcard
> -I/usr/local/include -o card_eventmgr card_eventmgr.o  
> -L/net/sunray-ps1/data/vol01/sunray/pcsclite/1.3/build/01/proto/i386/u
> sr/lib -lpcsclite -lpthread -L/usr/lib -L/usr/lib/smartcard
> -L/usr/local/lib ../scconf/.libs/libscconf.a
> ../common/.libs/libcommon.a -L/usr/sfw/lib -lssl -lcrypto -lsocket
> -lnsl -ldl -lpam -lldap -pthread Undefined                       first
> referenced
>  symbol                             in file daemon                              
> card_eventmgr.o
> ld: fatal: Symbol referencing errors. No output written to
> card_eventmgr
> collect2: ld returned 1 exit status
> make[3]: *** [card_eventmgr] Error 1
> make[3]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src/tools'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5'
> make: *** [all] Error 2
>
> Anyone know what this is?

It looks like your Solaris does not provide the daemon(3) library call. That is the first time I see this error.

Does "man daemon" returns something one your system?

Any other Solaris expert can help?

BYe

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Emanuele Pucciarelli-2
On Wed, Nov 17, 2010 at 10:44, Nordell Jonas (4004)
<[hidden email]> wrote:
> Hi,
>
> Thanks for your reply.
>
> No man daemon does not return anything.
> " No manual entry for daemon."

The daemon(3C) function was introduced after Solaris 10 shipped. A
discussion is here:

http://opensolaris.org/jive/thread.jspa?threadID=110570

I think we could/should ship a compatibility function for that, along
with its HAVE_DAEMON conditional. I can try and cook up a patch if
there is agreement. :)

Bye,

--
Emanuele
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Nordell Jonas (4004)
Hi,

I have been doing some digging today and came to the same conclusion. Maybe you could use some code from this site http://www.mercymachines.net/unix/faq_54.html ?

BR
Jonas

-----Ursprungligt meddelande-----
Från: [hidden email] [mailto:[hidden email]] För Emanuele Pucciarelli
Skickat: den 17 november 2010 13:53
Till: Nordell Jonas (4004)
Kopia: Ludovic Rousseau; [hidden email]
Ämne: Re: [opensc-user] build pam_pkcs11 on solaris 10

On Wed, Nov 17, 2010 at 10:44, Nordell Jonas (4004) <[hidden email]> wrote:
> Hi,
>
> Thanks for your reply.
>
> No man daemon does not return anything.
> " No manual entry for daemon."

The daemon(3C) function was introduced after Solaris 10 shipped. A discussion is here:

http://opensolaris.org/jive/thread.jspa?threadID=110570

I think we could/should ship a compatibility function for that, along with its HAVE_DAEMON conditional. I can try and cook up a patch if there is agreement. :)

Bye,

--
Emanuele
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Emanuele Pucciarelli-2
On Wed, Nov 17, 2010 at 14:00, Nordell Jonas (4004)
<[hidden email]> wrote:
> Hi,
>
> I have been doing some digging today and came to the same conclusion. Maybe you could use some code from this site http://www.mercymachines.net/unix/faq_54.html ?

Sure thing, or borrow some code from one of

http://www.google.com/codesearch?lr=&q=%22%23ifndef+HAVE_DAEMON%22

. I have to investigate whether the whole matter of Solaris process
contracts may bring any headache or not, but I think it shouldn't.

Thanks!

--
Emanuele
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Ludovic Rousseau
2010/11/17 Emanuele Pucciarelli <[hidden email]>:

> On Wed, Nov 17, 2010 at 14:00, Nordell Jonas (4004)
> <[hidden email]> wrote:
>> Hi,
>>
>> I have been doing some digging today and came to the same conclusion. Maybe you could use some code from this site http://www.mercymachines.net/unix/faq_54.html ?
>
> Sure thing, or borrow some code from one of
>
> http://www.google.com/codesearch?lr=&q=%22%23ifndef+HAVE_DAEMON%22
>
> . I have to investigate whether the whole matter of Solaris process
> contracts may bring any headache or not, but I think it shouldn't.

Fixed in revisions 472, 473 and 474 using deamon.c from OpenSSH.

Bye

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Nordell Jonas (4004)
In reply to this post by Emanuele Pucciarelli-2
>Fixed in revisions 472, 473 and 474 using deamon.c from OpenSSH.
>
>Bye
>
>--
> Dr. Ludovic Rousseau

I tried 474 but the bootstrap fails?

root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > ./bootstrap
+ test -f Makefile
+ rm -rf autom4te.cache aclocal.m4 config.guess config.log config.status config.sub depcomp ltmain.sh
+ aclocal -I aclocal
./bootstrap: aclocal: not found
root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > export PATH=$PATH:/opt/csw/bin
root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > ./bootstrap
+ test -f Makefile
+ rm -rf *.cache *.m4 config.guess config.log config.status config.sub depcomp ltmain.sh
+ aclocal -I aclocal
/opt/csw/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION
/opt/csw/share/aclocal/xmms.m4:17:   run info '(automake)Extending aclocal'
/opt/csw/share/aclocal/xmms.m4:17:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
+ libtoolize --force --copy
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in `aclocal'.
libtoolize: copying file `aclocal/libtool.m4'
libtoolize: copying file `aclocal/ltoptions.m4'
libtoolize: copying file `aclocal/ltsugar.m4'
libtoolize: copying file `aclocal/ltversion.m4'
libtoolize: copying file `aclocal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
+ autoheader
+ automake --add-missing --foreign
configure.in:9: installing `./config.guess'
configure.in:9: installing `./config.sub'
src/common/Makefile.am: installing `./depcomp'
+ autoconf
configure.in:34: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > autoconf -V
autoconf (GNU Autoconf) 2.67

But it will create a configure script but that fails with the following error msg

checking for dlopen in -ldl... yes
checking for ldap_init in -lldap... yes
checking for ldap_init... yes
checking for ldap_initialize... no
checking for ldap_set_option... yes
checking for ldap_get_option... yes
checking for ldap_start_tls... no
checking for ldap_start_tls_s... no
./configure: line 17682: PKG_PROG_PKG_CONFIG: command not found
./configure: line 17693: syntax error near unexpected token `NSS,'
./configure: line 17693: `  PKG_CHECK_MODULES(NSS, nss, with_nss=yes,'

BR
Jonas
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Ludovic Rousseau
2010/11/18 Nordell Jonas (4004) <[hidden email]>:

>>Fixed in revisions 472, 473 and 474 using deamon.c from OpenSSH.
>>
>>Bye
>>
>>--
>> Dr. Ludovic Rousseau
>
> I tried 474 but the bootstrap fails?
>
> root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > ./bootstrap
> + test -f Makefile
> + rm -rf autom4te.cache aclocal.m4 config.guess config.log config.status config.sub depcomp ltmain.sh
> + aclocal -I aclocal
> ./bootstrap: aclocal: not found
> root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > export PATH=$PATH:/opt/csw/bin
> root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > ./bootstrap
> + test -f Makefile
> + rm -rf *.cache *.m4 config.guess config.log config.status config.sub depcomp ltmain.sh
> + aclocal -I aclocal
> /opt/csw/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION
> /opt/csw/share/aclocal/xmms.m4:17:   run info '(automake)Extending aclocal'
> /opt/csw/share/aclocal/xmms.m4:17:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
> + libtoolize --force --copy
> libtoolize: putting auxiliary files in `.'.
> libtoolize: copying file `./ltmain.sh'
> libtoolize: putting macros in `aclocal'.
> libtoolize: copying file `aclocal/libtool.m4'
> libtoolize: copying file `aclocal/ltoptions.m4'
> libtoolize: copying file `aclocal/ltsugar.m4'
> libtoolize: copying file `aclocal/ltversion.m4'
> libtoolize: copying file `aclocal/lt~obsolete.m4'
> libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
> libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
> + autoheader
> + automake --add-missing --foreign
> configure.in:9: installing `./config.guess'
> configure.in:9: installing `./config.sub'
> src/common/Makefile.am: installing `./depcomp'
> + autoconf
> configure.in:34: error: possibly undefined macro: AC_MSG_ERROR
>      If this token and others are legitimate, please use m4_pattern_allow.
>      See the Autoconf documentation.
>
> root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > autoconf -V
> autoconf (GNU Autoconf) 2.67
>
> But it will create a configure script but that fails with the following error msg
>
> checking for dlopen in -ldl... yes
> checking for ldap_init in -lldap... yes
> checking for ldap_init... yes
> checking for ldap_initialize... no
> checking for ldap_set_option... yes
> checking for ldap_get_option... yes
> checking for ldap_start_tls... no
> checking for ldap_start_tls_s... no
> ./configure: line 17682: PKG_PROG_PKG_CONFIG: command not found
> ./configure: line 17693: syntax error near unexpected token `NSS,'
> ./configure: line 17693: `  PKG_CHECK_MODULES(NSS, nss, with_nss=yes,'

Install pkg-config
You need the /usr/share/aclocal/pkg.m4 file

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: build pam_pkcs11 on solaris 10

Nordell Jonas (4004)
Hi,

My pkg-config was to old (0.15.0). works with 0.23

/Jonas

-----Ursprungligt meddelande-----
Från: Ludovic Rousseau [mailto:[hidden email]]
Skickat: den 18 november 2010 13:25
Till: Nordell Jonas (4004)
Kopia: [hidden email]
Ämne: Re: [opensc-user] build pam_pkcs11 on solaris 10

2010/11/18 Nordell Jonas (4004) <[hidden email]>:

>>Fixed in revisions 472, 473 and 474 using deamon.c from OpenSSH.
>>
>>Bye
>>
>>--
>> Dr. Ludovic Rousseau
>
> I tried 474 but the bootstrap fails?
>
> root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new >
> ./bootstrap
> + test -f Makefile
> + rm -rf autom4te.cache aclocal.m4 config.guess config.log
> + config.status config.sub depcomp ltmain.sh aclocal -I aclocal
> ./bootstrap: aclocal: not found
> root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > export
> PATH=$PATH:/opt/csw/bin
> root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new >
> ./bootstrap
> + test -f Makefile
> + rm -rf *.cache *.m4 config.guess config.log config.status config.sub
> + depcomp ltmain.sh aclocal -I aclocal
> /opt/csw/share/aclocal/xmms.m4:17: warning: underquoted definition of
> XMMS_TEST_VERSION
> /opt/csw/share/aclocal/xmms.m4:17:   run info '(automake)Extending aclocal'
> /opt/csw/share/aclocal/xmms.m4:17:   or see
> http://sources.redhat.com/automake/automake.html#Extending-aclocal
> + libtoolize --force --copy
> libtoolize: putting auxiliary files in `.'.
> libtoolize: copying file `./ltmain.sh'
> libtoolize: putting macros in `aclocal'.
> libtoolize: copying file `aclocal/libtool.m4'
> libtoolize: copying file `aclocal/ltoptions.m4'
> libtoolize: copying file `aclocal/ltsugar.m4'
> libtoolize: copying file `aclocal/ltversion.m4'
> libtoolize: copying file `aclocal/lt~obsolete.m4'
> libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to
> configure.in and
> libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
> + autoheader
> + automake --add-missing --foreign
> configure.in:9: installing `./config.guess'
> configure.in:9: installing `./config.sub'
> src/common/Makefile.am: installing `./depcomp'
> + autoconf
> configure.in:34: error: possibly undefined macro: AC_MSG_ERROR
>      If this token and others are legitimate, please use m4_pattern_allow.
>      See the Autoconf documentation.
>
> root@sadbunixhost1:/var/tmp/pam_pkcs11/pam_pkcs11-0.6.5_new > autoconf
> -V autoconf (GNU Autoconf) 2.67
>
> But it will create a configure script but that fails with the
> following error msg
>
> checking for dlopen in -ldl... yes
> checking for ldap_init in -lldap... yes checking for ldap_init... yes
> checking for ldap_initialize... no checking for ldap_set_option... yes
> checking for ldap_get_option... yes checking for ldap_start_tls... no
> checking for ldap_start_tls_s... no
> ./configure: line 17682: PKG_PROG_PKG_CONFIG: command not found
> ./configure: line 17693: syntax error near unexpected token `NSS,'
> ./configure: line 17693: `  PKG_CHECK_MODULES(NSS, nss, with_nss=yes,'

Install pkg-config
You need the /usr/share/aclocal/pkg.m4 file

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user