Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 push-3.1.0 does not compile with gcc 4.3.3

open
nobody
None
5
2010-11-25
2010-11-25
bver42
No

I have seen the compilation error when running make:
...
g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -DNDEBUG -fomit-frame-pointer -g -O2 -MT pushC.lo -MD -MP -MF .deps/pushC.Tpo -c ../extension/pushC.cpp -fPIC -DPIC -o .libs/pushC.o
../extension/pushC.cpp: In function 'char* pushGetConfigString(PushEnvironment*)':
../extension/pushC.cpp:85: error: 'strdup' was not declared in this scope
...

the ./configure part was ok.

However, the pushC.cpp compiles well with
#include <string.h>
inserted into the beginning of the file.

I am using
gcc (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 4.3.2

Discussion