[Fribidi-discuss] Building fribidi on OSF1 alpha: snprintf
Behdad Esfahbod
behdad at bamdad.org
Tue Jan 22 13:15:04 EST 2002
Hi Tzafrir,
Quoting man printf(3):
Linux libc4.[45] does not have a snprintf, but provides a
libbsd that contains an snprintf equivalent to sprintf,
i.e., one that ignores the size argument. Thus, the use
of snprintf with early libc4 leads to serious security
problems.
It should be the problem there too, try "LDFLAGS=-lbsd" ./configure".
I have no idea of what to do, maybe I can change it to sprintf.
behdad
On Tue, 22 Jan 2002, Tzafrir Cohen wrote:
> Hi
>
> I'm trying to build fribidi on the following platform:
>
> >uname -a
> OSF1 the.host.name V4.0 1229 alpha
> >gcc -v
> Reading specs from /usr/local/gcc-2.95.2/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
>
> After running './configure' everything is fine.
> After 'make':
>
> ...
>
> creating fribidi_benchmark
> gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c
> fribidi_create_char_types.c
> fribidi_create_char_types.c: In function `main':
> fribidi_create_char_types.c:235: warning: implicit declaration of function
> `snprintf'
> gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c packtab.c
> /bin/ksh ./libtool --mode=link gcc -g -O2 -Wall -o
> fribidi_create_char_types fribidi_create_char_types.o packtab.o
> gcc -g -O2 -Wall -o fribidi_create_char_types fribidi_create_char_types.o
> packtab.o
> /usr/bin/ld:
> Unresolved:
> snprintf
> collect2: ld returned 1 exit status
> *** Exit 1
> Stop.
>
>
>
--
Behdad
3 Bahman 1380, 2002 Jan 23
[Finger for Geek Code]
More information about the FriBidi
mailing list