From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80425 invoked by alias); 12 Feb 2019 14:27:30 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 80411 invoked by uid 89); 12 Feb 2019 14:27:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=BAYES_50,DEAR_SOMETHING,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=no version=3.3.2 spammy=H*F:D*aliyun.com, HTo:U*gdb, globo, tempnam X-HELO: out30-50.freemail.mail.aliyun.com Received: from out30-50.freemail.mail.aliyun.com (HELO out30-50.freemail.mail.aliyun.com) (115.124.30.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Feb 2019 14:27:28 +0000 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=aliyun.com; s=s1024; t=1549981641; h=Subject:From:To:Message-ID:Date:MIME-Version:Content-Type; bh=8/A8adeSc0fgOI/HePh6PoYmE+zulZQne3ILTCOuOp4=; b=uka206RrDynWSI+veYfmSutbpyfXG6RMUWhutEMxMt84u5gpj41qBQja9IUDVLV9YCcXQ/YpBxeBUdOE2hcaGRmLXr7oYmTqaAla+NafjShZAw3A1lFfFqveUFKntjPzNYputfER4RPSx6cbR66gf3LNwE2WWbBqA3UX/nQi1UY= X-Alimail-AntiSpam:AC=CONTINUE;BC=0.063578|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01f04446;MF=yuxiao100@aliyun.com;NM=1;PH=DS;RN=1;RT=1;SR=0;TI=SMTPD_---0TJwfuK-_1549981641; Received: from 192.168.1.108(mailfrom:yuxiao100@aliyun.com fp:SMTPD_---0TJwfuK-_1549981641) by smtp.aliyun-inc.com(127.0.0.1); Tue, 12 Feb 2019 22:27:21 +0800 Subject: Re: gdb 8.2 static link version From: yuxiao To: gdb@sourceware.org References: <8a8b2294-af04-48e8-f8a3-e0e3a6b89515@aliyun.com> Message-ID: <8b219881-08e3-f86f-56ff-1516f2d9e91f@aliyun.com> Date: Tue, 12 Feb 2019 14:27:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <8a8b2294-af04-48e8-f8a3-e0e3a6b89515@aliyun.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2019-02/txt/msg00013.txt.bz2 Dear sir: I found it has created gdb despite the warnings. thanks Yu On 2019/2/12 下午10:23, yuxiao wrote: > Dear sir: > > i tried to build gdb in ubuntu 18.04 static version with below warning > message for X86_64. I need to put them in my android phone. > > I added all so lib with related .a file. I got some warning message as > below and no gdb file create. > > how could I solve those warning to produce a gdb exec file ? or there > are better ways to make static linked version ? > > thanks a lot > > Yu > > gdb-dlfcn.o: In function `gdb_dlopen(char const*)': > /home/yuxiao/work/gdb/binutils-gdb/gdb/gdb-dlfcn.c:65: warning: Using > 'dlopen' in statically linked applications requires at runtime the > shared libraries from the glibc version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(posixmodule.o): > In function `posix_tmpnam': > (.text.unlikely+0xff8): warning: the use of `tmpnam_r' is dangerous, > better use `mkstemp' > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(posixmodule.o): > In function `posix_tempnam': > (.text.unlikely+0xf02): warning: the use of `tempnam' is dangerous, > better use `mkstemp' > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(posixmodule.o): > In function `posix_initgroups': > (.text.unlikely+0x1a75): warning: Using 'initgroups' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(grpmodule.o): > In function `grp_getgrall': > (.text+0xca): warning: Using 'getgrent' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > nat/linux-osdata.o: In function `group_from_gid(char*, int, unsigned > int) [clone .constprop.46]': > /home/yuxiao/work/gdb/binutils-gdb/gdb/nat/linux-osdata.c:926: > warning: Using 'getgrgid' in statically linked applications requires > at runtime the shared libraries from the glibc version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(grpmodule.o): > In function `grp_getgrnam': > (.text+0x1e2): warning: Using 'getgrnam' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(grpmodule.o): > In function `grp_getgrall': > (.text+0x9a): warning: Using 'setgrent' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(grpmodule.o): > In function `grp_getgrall.cold.0': > (.text.unlikely+0x24): warning: Using 'endgrent' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > ../readline/libreadline.a(complete.o): In function > `rl_username_completion_function': > complete.c:(.text+0x3171): warning: Using 'getpwent' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > ../readline/libreadline.a(tilde.o): In function `tilde_expand_word': > tilde.c:(.text+0x69e): warning: Using 'getpwnam' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > nat/linux-osdata.o: In function `user_from_uid(char*, int, unsigned > int) [clone .constprop.47]': > /home/yuxiao/work/gdb/binutils-gdb/gdb/nat/linux-osdata.c:208: > warning: Using 'getpwuid' in statically linked applications requires > at runtime the shared libraries from the glibc version used for linking > ../readline/libreadline.a(complete.o): In function > `rl_username_completion_function': > complete.c:(.text+0x3112): warning: Using 'setpwent' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > complete.c:(.text+0x3195): warning: Using 'endpwent' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > build-gnulib/import/libgnu.a(glob.o): In function `rpl_glob': > /home/yuxiao/work/gdb/binutils-gdb/gdb/build-gnulib/import/../.././gnulib/import/glob.c:960: > warning: Using 'getpwnam_r' in statically linked applications requires > at runtime the shared libraries from the glibc version used for linking > ser-tcp.o: In function `net_open(serial*, char const*)': > /home/yuxiao/work/gdb/binutils-gdb/gdb/ser-tcp.c:296: warning: Using > 'getaddrinfo' in statically linked applications requires at runtime > the shared libraries from the glibc version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(spwdmodule.o): > In function `spwd_getspall': > (.text.unlikely+0x175): warning: Using 'getspent' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(spwdmodule.o): > In function `spwd_getspnam': > (.text.unlikely+0x219): warning: Using 'getspnam' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(spwdmodule.o): > In function `spwd_getspall': > (.text.unlikely+0x170): warning: Using 'setspent' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > (.text.unlikely+0x1c6): warning: Using 'endspent' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(socketmodule.o): > In function `socket_gethostbyaddr': > (.text+0x2c38): warning: Using 'gethostbyaddr_r' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(socketmodule.o): > In function `socket_gethostbyname_ex': > (.text.unlikely+0x246c): warning: Using 'gethostbyname_r' in > statically linked applications requires at runtime the shared > libraries from the glibc version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(socketmodule.o): > In function `socket_getprotobyname': > (.text.unlikely+0x24de): warning: Using 'getprotobyname' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(socketmodule.o): > In function `socket_getservbyname': > (.text.unlikely+0x15a9): warning: Using 'getservbyname' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpython2.7.a(socketmodule.o): > In function `socket_getservbyport': > (.text.unlikely+0x165a): warning: Using 'getservbyport' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking >