LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 07-11-2013, 12:32 PM   #1
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Rep: Reputation: 0
Red face AIX for Linux gdb source failing on make


I'm in the gdb directory, and I've executed configure successfully. I am now running make, but experiencing an error in it, below. Make exits. Thanks for your help.

...
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I. -I./../include -DHAVE_rs6000coff_vec -DHAVE_aix5coff64_vec -I./../intl -DBINDIR='"/usr/local/bin"' -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfd.lo -MD -MP -MF .deps/bfd.Tpo -c -o bfd.lo bfd.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I. -I./../include -DHAVE_rs6000coff_vec -DHAVE_aix5coff64_vec -I./../intl -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfd.lo -MD -MP -MF .deps/bfd.Tpo -c bfd.c -o bfd.o
bfd.c: In function '_bfd_default_error_handler':
bfd.c:730:3: error: value computed is not used [-Werror=unused-value]
cc1: all warnings being treated as errors
 
Old 07-11-2013, 01:11 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,202

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by MarkBurke View Post
I'm in the gdb directory, and I've executed configure successfully. I am now running make, but experiencing an error in it, below. Make exits. Thanks for your help.

...
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I. -I./../include -DHAVE_rs6000coff_vec -DHAVE_aix5coff64_vec -I./../intl -DBINDIR='"/usr/local/bin"' -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfd.lo -MD -MP -MF .deps/bfd.Tpo -c -o bfd.lo bfd.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I. -I./../include -DHAVE_rs6000coff_vec -DHAVE_aix5coff64_vec -I./../intl -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfd.lo -MD -MP -MF .deps/bfd.Tpo -c bfd.c -o bfd.o
bfd.c: In function '_bfd_default_error_handler':
bfd.c:730:3: error: value computed is not used [-Werror=unused-value]
cc1: all warnings being treated as errors
Instead of installing Linux source on AIX, why not install the AIX GDB package?
http://www-03.ibm.com/systems/power/...ezinstall.html
 
Old 07-11-2013, 01:22 PM   #3
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Original Poster
Rep: Reputation: 0
Unhappy same link as open source

Quote:
Originally Posted by TB0ne View Post
Instead of installing Linux source on AIX, why not install the AIX GDB package?
http://www-03.ibm.com/systems/power/...ezinstall.html
Thank you for helping. I would like to recompile (not the package in binaries). Just I am researching how to compile from source, because I have a need for it on the job. GDB is arbitrary, but is bringing an error that is common to all my compiling of open source. I am trying to learn.

When I go to the link above, I see the list of programs. I would like to click on AIX source link for GDB. However when I do, it transports me to ftp://ftp.gnu.org/gnu/gdb. This is the same as open source.
 
Old 07-11-2013, 01:44 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,202

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by MarkBurke View Post
Thank you for helping. I would like to recompile (not the package in binaries). Just I am researching how to compile from source, because I have a need for it on the job. GDB is arbitrary, but is bringing an error that is common to all my compiling of open source. I am trying to learn.

When I go to the link above, I see the list of programs. I would like to click on AIX source link for GDB. However when I do, it transports me to ftp://ftp.gnu.org/gnu/gdb. This is the same as open source.
Right...however, the package is for AIX. WHY do you need to compile from source? What would that provide, that the package would not?

What version of the source are you installing? And are you using the GCC compiler, versus the AIX C compiler??
 
1 members found this post helpful.
Old 07-11-2013, 02:12 PM   #5
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Original Poster
Rep: Reputation: 0
I'm just compiling from source as an exercise for my job. I have to do numerous packages for DB2 and WAS, and I'm trying to get situated with examining errors from source compile. Not all of the package RPMs will run, I will have to compile from source at some point.

The version of source GNU dbg is 7.6 (gdb-7.6.tar.gz). I am using the gcc compiler, it is version 4.6.1
 
Old 07-11-2013, 02:32 PM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,202

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by MarkBurke View Post
I'm just compiling from source as an exercise for my job. I have to do numerous packages for DB2 and WAS, and I'm trying to get situated with examining errors from source compile. Not all of the package RPMs will run, I will have to compile from source at some point.

The version of source GNU dbg is 7.6 (gdb-7.6.tar.gz). I am using the gcc compiler, it is version 4.6.1
That's the latest version. Are you running the "./configure" with any options? What hardware are you compiling for, and what version of AIX?
 
Old 07-11-2013, 03:08 PM   #7
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Original Poster
Rep: Reputation: 0
No options to configure, currently

The Hardware is a P550. Target: powerpc-ibm-aix7.1.0.0.
# oslevel -s
7100-00-01-1037
 
Old 07-11-2013, 04:34 PM   #8
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,599

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Remove every -Werror from bfd/Makefile. This option can be useful for the developers, but meaningless for the end-users.
 
1 members found this post helpful.
Old 07-12-2013, 03:10 AM   #9
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,599

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
you could also try to change line 730 in bfd.c:
Code:
old:  putc ('\n', stderr);
new: (void)putc ('\n', stderr);
 
Old 07-12-2013, 12:46 PM   #10
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Original Poster
Rep: Reputation: 0
Removing -Werror from the Makefile worked! Thank you so much.

Now I have a different challenge that I am learning to handle.
-------
# make
....success
# make install
....done
# gdb
exec(): 0509-036 Cannot load program powerpc64-ibm-aix6.1.2.0-gdb because of the following errors:
0509-130 Symbol resolution failed for powerpc64-ibm-aix6.1.2.0-gdb because:
0509-136 Symbol XML_StopParser (number 258) is not exported from
dependent module /opt/freeware/lib/libexpat.a[libexpat.so.0].
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
# dump -Tv /opt/freeware/lib/libexpat.a | grep XML_StopParser
[32] 0x20004430 .data EXP DS SECdef [noIMid] XML_StopParser

So the export is there, but the error message show that it thinks the export is not loaded. Thanks for taking a look at this...
 
Old 07-12-2013, 01:30 PM   #11
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,599

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
I might be able to look at it on Monday; you could also try to investigate, eg:

Code:
which gdb
ls -l $(which gdb)
file $(which gdb)
dump -H $(which gdb)
dump -Tv $(which gdb) | grep XML_StopParser
 
Old 07-15-2013, 02:58 AM   #12
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,599

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Code:
$ dump -Tv /usr/local/bin/gdb | grep XML_StopParser
[281]   0x00000000    undef      IMP     DS EXTref /usr/local/lib/libexpat.so.1 XML_StopParser

$ dump -Tv /usr/local/lib/libexpat.so.1 | grep XML_StopParser
[75]    0x20004538    .data      EXP     DS   Ldef        [noIMid] XML_StopParser
 
Old 07-24-2013, 04:00 PM   #13
Michael AM
Member
 
Registered: May 2006
Distribution: AIX 5.3, AIX 6.1, AIX 7.1
Posts: 95

Rep: Reputation: 23
I have a package posted on SourceForge I named "buildaix". It is still "beta" in that there are many things that need to be added, but the idea is that you install it (it is packaged as an installp package) and it's required tool bos.adt.insttools (for the AIX mkinstallp command).

What it does for you - calls ./configure with arguments I have found to work well with many GNU based opensource packages; calls make; make install (to /var/tmp/root/project-1.2.3.4) and makes an installp package from that.

Why installp? Because I know the command very very well (for installs) and was having issues with .spec files and other RPM requirements. Take a peek and decide which direction you wish to go. "make install" and/or tarball installations are not going to support good system administration/management.

I would also recommend installing the coreutils package for the "install" command. "GNU project" DESTDIR=/some/where/else make install will frequently fail when using POSIX or BSD install available on AIX (snif).

Since you are compiling packages - I will not bother saying where I have one (old by now I expect) pre-built for AIX 5.3 and later.

Good Luck
 
  


Reply

Tags
aix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Server Compilation failing on AIX 5.3 aixuser AIX 2 03-10-2009 11:07 AM
Apache Server Compilation failing on AIX 5.3 aixuser Linux - Server 2 03-10-2009 01:44 AM
Gdb error on Aix 4.3.3 ayeletr AIX 3 04-05-2004 10:57 PM


All times are GMT -5. The time now is 10:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration