AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
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??
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
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?
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.