Hello,

Why testing various build options of orangefs-2.8.5 I found that
orangefs fails to build when configured with --enable-static-server.
I use Gentoo with vanilla kernel 3.0.17 and glibc-2.13

It fails as follows:

gcc src/server/pvfs2-server-server.o src/server/pvfs2-server-req-server.o 
lib/libpvfs2-server.a -o src/server/pvfs2-server 
-L/home/andrew/src/orangefs-2.8.5/lib -static -lpvfs2-server  -lcrypto -lssl 
-ldb -lpthread  -lrt
src/server/pvfs2-server-server.o: In function `PINT_server_access_debug':
/home/andrew/src/orangefs-2.8.5/src/server/pvfs2-server.c:2301: warning: Using 
'getgrgid' in statically linked applications requires at runtime the shared 
libraries from the glibc version used for linking
lib/libpvfs2-server.a(pint-util-server.o): In function `PINT_check_group':
/home/andrew/src/orangefs-2.8.5/src/common/misc/pint-util.c:890: warning: Using 
'getgrgid_r' in statically linked applications requires at runtime the shared 
libraries from the glibc version used for linking
src/server/pvfs2-server-server.o: In function `PINT_server_access_debug':
/home/andrew/src/orangefs-2.8.5/src/server/pvfs2-server.c:2300: warning: Using 
'getpwuid' in statically linked applications requires at runtime the shared 
libraries from the glibc version used for linking
lib/libpvfs2-server.a(pint-util-server.o): In function `PINT_check_group':
/home/andrew/src/orangefs-2.8.5/src/common/misc/pint-util.c:872: warning: Using 
'getpwuid_r' in statically linked applications requires at runtime the shared 
libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libdb.a(os_addrinfo.o):
 In function `__os_getaddrinfo':
(.text+0x2d): warning: Using 'getaddrinfo' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
lib/libpvfs2-server.a(bmi-tcp-server.o): In function 
`BMI_tcp_addr_rev_lookup_unexpected':
/home/andrew/src/orangefs-2.8.5/src/io/bmi/bmi_tcp/bmi-tcp.c:1842: warning: 
Using 'gethostbyaddr' in statically linked applications requires at runtime the 
shared libraries from the glibc version used for linking
lib/libpvfs2-server.a(sockio-server.o): In function `BMI_sockio_init_sock':
/home/andrew/src/orangefs-2.8.5/src/io/bmi/bmi_tcp/sockio.c:140: warning: Using 
'gethostbyname' in statically linked applications requires at runtime the 
shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/librt.a(aio_misc.o): 
In function `handle_fildes_io':
(.text+0x165): undefined reference to `pthread_getschedparam'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/librt.a(aio_misc.o): 
In function `handle_fildes_io':
(.text+0x1ae): undefined reference to `pthread_setschedparam'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/librt.a(aio_misc.o): 
In function `__aio_enqueue_request':
(.text+0x8ee): undefined reference to `pthread_getschedparam'
collect2: ld returned 1 exit status
make: *** [src/server/pvfs2-server] Error 1

Problem is in -pthread -lrt sequence. rt may use pthread, thus pthread
should be added later. Proposed patch fixes this.

Best regards,
Andrew Savchenko

Attachment: orangefs-2.8.5-static-server.patch
Description: Binary data

Attachment: pgpubgr0Ui0aU.pgp
Description: PGP signature

_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to