[BRLTTY] Compiling a statically linked binary

S. Massy lists at wolfdream.ca
Thu Oct 23 20:53:36 EDT 2014


On Thu, Oct 23, 2014 at 11:26:22AM -0400, Dave Mielke wrote:
> [quoted lines by S. Massy on 2014/10/22 at 16:43 -0400]
> 
> >Is this still supported/tested? When I enable the
> >--enable-standalone-programs option, compilation aborts with complaints
> >that memcpy is being redefined. 
> 
> Please post a log of the build so that we can see the actual messages.
Please find config.log and make output attached.
Cheers,
S.M>
-- 
Sebastien Massy
Montreal, Canada
Website: http://www.wolfdream.ca
Twitter: http://www.twitter.com/SMassy1
LinkedIn: http://ca.linkedin.com/pub/sebastien-massy/47/5a5/81a
Google+: https://plus.google.com/113474861330993124986/posts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/gzip
Size: 16175 bytes
Desc: not available
URL: <http://mielke.cc/pipermail/brltty/attachments/20141023/c8e6f924/attachment.bin>
-------------- next part --------------
cd Programs && make all
make[1]: Entering directory '/tmp/brltty-5.1/Programs'
gcc -I. -I. -I./../Programs -I../Programs -I./.. -I..   -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DHAVE_CONFIG_H -g -O2 -std=gnu99 -Wall -fPIC -c ./options.c
In file included from ./options.c:19:0:
./../prologue.h:312:0: warning: "WCHAR_MAX" redefined
 #define WCHAR_MAX UINT8_MAX
 ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/stdint.h:9:0,
                 from /usr/include/inttypes.h:27,
                 from ./../prologue.h:234,
                 from ./options.c:19:
/usr/include/stdint.h:270:0: note: this is the location of the previous definition
 #  define WCHAR_MAX  __WCHAR_MAX
 ^
In file included from ./options.c:19:0:
./../prologue.h:403:0: warning: "mempcpy" redefined
 #define mempcpy(dest,src,size) (void *)((char *)memcpy((dest), (src), (size)) + (size))
 ^
In file included from /usr/include/string.h:635:0,
                 from ./../prologue.h:307,
                 from ./options.c:19:
/usr/include/x86_64-linux-gnu/bits/string2.h:222:0: note: this is the location of the previous definition
 #   define mempcpy(dest, src, n) __mempcpy (dest, src, n)
 ^
In file included from ./options.c:19:0:
./options.c: In function ?processConfigurationLine?:
./../prologue.h:387:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define WC_C(wc) (wchar_t)wc
                  ^
./options.c:825:12: note: in expansion of macro ?WC_C?
     {.name=WC_C("ifset"), .processor=processIfSetOperands},
            ^
./options.c:825:5: error: initializer element is not constant
     {.name=WC_C("ifset"), .processor=processIfSetOperands},
     ^
./options.c:825:5: error: (near initialization for ?directives[6].name?)
In file included from ./options.c:19:0:
./../prologue.h:387:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define WC_C(wc) (wchar_t)wc
                  ^
./options.c:826:12: note: in expansion of macro ?WC_C?
     {.name=WC_C("ifnotset"), .processor=processIfNotSetOperands},
            ^
./options.c:826:5: error: initializer element is not constant
     {.name=WC_C("ifnotset"), .processor=processIfNotSetOperands},
     ^
./options.c:826:5: error: (near initialization for ?directives[7].name?)
Makefile:85: recipe for target 'options.o' failed
make[1]: *** [options.o] Error 1
make[1]: Leaving directory '/tmp/brltty-5.1/Programs'
Makefile:48: recipe for target 'all' failed
make: *** [all] Error 2


More information about the BRLTTY mailing list