[rhn-users] Compil on PowerPC64 (power5) with RHEL V4 in 64bit

CTL ctl at apibio.com
Wed Mar 30 14:10:56 UTC 2005


Hello,

I'v got a problem when I want to compil on my PowerPC 5 (64bit) with
RHEL V4 : 

# more test.c
#include <stdio.h>
void main(){
        printf("Hello world\n");
}


# gcc -o titi test.c
test.c: In function `main':
test.c:2: warning: return type of 'main' is not `int'

Ok

# gcc -mpowerpc64 -o titi1 test.c
test.c: In function `main':
test.c:2: warning: return type of 'main' is not `int'

Ok

# gcc -mpowerpc64 -m32 -o titi2 test.c
test.c: In function `main':
test.c:2: warning: return type of 'main' is not `int'

Ok

# gcc -mpowerpc64 -m64 -o titi3 test.c
test.c: In function `main':
test.c:2: warning: return type of 'main' is not `int'
/lib64/libc.so.6: undefined reference to
`_dl_lookup_versioned_symbol_skip at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_lookup_versioned_symbol at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_start_profile at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_check_map_versions at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_get_origin at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_dst_substitute at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_init at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_dst_count at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_signal_error at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_debug_printf at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_map_object_deps at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_unload_cache at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_relocate_object at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_tls_symaddr at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_catch_error at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_lookup_symbol_skip at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_lookup_symbol at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_map_object at GLIBC_PRIVATE'
collect2: ld returned 1 exit status

KO


# gcc -m64 -o titi4 test.c
test.c: In function `main':
test.c:2: warning: return type of 'main' is not `int'
/lib64/libc.so.6: undefined reference to
`_dl_lookup_versioned_symbol_skip at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_lookup_versioned_symbol at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_start_profile at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_check_map_versions at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_get_origin at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_dst_substitute at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_init at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_dst_count at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_signal_error at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_debug_printf at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_map_object_deps at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_unload_cache at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_relocate_object at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_tls_symaddr at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_catch_error at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_lookup_symbol_skip at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to
`_dl_lookup_symbol at GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_dl_map_object at GLIBC_PRIVATE'
collect2: ld returned 1 exit status

KO

Can you help me?





More information about the rhn-users mailing list