I am trying to build the library for MIPS, I have changed the make
file and I am putting the changes to the makefile towards the end. Now
things compile fine but there is a linker error, it builds the
library, however, when I try to link it to another program, it says,
linking not done...

Here are the changes to the Makefile

LDFLAGS = -mips2 -mno-abicalls -mabi=32 -mtune=r6000 -msplit-addresses
-lm -Wa,--start-group -lc -lnss_files -lnss_dns -lresolv -Wa,--end-
group
#MLDOPTS    +=-mips2 -Wa,-non_shared
AR = /usr/local/bin/mipseb-linux-ar
ARFLAGS = -rv
RANLIB = /usr/local/bin/mipseb-linux-ranlib
CP = cp
MKDIR = mkdir
EGREP = egrep
UNAME = $(shell uname)
ISX86 = $(shell uname -m | $(EGREP) -c "i.86|x86|i86")
ISMINGW = $(shell uname | $(EGREP) -c "MINGW32")



CXX = /usr/local/bin/mipseb-linux-g++
CXXFLAGS =  -mips2 -mno-abicalls  -mabi=32 -mtune=r6000 -msplit-
addresses  -I. -static -Wa,-non_shared -I. -I/usr/local/mipseb-linux/
include/c++/3.2 -I/usr/local/mipseb-linux/include/c++/3.2/backward -I/
usr/local/mipseb-linux/include/c++/3.2/mips-linux-gnu

#-I. -I/usr/local/mipseb-linux/include/c++/3.2 -I/usr/local/mipseb-
linux/include/c++/3.2/backward -I/usr/local/mipseb-linux/include/c++/
3.2/mips-linux-gnu -static -Wa,-non_shared -mips2 -mno-abicalls -
mabi=32 -mtune=r6000 -msplit-addresses  -mips2 -Wa,-non_shared

SRCS = $(wildcard *.cpp)
ifeq ($(SRCS),)                         # workaround wildcard function
bug in GNU Make 3.77
SRCS = $(shell echo *.cpp)
endif
OBJS = $(SRCS:.cpp=.o)
# test.o needs to be after bench.o for cygwin 1.1.4 (possible ld bug?)
TESTOBJS = bench.o bench2.o test.o validat1.o validat2.o validat3.o
adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o
LIBOBJS = $(filter-out $(TESTOBJS),$(OBJS))


Here is the linker errors that I get

/usr/local/bin/mipseb-linux-g++  -o cryptest.exe -mips2 -mno-abicalls
-mabi=32 -mtune=r6000 -msplit-addresses  -I. -static -Wa,-non_shared -
I. -I/usr/local/mipseb-linux/include/c++/3.2 -I/usr/local/mipseb-linux/
include/c++/3.2/backward -I/usr/local/mipseb-linux/include/c++/3.2/
mips-linux-gnu bench.o bench2.o test.o validat1.o validat2.o
validat3.o adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o -L. -
lcryptopp -mips2 -mno-abicalls -mabi=32 -mtune=r6000 -msplit-addresses
-lm -Wa,--start-group -lc -lnss_files -lnss_dns -lresolv -Wa,--end-
group
/usr/local/lib/gcc-lib/mipseb-linux/3.2.1/../../../../mipseb-linux/lib/
libc.a(nsswitch.o)(.data+0x64): undefined reference to
`_nss_files_getaliasent_r'
/usr/local/lib/gcc-lib/mipseb-linux/3.2.1/../../../../mipseb-linux/lib/
libc.a(nsswitch.o)(.data+0x6c): undefined reference to
`_nss_files_endaliasent'
/usr/local/lib/gcc-lib/mipseb-linux/3.2.1/../../../../mipseb-linux/lib/
libc.a(nsswitch.o)(.data+0x74): undefined reference to
`_nss_files_setaliasent'
/usr/local/lib/gcc-lib/mipseb-linux/3.2.1/../../../../mipseb-linux/lib/
libc.a(nsswitch.o)(.data+0x7c): undefined reference to
`_nss_files_getaliasbyname_r'
/usr/local/lib/gcc-lib/mipseb-linux/3.2.1/../../../../mipseb-linux/lib/
libc.a(nsswitch.o)(.data+0x84): undefined reference to
`_nss_files_getetherent_r'
/usr/local/lib/gcc-lib/mipseb-linux/3.2.1/../../../../mipseb-linux/lib/
libc.a(nsswitch.o)(.data+0x8c): undefined reference to
`_nss_files_endetherent'
/usr/local/lib/gcc-lib/mipseb-linux/3.2.1/../../../../mipseb-linux/lib/
libc.a(nsswitch.o)(.data+0x94): undefined reference to
`_nss_files_setetherent'

This keeps coming for some 50 other things, I added -Wa,--start-group -
lc -lnss_files -lnss_dns -lresolv -Wa,--end-group to LDFLAGS to solve
the problem, but it doesnt work

Thanks in advance


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to