assert() in SANE

From: Henning Meier-Geinitz (
Date: Mon Jun 04 2001 - 13:25:31 PDT

  • Next message: Tim Waugh: "zoom out bug"


    the problems with shared libraries under AIX/gcc turned out to be a
    problem with assert() which is only available for static binaries.

    Please use the wrapper header lassert.h which uses it's own
    implementation of assert() in case of AIX/gcc and just includes
    <assert.h> otherwise.

    So please change

    #include <assert.h>
    #include "../include/lassert.h"

    in your code.

    I have done this for sanei/sanei_scsi.c but there are some backends
    with assert() that I didn't touch.

    The only backend library that doesn't load currenly on AIX because of
    this problem is libsane-hp.


    Source code, list archive, and docs:
    To unsubscribe: echo unsubscribe sane-devel | mail

    This archive was generated by hypermail 2b29 : Mon Jun 04 2001 - 13:32:57 PDT