[csw-users] gsasl blastwave package (problems when running tests)

Mick Weiss mweiss at building-b.com
Wed Mar 5 01:02:51 CET 2008


I'm trying to get gsasl working on Solaris / SPARC. So far it has been a 
pain getting the other prerequisites working ;-)

My current stumbling block:

`gmake` fails on:

 gcc -DHAVE_CONFIG_H -I. -I.. -I../intl 
-I/opt/blastwave/staging/opt/csw/include -I/opt/csw/include 
-I/usr/include/kerberosv5 -I/opt/blastwave/staging/opt/csw/include 
-I/opt/csw/include -MT vasprintf.lo -MD -MP -MF .deps/vasprintf.Tpo -c 
vasprintf.c -o vasprintf.o >/dev/null 2>&1
mv -f .deps/vasprintf.Tpo .deps/vasprintf.Plo
/bin/bash ../libtool --tag=CC   --mode=link gcc  
-I/opt/blastwave/staging/opt/csw/include -I/opt/csw/include    
-L/opt/blastwave/staging/opt/csw/lib -L/opt/csw/lib -o libgl.la  
base64.lo asnprintf.lo asprintf.lo gc-gnulib.lo getdelim.lo getline.lo 
hmac-md5.lo md5.lo memxor.lo printf-args.lo printf-parse.lo strdup.lo 
strverscmp.lo vasnprintf.lo vasprintf.lo /bin/krb5-config: Unknown 
option `gssapi' -- use `--help' for usage
/bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of file
gmake[4]: *** [libgl.la] Error 2
gmake[4]: Leaving directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24/gl'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24/gl'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24'
gmake: *** [build-work/root-xmpp-test.d/libgsasl-0.2.24/Makefile] Error 2


This is because the Makefile has a generated line that fails:

LIBS =  /bin/krb5-config: Unknown option `gssapi' -- use `--help' for usage
^^^ this gets added to all of the Makefiles. So I take it out manually.

After going in *all Makefiles* and taking out the last part of that 
line... it compiles and `gmake` works.

Now for `gmake package`....

gmake  test-parser
gmake[3]: Entering directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24/digest-md5'
gcc -DHAVE_CONFIG_H -I. -I..  -I./../src -I../src -I./../gl -I../gl 
-I/opt/blastwave/staging/opt/csw/include -I/opt/csw/include 
-I/usr/include/kerberosv5  -I/opt/blastwave/staging/opt/csw/include 
-I/opt/csw/include  -MT test-parser.o -MD -MP -MF .deps/test-parser.Tpo 
-c -o test-parser.o test-parser.c
mv -f .deps/test-parser.Tpo .deps/test-parser.Po
/bin/bash ../libtool --tag=CC   --mode=link gcc  
-I/opt/blastwave/staging/opt/csw/include -I/opt/csw/include   
-L/opt/blastwave/staging/opt/csw/lib -L/opt/csw/lib -o test-parser 
test-parser.o libgsasl-digest_md5.la ../gl/libgl.la
gcc -I/opt/blastwave/staging/opt/csw/include -I/opt/csw/include -o 
test-parser test-parser.o  -L/opt/blastwave/staging/opt/csw/lib 
-L/opt/csw/lib ./.libs/libgsasl-digest_md5.a ../gl/.libs/libgl.a
gmake[3]: Leaving directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24/digest-md5'
gmake  check-TESTS
gmake[3]: Entering directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24/digest-md5'
challenge `nonce=4711, foo=bar, algorithm=md5-sess': nonce `4711': PASS
/bin/bash: line 4: 12376 Abort                   (core dumped) ${dir}$tst
FAIL: test-parser
==================================
1 of 1 tests failed
Please report to bug-gsasl at gnu.org
==================================
gmake[3]: *** [check-TESTS] Error 1
gmake[3]: Leaving directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24/digest-md5'
gmake[2]: *** [check-am] Error 2
gmake[2]: Leaving directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24/digest-md5'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory 
`/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24'
gmake: *** [test-work/root-xmpp-test.d/libgsasl-0.2.24/Makefile] Error 2

Ok... so I see that test-parser is the culprit -- since I have debugging 
enabled... I fire up my trusty gdb :)

bash-3.00# cd 
/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/libgsasl-0.2.24/digest-md5
bash-3.00# ./test-parser
challenge `nonce=4711, foo=bar, algorithm=md5-sess': nonce `4711': PASS
Abort (core dumped)
bash-3.00# gdb -q ./test-parser 
/var/core/core_xmpp-test_test-parser_0_0_1204672254_12400
(no debugging symbols found)
Reading symbols from /lib/libc.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.1
Reading symbols from /platform/sun4v/lib/libc_psr.so.1...(no debugging 
symbols found)...done.
Loaded symbols for /platform/SUNW,Sun-Blade-T6300/lib/libc_psr.so.1
Reading symbols from /lib/ld.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/ld.so.1
Core was generated by `./test-parser'.
Program terminated with signal 6, Aborted.
#0  0xff34596c in _lwp_kill () from /lib/libc.so.1
(gdb)

This is the bit of code that fails:

int
main (int argc, char *argv[])
{
  digest_md5_challenge c;
  digest_md5_response r;
  digest_md5_finish f;
  char buf32[33];
  char buf16[16];
  int rc;
  char *tmp;

  {
    char *token = "nonce=4711, foo=bar, algorithm=md5-sess";

    printf ("challenge `%s': ", token);
    rc = digest_md5_parse_challenge (token, 0, &c);
    if (rc != 0)
      abort ();
    printf ("nonce `%s': %s", c.nonce,
            strcmp ("4711", c.nonce) == 0 ? "PASS" : "FAILURE");
    printf ("\n");
    tmp = digest_md5_print_challenge (&c);
    if (!tmp)
      abort ();
    printf ("printed `%s' PASS\n", tmp);
    free (tmp);
  }

  {
    char *token = "qop=\"auth, auth-conf\", nonce=42, algorithm=md5-sess";

    printf ("challenge `%s': ", token);
    rc = digest_md5_parse_challenge (token, 0, &c);
    if (rc == 0)
      abort ();
    printf ("PASS\n");
  }
....

So for whatever reason digest_md5_print_challenge isn't working. Would 
this have something todo with the original error?

Ok, so I'm fed up with the tests... I uncomment all of them and return 0 
to see what would happen. ****I know this isn't a real solution**** I 
just wanted to get something up, even if it will not be stable.

All seems to be good, but I do see this:

  ==> fixconfig: /opt/blastwave/staging/opt/csw/lib
/opt/blastwave/staging/opt/csw/lib/libgsasl.la
  ==> fixconfig: /opt/blastwave/staging/opt/csw/bin
        [strip] complete for libgsasl.
        [install] complete for libgsasl.
 ==> Processing CSWlibgsasl.gspec
mkp: processing file://work/root-xmpp-test.d/CSWlibgsasl.gspec
mkp: set ENV{bitname} = 'libgsasl'
mkp: set ENV{pkgname} = 'CSWlibgsasl'
mkp: include file://%{PKGLIB}/csw_dyndepend.gspec
mkp: replacing %{PKGLIB} with '/opt/src/csw/lib/libgsasl/../../pkglib'
mkp: include file://%{PKGLIB}/csw_vars.gspec
mkp: replacing %{PKGLIB} with '/opt/src/csw/lib/libgsasl/../../pkglib'
mkp: replacing %{GARCH} with 'sparc'
mkp: set ENV{arch} = 'sparc'
mkp: replacing %{SPKG_DESC} with 'GNU SASL Library'
mkp: set ENV{desc} = 'GNU SASL Library'
mkp: replacing %{bitname} with 'libgsasl'
mkp: replacing %{SPKG_VERSION} with '0.2.24'
mkp: replacing %{SPKG_REVSTAMP} with ',REV=2008.03.04'
mkp: replacing %{SPKG_OSNAME} with 'SunOS5.10'
mkp: replacing %{arch} with 'sparc'
mkp: set ENV{pkgfile} = 
'libgsasl-0.2.24,REV=2008.03.04-SunOS5.10-sparc-CSW.pkg'
mkp: replacing %{bitname} with 'libgsasl'
mkp: set ENV{RC_INIT_SCRIPT} = 'cswlibgsasl'
mkp: replacing %{bitname} with 'libgsasl'
mkp: set ENV{SMF_SCRIPT} = 'svc-cswlibgsasl'
mkp: replacing %{bitname} with 'libgsasl'
mkp: set ENV{SMF_MANIFEST} = 'cswlibgsasl.xml'
mkp: include file://%{PKGLIB}/csw_prototype.gspec
mkp: replacing %{PKGLIB} with '/opt/src/csw/lib/libgsasl/../../pkglib'
mkp: include file://%{PKGLIB}/std_depend.gspec
mkp: replacing %{PKGLIB} with '/opt/src/csw/lib/libgsasl/../../pkglib'
mkp: Processing prototype
mkp: Generating CSWlibgsasl.prototype
mkp: replacing %{TIMESTAMP} with 'cookies/root-xmpp-test.d/timestamp'
mkp: replacing %{DESTDIR} with '/opt/blastwave/staging'
mkp: replacing %{DESTDIR} with '/opt/blastwave/staging'
mkp: replacing %{prefix} with '/opt/csw'
mkp: exec( cswproto -s cookies/root-xmpp-test.d/timestamp -r 
/opt/blastwave/staging /opt/blastwave/staging/opt/csw )
mkp: Removing duplicate lines from CSWlibgsasl.prototype
mkp: Writing CSWlibgsasl.prototype
mkp: Processing copyright
mkp: Generating CSWlibgsasl.copyright
mkp: replacing %{WORKSRC} with 'work/root-xmpp-test.d/libgsasl-0.2.24'
mkp: Writing CSWlibgsasl.copyright
mkp: Processing depend
mkp: WARNING: Using existing CSWlibgsasl.depend
mkp: WARNING: Modifying depend CSWlibgsasl.depend
mkp: Merging depend content with CSWlibgsasl.depend
mkp: replacing %{PKGLIB} with '/opt/src/csw/lib/libgsasl/../../pkglib'
mkp: Removing duplicate lines from CSWlibgsasl.depend
mkp: Writing CSWlibgsasl.depend
mkp: Processing pkginfo
mkp: Generating CSWlibgsasl.pkginfo
mkp: replacing %{PKGLIB} with '/opt/src/csw/lib/libgsasl/../../pkglib'
mkp: replacing %{pkgname} with 'CSWlibgsasl'
mkp: replacing %{bitname} with 'libgsasl'
mkp: replacing %{desc} with 'GNU SASL Library'
mkp: replacing %{arch} with 'sparc'
mkp: replacing %{SPKG_VERSION} with '0.2.24'
mkp: replacing %{SPKG_REVSTAMP} with ',REV=2008.03.04'
mkp: replacing %{SPKG_CATEGORY} with 'application'
mkp: replacing %{SPKG_VENDOR} with 'ftp://alpha.gnu.org/pub/gnu/gsasl/ 
packaged for CSW by Mick Weiss '
mkp: replacing %{SPKG_EMAIL} with 'mweiss at building-b.com '
mkp: replacing %{SPKG_PSTAMP} with 'root at xmpp-test-20080304232848'
mkp: replacing %{SPKG_CLASSES} with 'none'
mkp: Removing duplicate lines from CSWlibgsasl.pkginfo
mkp: Writing CSWlibgsasl.pkginfo
mkp: Writing admin entries to CSWlibgsasl.prototype
mkp: exec( pkgmk -d /opt/blastwave/spool/spool.5.10-sparc -r 
/opt/blastwave/staging -b 
/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d -f 
/opt/src/csw/lib/libgsasl/work/root-xmpp-test.d/CSWlibgsasl.prototype  )
## Building pkgmap from package prototype file.
## Processing pkginfo file.
WARNING: missing directory entry for </opt>
WARNING: missing directory entry for </opt/csw>
## Attempting to volumize 44 entries in pkgmap.
part  1 -- 1476 blocks, 240 entries
## Packaging one part.
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/pkgmap
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/pkginfo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/include/gsasl-compat.h
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/include/gsasl-mech.h
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/include/gsasl.h
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/lib/libgsasl.a
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/lib/libgsasl.la
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/lib/libgsasl.so.7.4.4
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/lib/pkgconfig/libgsasl.pc
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/en at boldquot/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/en at quot/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/fr/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/ga/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/nl/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/pl/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/ro/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/sr/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/sv/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/root/opt/csw/share/locale/vi/LC_MESSAGES/libgsasl.mo
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/install/copyright
/opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl/install/depend
## Validating control scripts.
## Packaging complete.
mkp: exec( pkgtrans -s /opt/blastwave/spool/spool.5.10-sparc 
/tmp/libgsasl-0.2.24,REV=2008.03.04-SunOS5.10-sparc-CSW.pkg CSWlibgsasl )
Transferring <CSWlibgsasl> package instance
mkp: exec( gzip -9 -f 
/tmp/libgsasl-0.2.24,REV=2008.03.04-SunOS5.10-sparc-CSW.pkg )
mkp: exec( mv 
/tmp/libgsasl-0.2.24,REV=2008.03.04-SunOS5.10-sparc-CSW.pkg.gz 
/opt/blastwave/pkgs )
mkp: exec( rm -r /opt/blastwave/spool/spool.5.10-sparc/CSWlibgsasl )
 ==> Checking blastwave compilance: CSWlibgsasl
Examining 
/opt/blastwave/pkgs/libgsasl-0.2.24,REV=2008.03.04-SunOS5.10-sparc-CSW.pkg.gz
Looking for bad strings...
Extracting files for more detailed inspection...
CSWlibgsasl/pkginfo
7 blocks
Info for pkg CSWlibgsasl
software= 'libgsasl'
arch= 'sparc'
desc='GNU SASL Library'
pkgname='CSWlibgsasl'
version='0.2.24,REV=2008.03.04'
maintainer name='Mick Weiss'
maint email='mweiss at building-b.com'
hotline='http://www.blastwave.org/bugtrack/'

Extracing pkg for examination of files...
cpio: Impossible header type.
1 errors
.......

:-/ Not sure what goofed there. I attached some files, hope that this 
will help.

If anyone has a chance and knows wth is going on, you may save what 
little sanity I have left. Any help would be appreciated.

Thanks :)

- Mick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CSWlibgsasl.pkginfo
URL: <http://lists.opencsw.org/pipermail/users/attachments/20080304/f4ec5841/attachment-0004.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gar.conf.mk
URL: <http://lists.opencsw.org/pipermail/users/attachments/20080304/f4ec5841/attachment-0005.ksh>


More information about the users mailing list