config.status: creating Makefile
config.status: creating postal.h
config.status: creating port.h
config.status: creating postal.spec
config.status: creating sun/pkginfo
config.status: creating conf.h
config.status: conf.h is unchanged
i686-pc-linux-gnu-g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -O2 -g -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual -Woverloaded-virtual -pedantic -ffor-scope -c expand.cpp
i686-pc-linux-gnu-g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -O2 -g -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual -Woverloaded-virtual -pedantic -ffor-scope -c userlist.cpp
userlist.cpp: In constructor ‘UserList::UserList(const char*, const char*, bool)’:
userlist.cpp:19: error: ‘exit’ was not declared in this scope
userlist.cpp:24: error: ‘strtok’ was not declared in this scope
userlist.cpp:29: error: ‘strlen’ was not declared in this scope
userlist.cpp:41: error: ‘strlen’ was not declared in this scope
userlist.cpp:48: error: ‘exit’ was not declared in this scope
userlist.cpp: In member function ‘std::string UserList::randomUser()’:
userlist.cpp:75: error: ‘random’ was not declared in this scope
make: *** [userlist.o] Error 1
make: *** Waiting for unfinished jobs....
Steps to Reproduce:
Created attachment 150767 [details, diff]
Fixes the basic error. Though the changelog for postal 0.69 claims gcc-4.3.0 compatibility, that's not true when you play around with the configure options.
Created attachment 150769 [details, diff]
The configure.in was badly borked before. Excessive use of negative logic was the cause. Making a wrapper around that logic and fixing the build errors that were blocking a ssl-free build.
Created attachment 150770 [details, diff]
When compiling the source resulting from the last two patches with gcc-4.3.0, gcc was spitting out errors about postal's use of hash_map. Fix up with stdc++0x code and put some autoconf magic in place to switch it on and off. Tested with both gcc-4.3.0 and gcc-4.2.3.
Created attachment 150771 [details, diff]
Fixup a warning. Now compiles with -Werror, if one is so inclined.
Created attachment 150772 [details, diff]
Fixup for version being incorrect.
Created attachment 150773 [details, diff]
Diff from 0.62 to 0.69. Licence ->gpl-3, logic for using gnutls and openssl consistent with autoconf magic, simplified ebuild due to QA improvements.
I believe these patches to be incremental from 01-->05, so any features can be punted by punting a patch. I'll be sending upstream a note about this bug.
Fixed in CVS, bumped to postal-0.70. Thanks for your patches, Peter!