#4651: gcc-10.1.0
--------------------+-----------------------
 Reporter:  renodr  |       Owner:  lfs-book
     Type:  task    |      Status:  new
 Priority:  normal  |   Milestone:  9.2
Component:  Book    |     Version:  SVN
 Severity:  normal  |  Resolution:
 Keywords:          |
--------------------+-----------------------

Comment (by thomas):

 Replying to [comment:1 thomas]:
 >  gdbm::
 >   it came up with
 > {{{
 > /usr/bin/ld: ./libgdbmapp.a(parseopt.o):(.bss+0x8): multiple definition
 of `parseopt_program_args'; gdbm_load.o:(.data+0x140): first defined here
 > }}}
 >
 >   had to add
 > {{{
 > CFLAGS="$CFLAGS -fcommon" \
 > ./configure ...
 > }}}
 >   while in cross-chap5 it was not neccessary

 renodr mentioned that For gdbm, the preferred solution upstream is to
 remove the following lines from src/parseopt.c

 -char *parseopt_program_doc;

 -char *parseopt_program_args;

 They should be around line 255

 For that, a sed will do the job:
 {{{
     sed -e "/^char \*parseopt_program_doc;/d" \
         -e "/^char \*parseopt_program_args;/d" \
         -i src/parseopt.c
 }}}

--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/4651#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to