Hallo
Probiere gerade ps3netsrv unter nas4free zu compelieren.
Was ich bis jetzt gemacht habe ist das Makefile ausmissten und im Quellcode off64_t durch off_t ersetzt.
habe aber bei make folgende Fehlermeldung.
LDFLAGS auskommentiert
Makefile
Kann jemand was damit anfangen
hier noch ein ls .
Probiere gerade ps3netsrv unter nas4free zu compelieren.
Was ich bis jetzt gemacht habe ist das Makefile ausmissten und im Quellcode off64_t durch off_t ersetzt.
habe aber bei make folgende Fehlermeldung.
Code:
main.cpp:870: warning: comparison between signed and unsigned integer expressions
main.cpp:872: warning: comparison between signed and unsigned integer expressions
cc -Wall -I. -I/usr/lib/ -std=gnu99 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c compat.c
c++ -Wall -I. -I/usr/lib/ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c File.cpp
c++ -Wall -I. -I/usr/lib/ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c VIsoFile.cpp
VIsoFile.cpp: In member function 'void VIsoFile::write(const char*, const char*)':
VIsoFile.cpp:1142: warning: unused variable 'written'
VIsoFile.cpp: In member function 'virtual ssize_t VIsoFile::read(void*, size_t)':
VIsoFile.cpp:1431: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1460: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1460: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1468: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1492: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1530: warning: comparison between signed and unsigned integer expressions
-L. -o ps3netsrv -lstdc++ -lpthread
-L.: No such file or directory
*** [ps3netsrv] Error code 1
Stop in /usr/src/ps3netsrv.
root@proto:/usr/src/ps3netsrv #
root@proto:/usr/src/ps3netsrv # make clean
rm -f ps3netsrv *.o
root@proto:/usr/src/ps3netsrv # make all
c++ -Wall -I. -I/usr/lib/ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c main.cpp
main.cpp: In function 'int process_write_file_cmd(client_t*, netiso_write_file_cmd*)':
main.cpp:633: warning: comparison between signed and unsigned integer expressions
main.cpp: In function 'int process_read_dir_entry_cmd(client_t*, netiso_read_dir_entry_cmd*, int)':
main.cpp:870: warning: comparison between signed and unsigned integer expressions
main.cpp:870: warning: comparison between signed and unsigned integer expressions
main.cpp:872: warning: comparison between signed and unsigned integer expressions
cc -Wall -I. -I/usr/lib/ -std=gnu99 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c compat.c
c++ -Wall -I. -I/usr/lib/ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c File.cpp
c++ -Wall -I. -I/usr/lib/ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c VIsoFile.cpp
VIsoFile.cpp: In member function 'void VIsoFile::write(const char*, const char*)':
VIsoFile.cpp:1142: warning: unused variable 'written'
VIsoFile.cpp: In member function 'virtual ssize_t VIsoFile::read(void*, size_t)':
VIsoFile.cpp:1431: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1460: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1460: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1468: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1492: warning: comparison between signed and unsigned integer expressions
VIsoFile.cpp:1530: warning: comparison between signed and unsigned integer expressions
Code:
-L. -o ps3netsrv -lstdc++ -lpthread
-L.: No such file or directory
*** [ps3netsrv] Error code 1
Code:
-o ps3netsrv -lstdc++ -lpthread
-o: No such file or directory
*** [ps3netsrv] Error code 1
Code:
#OS = linux
#BUILD_TYPE = release
OUTPUT := ps3netsrv
OBJS=main.o compat.o File.o VIsoFile.o
CFLAGS=-Wall -I. -I/usr/lib/ -std=gnu99 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
LDFLAGS=-L.
LIBS = -lstdc++
LIBS += -lpthread
all: $(OUTPUT)
clean:
rm -f $(OUTPUT) *.o
$(OUTPUT): $(OBJS)
$(LINK.c) $(LDFLAGS) -o $@ $^ $(LIBS)
hier noch ein ls .
Code:
AbstractFile.h File.o VIsoFile.h compat.c dirent.c main.cpp scandir.c
File.cpp Makefile VIsoFile.o compat.h dirent2.h main.o
File.h VIsoFile.cpp common.h compat.o iso9660.h netiso.h
Zuletzt bearbeitet: