[email protected] said: > CC -erroff=%none,wbadinitl,wbadasgl,badargtypel2w -xO2 -library=no%Cstd,no%C > run -library=no%Cstd,no%Crun -o smartd smartd.o atacmdnames.o atacmds.o > ataprint.o knowndrives.o scsicmds.o scsiata.o scsiprint.o utility.o > os_solaris.o -lnsl ld: fatal: file smartd.o: wrong ELF class: ELFCLASS64 > ld: fatal: file processing errors. No output written to smartd > . . . > if I recompose the failure line and add -m64 it completes. Am I doing > something wrong or is there something wrong with the code? Can someone guide > me on a proper fix for this?
Well, you do need to tell the linker it should be doing the 64-bit thing as well. In this particular case, try adding "-m64" to CXXFLAGS, or possibly LDFLAGS. Regards, Marion _______________________________________________ opensolaris-discuss mailing list [email protected]
