[ https://issues.apache.org/jira/browse/SERF-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sahlberg closed SERF-124. -------------------------------- Resolution: Won't Fix I can't find a concrete EOL statement on 1.2 but the last release was 10 years ago and 1.3 has switched to scons so I don't think this bug is relevant anymore. > [1.2.x] [PATCH] CFLAGS not being used in linking > ------------------------------------------------ > > Key: SERF-124 > URL: https://issues.apache.org/jira/browse/SERF-124 > Project: serf > Issue Type: Bug > Reporter: Serf Importer > Priority: Major > Labels: Priority-Medium, Type-Defect > > In compiling a 64-bit build of Serf 1.2.1 on Solaris 10 on AMD64, this > happens: > /tmp/subversion-apr-build/_install/build-1/libtool --silent --tag=CC > --mode=link cc -L/nfs/freeport/arch/sunos_x86_64/lib > -R/nfs/freeport/arch/sunos_x86_64/lib -static -o test/serf_get libserf-1.la > test/serf_get.lo -lm > /tmp/subversion-apr-util-build/_install/lib/libaprutil-1.la -lexpat > -L/nfs/freeport/arch/sunos_x86_64/lib -lssl -lcrypto > /tmp/subversion-apr-build/_install/lib/libapr-1.la -luuid -lsendfile -lrt > -lsocket -lnsl -lpthread -lm -lz -lssl -lcrypto > ld: fatal: file test/serf_get.o: wrong ELF class: ELFCLASS64 > ld: fatal: File processing errors. No output written to test/serf_get > gmake: *** [test/serf_get] Error 1 > This occurs because the link is missing some all-important flags in CFLAGS > which specify 64-bit mode. Whenever the linker is invoked, it must be passed > not just LDFLAGS, but also CFLAGS. > The attached patch against SVN branch "1.2.x" fixes this issue. > Original issue reported by *iskunk* -- This message was sent by Atlassian Jira (v8.20.10#820010)