You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Locke <lo...@gmail.com> on 2006/10/24 13:41:22 UTC

Compiling APR1.2.7 failed on SUSE10 32bit

Hi there,

I am trying to build APR1.2.7 on SUSE10.  But failed with the error messages:
Any comments/suggestions are highly appreciated !


make[1]: Entering directory `/mnt/hgfs/src/32/apr-1.2.7'
/bin/sh /mnt/hgfs/src/32/apr-1.2.7/libtool --silent --mode=compile gcc
-g -O2 -pthread   -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE   -I./include
-I/mnt/hgfs/src/32/apr-1.2.7/include/arch/unix -I./include/arch/unix
-I/mnt/hgfs/src/32/apr-1.2.7/include  -o passwd/apr_getpass.lo -c
passwd/apr_getpass.c && touch passwd/apr_getpass.lo
passwd/apr_getpass.c:78: error: static declaration of 'getpass'
follows non-static declaration
/usr/include/unistd.h:912: error: previous declaration of 'getpass' was here
passwd/apr_getpass.c: In function 'getpass':
passwd/apr_getpass.c:81: error: 'stderr' undeclared (first use in this function)
passwd/apr_getpass.c:81: error: (Each undeclared identifier is
reported only once
passwd/apr_getpass.c:81: error: for each function it appears in.)
passwd/apr_getpass.c:82: error: 'stdin' undeclared (first use in this function)
make[1]: *** [passwd/apr_getpass.lo] Error 1
make[1]: Leaving directory `/mnt/hgfs/src/32/apr-1.2.7'
make: *** [all-recursive] Error 1


Thanks,
-Kelvin

Re: Compiling APR1.2.7 failed on SUSE10 32bit

Posted by Henri Gomez <he...@gmail.com>.
Strange it works well on Suse SLES 9 (both PPC and Intel version).

May I suggest you take a look at Suse source rpm ?

ie :

http://rpmfind.net//linux/RPM/opensuse/OSS-factory/i586/libapr1-devel-1.2.7-13.i586.html


2006/10/24, Locke <lo...@gmail.com>:
> Hi there,
>
> I am trying to build APR1.2.7 on SUSE10.  But failed with the error messages:
> Any comments/suggestions are highly appreciated !
>
>
> make[1]: Entering directory `/mnt/hgfs/src/32/apr-1.2.7'
> /bin/sh /mnt/hgfs/src/32/apr-1.2.7/libtool --silent --mode=compile gcc
> -g -O2 -pthread   -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE   -I./include
> -I/mnt/hgfs/src/32/apr-1.2.7/include/arch/unix -I./include/arch/unix
> -I/mnt/hgfs/src/32/apr-1.2.7/include  -o passwd/apr_getpass.lo -c
> passwd/apr_getpass.c && touch passwd/apr_getpass.lo
> passwd/apr_getpass.c:78: error: static declaration of 'getpass'
> follows non-static declaration
> /usr/include/unistd.h:912: error: previous declaration of 'getpass' was here
> passwd/apr_getpass.c: In function 'getpass':
> passwd/apr_getpass.c:81: error: 'stderr' undeclared (first use in this function)
> passwd/apr_getpass.c:81: error: (Each undeclared identifier is
> reported only once
> passwd/apr_getpass.c:81: error: for each function it appears in.)
> passwd/apr_getpass.c:82: error: 'stdin' undeclared (first use in this function)
> make[1]: *** [passwd/apr_getpass.lo] Error 1
> make[1]: Leaving directory `/mnt/hgfs/src/32/apr-1.2.7'
> make: *** [all-recursive] Error 1
>
>
> Thanks,
> -Kelvin
>

Re: Compiling APR1.2.7 failed on SUSE10 32bit

Posted by Joe Orton <jo...@redhat.com>.
On Tue, Oct 24, 2006 at 07:41:22PM +0800, Locke wrote:
> I am trying to build APR1.2.7 on SUSE10.  But failed with the error 
> messages:
> Any comments/suggestions are highly appreciated !

Can you upload somewhere the config.log produced and also a capture of 
the output of the configure command?  (or file a bug and attach them)

joe

> make[1]: Entering directory `/mnt/hgfs/src/32/apr-1.2.7'
> /bin/sh /mnt/hgfs/src/32/apr-1.2.7/libtool --silent --mode=compile gcc
> -g -O2 -pthread   -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE   -I./include
> -I/mnt/hgfs/src/32/apr-1.2.7/include/arch/unix -I./include/arch/unix
> -I/mnt/hgfs/src/32/apr-1.2.7/include  -o passwd/apr_getpass.lo -c
> passwd/apr_getpass.c && touch passwd/apr_getpass.lo
> passwd/apr_getpass.c:78: error: static declaration of 'getpass'
> follows non-static declaration
> /usr/include/unistd.h:912: error: previous declaration of 'getpass' was here