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
--
Signatur vor?bergehend deaktiviert.
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 -- Signatur vor?bergehend deaktiviert.
Citeren Alexander Skwar <listen@alexander.skwar.name>:> Schelstraete Bart wrote: > > > Try using the HP ANSI-C compiler. > > I need to buy a license to use the HP ANSI-C compiler, don't I? If not - > where can I download it so that I can install it (it's currently not > installed). >No, that's not for free. I'm sorry. Pls try another version of the GNU CC compiler, that can me a difference. Especially when you're using HP-UX 11.11 - 64 bit (11i)> PS: Please do NOT CC me on replies. Thanks.Sorry for that. Bart
Try using the HP ANSI-C compiler.
That one works for me.
Bart
Citeren Alexander Skwar <listen@alexander.skwar.name>:
> 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 - hared
> 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
> --
> Signatur vor?bergehend deaktiviert.
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
Schelstraete Bart
bart@schelstraete.org - http://www.schelstraete.org
http://langmixer.mozdev.org
Alexander, You are correct, you need to buy a license for the HP ANSI C compiler. However, I believe you can also use the GNU C compiler to get Samba to compile correctly on HPUX. Cheers! ============== Date: Mon, 07 Jul 2003 13:56:21 +0200 From: Alexander Skwar <listen@alexander.skwar.name> Subject: Re: [Samba] Error compiling 3.0.0beta2 on HP-UX Cc: Samba Mailingliste <samba@samba.org> Message-ID: <3F095FE5.9050703@alexander.skwar.name> Content-Type: text/plain; charset=ISO-8859-1 Schelstraete Bart wrote:> Try using the HP ANSI-C compiler.I need to buy a license to use the HP ANSI-C compiler, don't I? If not - where can I download it so that I can install it (it's currently not installed). Thanks, PS: Please do NOT CC me on replies. Thanks. Alexander Skwar -- Signatur vor?bergehend deaktiviert.
Seemingly Similar Threads
- Trying to change password: "RAP86: The specified password is invalid."
- Filesystem "somewhat" destroyed - need help for recovery/fixing
- setup.exe from "Marco Polo Großer Reiseplaner 2005/2006" stops
- GPOs don't work after update from Samba4.0 alpha 17 to 4.0.1
- Doing ZFS rollback with preserving later created clones/snapshot?