Error compiling 3.0.0beta2 on HP-UX - SMB

This is a discussion on Error compiling 3.0.0beta2 on HP-UX - SMB ; Hello! I'm trying to compile 3.0.0beta2 on a HP-UX 11.00 machine with gcc v3.2. After running configure --prefix=/some/where, I ran make which exited with this error message: Compiling lib/snprintf.c lib/snprintf.c:832: conflicting types for `snprintf' /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/stdio.h:493: previous declaration of `snprintf' *** ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Error compiling 3.0.0beta2 on HP-UX

  1. Error compiling 3.0.0beta2 on HP-UX

    Hello!

    I'm trying to compile 3.0.0beta2 on a HP-UX 11.00 machine with gcc v3.2.
    After running configure --prefix=/some/where, I ran make which exited with
    this error message:

    Compiling lib/snprintf.c
    lib/snprintf.c:832: conflicting types for `snprintf'
    /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/stdio.h:493: previous declaration of `snprintf'
    *** Error exit code 1

    Line 832 of lib/snprintf.c contains:

    #if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
    int snprintf(char *str,size_t count,const char *fmt,...)
    {
    size_t ret;
    va_list ap;

    va_start(ap, fmt);
    ret = vsnprintf(str, count, fmt, ap);
    va_end(ap);
    return ret;
    }
    #endif

    Hmm, what to do?

    Thanks a lot for any help,

    Alexander Skwar
    --
    /* Host controller interrupts must not be running while calling this
    * function or the penguins will get angry. */
    2.2.16 /usr/src/linux/drivers/usb/ohci.c

  2. Re: Error compiling 3.0.0beta2 on HP-UX

    On Mon, 7 Jul 2003 12:50:01 +0200, Alexander Skwar wrote:

    > Hmm, what to do?


    The usual thing: Search google before asking, dumbass! If you'd have done
    so, you'd have found http://kuerzer.de/kmMHeuGue which is a thread on the
    samba-technical mailing list from 2003-03-19 by Eric Ladner. In the thread
    it says to comment out the offending block in Samba's lib/snprintf.c. After
    setting "#if 0" .. "#endif" around the block, you'd be able to compile
    samba.

    HTH myself,

    Alexander Skwar
    --
    #define BB_STAT2_TMP_INTR 0x10 /* My Penguins are burning.
    Are you able to smell it? */
    2.2.16 /usr/src/linux/include/asm-sparc/obio.h

  3. Re: Error compiling 3.0.0beta2 on HP-UX

    On Mon, 7 Jul 2003 13:08:46 +0200, Alexander Skwar wrote:

    > HTH myself,


    So far, so good. Now I'm getting another error:

    Compiling ubiqx/ubi_sLinkList.c with
    Linking libsmbclient non-shared library bin/libsmbclient.a
    Make: Cannot load -rc. Stop.
    *** Error exit code 1 (ignored)
    Compiling modules/vfs_recycle.c with
    Building plugin bin/recycle.sl
    /usr/ccs/bin/ld: DP relative code in file modules/vfs_recycle.po - shared library must be position
    independent. Use +z or +Z to recompile.
    collect2: ld returned 1 exit status
    *** Error exit code 1

    Stop.

    Seems like this error is new - I can't find anything with Google.

    What's this error message supposed to tell me?
    Anyhow, if I understood things correctly, this VFS module should provide me
    with a network recycle bin, correct? If so, then I don't need it - how to
    disable compilation of the recycle module?

    Thanks,

    Alexander Skwar
    --
    /* ****. The f-word is here so you can grep for it :-) */
    2.4.3 linux/include/asm-mips/mmu_context.h

  4. Re: Error compiling 3.0.0beta2 on HP-UX

    On Mon, 7 Jul 2003 13:35:57 +0200, Alexander Skwar wrote:

    > with a network recycle bin, correct? If so, then I don't need it - how to
    > disable compilation of the recycle module?


    Hmm, is it okay when I change line 3029 of configure:

    default_shared_modules="vfs_recycle vfs_audit vfs_extd_audit vfs_netatalk vfs_fake_perms"

    There, I'd like to remove vfs_recycle from the list.

    Can I do so, or will this cause me unforseen problems?

    Thanks,

    Alexander Skwar
    --
    printk(KERN_WARNING "Multi-volume CD somehow got mounted.\n");
    2.2.16 /usr/src/linux/fs/isofs/inode.c

+ Reply to Thread