From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64048 invoked by alias); 12 Feb 2019 14:23:22 -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 64034 invoked by uid 89); 12 Feb 2019 14:23:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=BAYES_00,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, sir X-HELO: out30-28.freemail.mail.aliyun.com Received: from out30-28.freemail.mail.aliyun.com (HELO out30-28.freemail.mail.aliyun.com) (115.124.30.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Feb 2019 14:23:19 +0000 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=aliyun.com; s=s1024; t=1549981396; h=To:From:Subject:Message-ID:Date:MIME-Version:Content-Type; bh=BbdovQAt6bwUW+gDZdYlb1teKK7q0olFZSLNKYFZGLg=; b=MdZDWNZ0jcRcBcgUofAlE29MczrRi54istWp4XY8O/k0+sA1+H4cfsH1URIKUalNvwsQcmg4IZZm8GA199g39AgfkksN6TvW9xrNGpG/9zvXHWCO12JS1RYsa5XWYAIeXc8wsxss6EMoy9gcW1sSf2T7+XdCyYfhcXgGl6dsZAI= X-Alimail-AntiSpam:AC=CONTINUE;BC=0.063578|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01e01451;MF=yuxiao100@aliyun.com;NM=1;PH=DS;RN=1;RT=1;SR=0;TI=SMTPD_---0TJx2m.._1549981394; Received: from 192.168.1.108(mailfrom:yuxiao100@aliyun.com fp:SMTPD_---0TJx2m.._1549981394) by smtp.aliyun-inc.com(127.0.0.1); Tue, 12 Feb 2019 22:23:14 +0800 To: gdb@sourceware.org From: yuxiao Subject: gdb 8.2 static link version Message-ID: <8a8b2294-af04-48e8-f8a3-e0e3a6b89515@aliyun.com> Date: Tue, 12 Feb 2019 14:23:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2019-02/txt/msg00012.txt.bz2 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