I tried to compile tftpserverspV1.61 using the command listed in the README file and I receive an error.
The OS is Solaris 10 : SunOS 5.10 Generic_118822-25 sun4u sparc SUNW,A70
The command executed: c++ tftpserver.cpp -otftpserver -lsocket -lnsl -lpthread
The error displayed: In file included from tftpserver.cpp:49: /usr/include/net/if.h:99: error: template argument required for `struct map'
I'd appreciate any help to solve this issue
Thanks
Thanks for Posting,
The compile error on solaris is fixed in file tftpserverspV1.62
Achal
and it will produce bin programs of the form "foo-gcc-bar", so that you may differentiate different builds of gcc.
Replace foo and/or bar with an appropriate "tag" for your build (eg "-4.6" for example).
This way if it doesn't find your toolchain correctly it will fail fast rather than using the 3.4 version.
It also means that different toolchain builds can coexist in the standard installation prefix directories.
Log in to post a comment.
I tried to compile tftpserverspV1.61 using the command listed in the README file and I receive an error.
The OS is Solaris 10 : SunOS 5.10 Generic_118822-25 sun4u sparc SUNW,A70
The command executed: c++ tftpserver.cpp -otftpserver -lsocket -lnsl -lpthread
The error displayed:
In file included from tftpserver.cpp:49:
/usr/include/net/if.h:99: error: template argument required for `struct map'
I'd appreciate any help to solve this issue
Thanks
Thanks for Posting,
The compile error on solaris is fixed in file tftpserverspV1.62
Achal
and it will produce bin programs of the form "foo-gcc-bar", so that you may differentiate different builds of gcc.
Replace foo and/or bar with an appropriate "tag" for your build (eg "-4.6" for example).
This way if it doesn't find your toolchain correctly it will fail fast rather than using the 3.4 version.
It also means that different toolchain builds can coexist in the standard installation prefix directories.