Sponsored Content
Special Forums UNIX and Linux Applications Cannot compile/install gnu program Post 302801017 by MichaelFelt on Wednesday 1st of May 2013 05:21:09 AM
Old 05-01-2013
the program "collect2" is giving the error. Where did this program come from? Maybe the problem is a packaging error of "build2".

And it is saying it cannot open it AS COFF. I read this to mean the file is not in the expected COFF format.

It nearly feels like a RPM packaging that is not checking for ostype and the non-AIX binaries/libraries are installed.

How sure are you that everything you have installed is AIX 7.1 ready?
 

10 More Discussions You Might Find Interesting

1. Programming

how to compile a program

how do i go about compiling a simple hello world script in mandrake linux? this is something i have had no luck in finding on the main site, please help? thank you (2 Replies)
Discussion started by: CmpKillr
2 Replies

2. Programming

How to compile a c program by using gcc

Hi all, Yeasterday I try to compile c program by using cygwin. I just find an errors the fist one is concerinig about the end of the line. To summit my Assignment which is the day after tommorow I have to compile my c program by using just gcc. If any one know what do I have to... (5 Replies)
Discussion started by: Bell
5 Replies

3. Programming

how to compile a program statically

how can i do static compilation in cc and -lldap i have system defined and user defined header file. Can any one suggest any site where from i can get some information about static and dynamic compilation. Thankx (1 Reply)
Discussion started by: bhakti
1 Replies

4. Programming

GNU GDB compile problem

I have to compile gnu-gdb 6.7 on HP-UX 11.11 with /usr/local/pa64/bin/gcc 64-bit compiler, but I'm having some problems during "make": ser-tcp.c: In function `net_open': ser-tcp.c:207: warning: passing arg 5 of `getsockopt' from incompatible pointer type make: *** Error 1 make: Leaving... (8 Replies)
Discussion started by: untamed
8 Replies

5. BSD

How to compile a c program in freeBSD

Hi , I have freeBSD installed. I need to compile a c program which has embedded informix sql statement in it. Can you please help me to to do the same. I need to know what I should I do to make BSD compatable to compile the c program ? Thanks in advance Jisha (3 Replies)
Discussion started by: jisha
3 Replies

6. Programming

compile a c program

I am trying to compile a c program on AIX 5.3L 64-bit unix. I have used this program in the past and it works. Does anybody know what this error means? /usr/local/bin> gcc get_epoch_secs.c get_epoch_secs gcc: get_epoch_secs: No such file or directory get_epoch_secs.c: In function... (8 Replies)
Discussion started by: djehresmann
8 Replies

7. SuSE

Can't compile or install GCC

Hi all! I have posted in the Shell Programming Scripting Forum for a problem with the use of shc and so on... You can read it complete here: shell-programming-scripting/148510-problems-using-shc.html I think the problem is: that there aren't compiler installed on the SuSe 10.2 server,... (4 Replies)
Discussion started by: Magius
4 Replies

8. UNIX for Advanced & Expert Users

compile a c program in a encrypted way

Hi Guys, I wonder I had have a look to the cc compile options but I could be missing one but basically I'm compliling a c program where I will storing a command to connect to a database and also userid and password. The issue is that after the module is generated using a command like strings I... (14 Replies)
Discussion started by: arizah
14 Replies

9. Programming

Not able to compile C program on z/OS (USS)

Hi, I having an issue while compiling a C program in USS (z/OS) machine. I was able to create objest files (.o) from source (.c) files but when I try to create a binary file from the object files I am getting the below error. $ cc util.o sock.o app.o -lnsl -o ptf FSUM3067 The archive... (7 Replies)
Discussion started by: madhu84
7 Replies

10. AIX

Cannot compile/install gnu program on AIX

Hello, I'm trying to install ansifilter which is a program that translates ansi text to HTML. The idea is to install it on AIX 7.1 but is failing. All de appropriate gcc libraries and requirements for this software were installed successfully, but when I do the gmake I get the following... (0 Replies)
Discussion started by: bazajav
0 Replies
elf_update(3E)															    elf_update(3E)

NAME
elf_update - update an ELF descriptor SYNOPSIS
[flag... ] file... [library] ... DESCRIPTION
causes the library to examine the information associated with an ELF descriptor, elf, and to recalculate the structural data needed to gen- erate the file's image. cmd may have the following values. This value tells to recalculate various values, updating only the ELF descriptor's memory structures. Any modified structures are flagged with the bit. A program thus can update the structural information and then reexamine them without changing the file associated with the ELF descriptor. Because this does not change the file, the ELF descriptor may allow reading, writ- ing, or both reading and writing (see elf_begin(3E)). If cmd has this value, duplicates its actions and also writes any ``dirty'' information associated with the ELF descriptor to the file. That is, when a program has used or the facilities to supply new (or update existing) information for an ELF descriptor, those data will be examined, coordinated, translated if necessary (see elf_xlate(3E)), and written to the file. When portions of the file are written, any bits are reset, indicating those items no longer need to be written to the file (see elf_flag(3E)). The sections' data is written in the order of their section header entries, and the section header table is written to the end of the file. When the ELF descriptor was created with it must have allowed writing the file. That is, the command must have been either or If succeeds, it returns the total size of the file image (not the memory image), in bytes. Otherwise an error occurred, and the function returns -1. When updating the internal structures, sets some members itself. Members listed below are the application's responsibility and retain the values given by the program. Member Notes ----------------------------------------------- e_ident[EI_DATA] Library controls other e_ident values e_type e_machine e_version ELF Header e_entry e_phoff Only when ELF_F_LAYOUT asserted e_shoff Only when ELF_F_LAYOUT asserted e_flags e_shstrndx ----------------------------------------------- Member Notes ----------------------------------------------------------- p_type The application controls all p_offset program header entries p_vaddr p_paddr Program Header p_filesz p_memsz p_flags p_align ----------------------------------------------------------- Member Notes -------------------------------------------------- sh_name sh_type sh_flags sh_addr sh_offset Only when ELF_F_LAYOUT asserted Section Header sh_size Only when ELF_F_LAYOUT asserted sh_link sh_info sh_addralign Only when ELF_F_LAYOUT asserted sh_entsize -------------------------------------------------- Member Notes ------------------------------------------------- d_buf d_type d_size Data Descriptor d_off Only when ELF_F_LAYOUT asserted d_align d_version ------------------------------------------------- Note the program is responsible for two particularly important members (among others) in the ELF header. The member controls the version of data structures written to the file. If the version is the library uses its own internal version. The entry controls the data encoding used in the file. As a special case, the value may be to request the native data encoding for the host machine. An error occurs in this case if the native encoding doesn't match a file encoding known by the library. Further note that the program is responsible for the section header member. Although the library sets it for sections with known types, it cannot reliably know the correct value for all sections. Consequently, the library relies on the program to provide the values for unknown section type. If the entry size is unknown or not applicable, the value should be set to zero. When deciding how to build the output file, obeys the alignments of individual data buffers to create output sections. A section's most strictly aligned data buffer controls the section's alignment. The library also inserts padding between buffers, as necessary, to ensure the proper alignment of each buffer. Note As mentioned above, the commands translate data as necessary, before writing them to the file. This translation is not always transparent to the application program. If a program has obtained pointers to data associated with a file (for example, see elf_getehdr(3E) and elf_getdata(3E)), the program should reestablish the pointers after calling As elf_begin(3E) describes, a program may ``update'' a COFF file to make the image consistent for ELF. (COFF is an object file format that preceded ELF on some computer architectures (Intel, for example). When a program calls elf_begin on a COFF file, the library translates COFF structures to their ELF equivalents, allowing programs to read (but not to write) a COFF file as if it were ELF. This conversion hap- pens only to the memory image and not to the file itself.) The command updates only the memory image; one can use the command to modify the file as well. Absolute executable files files) require special alignment, which cannot normally be preserved between COFF and ELF. Consequently, one may not update an executable COFF file with the command (though is allowed). SEE ALSO
elf(3E), elf_begin(3E), elf_flag(3E), elf_fsize(3E), elf_getdata(3E), elf_getehdr(3E), elf_getshdr(3E), elf_xlate(3E). elf_update(3E)
All times are GMT -4. The time now is 04:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy