From: Ben B. <tek...@ya...> - 2017-07-12 20:32:15
|
On 07/12/2017 12:38 PM, Ben Brink via naviserver-devel wrote: > Hi, > > I'm trying to build nsmap on FreeBSD 10.3-STABLE. > > Hint says to 'recompile with -fPIC'. Error is same with and without hint. This hint has more meaning in development context: https://forums.freebsd.org/threads/55008/ PR = problem report (I had to look it up in context of that thread). > > Any suggestions? > Thanks in advance, > Ben > > > build with hint '-fPIC': > > # gmake -fMakefile IMAPFLAGS=-I../../panda-imap/c-client/ > "IMAPLIBS=../../panda-imap/c-client/c-client.a -L/usr/local/nsx/lib > -lpam -lgssapi_krb5 -lkrb5" > clang -I../../panda-imap/c-client/ -g -O2 -DNDEBUG -Wall -fPIC -pipe > -I/usr/local/ns/include -I"/usr/local/ns/include" -DHAVE_CONFIG_H -c > -o nsimap.o nsimap.c > nsimap.c:190:60: warning: '/*' within block comment [-Wcomment] > * oss2:nscp 4> ns_imap list 1 {{localhost}} mail/* > ^ > 1 warning generated. > /bin/rm -Rf nsimap.so > clang -shared -L/usr/local/ns/lib -o nsimap.so nsimap.o > ../../panda-imap/c-client/c-client.a -L/usr/local/nsx/lib -lpam > -lgssapi_krb5 -lkrb5 -lnsthread -lnsd -L/usr/local/ns/lib -ltcl8.5 > -lgcc_s -lm -L/usr/local/ns/lib -lssl -lcrypto > -Wl,-rpath,:/usr/local/ns/lib > /usr/bin/ld: ../../panda-imap/c-client/c-client.a(osdep.o): relocation > R_X86_64_32 against `a local symbol' can not be used when making a > shared object; recompile with -fPIC > ../../panda-imap/c-client/c-client.a: could not read symbols: Bad value > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > gmake: *** [/usr/local/ns/include/Makefile.module:143: nsimap.so] Error 1 > > > > first build attempt: > > > # gmake IMAPFLAGS=-I../../panda-imap/c-client/ > "IMAPLIBS=../../panda-imap/c-client/c-client.a -L/usr/local/nsx/lib > -lpam -lgssapi_krb5 -lkrb5" > clang -I../../panda-imap/c-client/ -g -O2 -DNDEBUG -Wall -fPIC -pipe > -I/usr/local/ns/include -I"/usr/local/ns/include" -DHAVE_CONFIG_H -c > -o nsimap.o nsimap.c > nsimap.c:190:60: warning: '/*' within block comment [-Wcomment] > * oss2:nscp 4> ns_imap list 1 {{localhost}} mail/* > ^ > 1 warning generated. > /bin/rm -Rf nsimap.so > clang -shared -L/usr/local/ns/lib -o nsimap.so nsimap.o > ../../panda-imap/c-client/c-client.a -L/usr/local/nsx/lib -lpam > -lgssapi_krb5 -lkrb5 -lnsthread -lnsd -L/usr/local/ns/lib -ltcl8.5 > -lgcc_s -lm -L/usr/local/ns/lib -lssl -lcrypto > -Wl,-rpath,:/usr/local/ns/lib > /usr/bin/ld: ../../panda-imap/c-client/c-client.a(osdep.o): relocation > R_X86_64_32 against `a local symbol' can not be used when making a > shared object; recompile with -fPIC > ../../panda-imap/c-client/c-client.a: could not read symbols: Bad value > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > gmake: *** [/usr/local/ns/include/Makefile.module:143: nsimap.so] Error 1 > root@or97:/usr/local/src/modules/nsimap # > > # gmake -v > GNU Make 4.2.1 > Built for amd64-portbld-freebsd10.3 > Copyright (C) 1988-2016 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > > > Other notes: > > > This build is using Naviserver head so as to get the latest nsmap changes. > > Naviserver build dir is /usr/local/nsx (Latest release of NaviServer > already uses /usr/local/ns) > > IMAP-2007f is from https://github.com/jonabbey/panda-imap and locally > at: /usr/local/src/panda-imap > > > > panda-imap was built using: gmake bsf > > No flags were passed as arguments because the defaults seem appropriate > for this system: > PASSWDTYPE=nopwd IP=4 > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel |