Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#204 closed defect (fixed)

problem compiling geos

Reported by: martinl Owned by: mloskot
Priority: blocker Milestone: 3.1.0
Component: Core Version: main
Severity: Critical Keywords: setlocale
Cc:

Description

I have problems compiling geos on my machine (Debian GNU/Linux unstable)

g++ (Debian 4.3.1-9) 4.3.1

I cannot compile trunk, even geos 2.2.x. Often easy to fix --- missing stdlib.h or using cstring instead of string header. See the attached path against trunk.

Attachments (2)

CLocalizer.cpp.diff (345 bytes ) - added by martinl 16 years ago.
compile geos with g++ 4.3.1
geos-22-cstring.diff (1.1 KB ) - added by martinl 16 years ago.
compile geos 2.2 with g++

Download all attachments as: .zip

Change History (9)

by martinl, 16 years ago

Attachment: CLocalizer.cpp.diff added

compile geos with g++ 4.3.1

comment:1 by mloskot, 16 years ago

Component: Build/InstallCore
Keywords: setlocale added
Priority: majorblocker
Severity: UnassignedCritical
Status: newassigned

comment:2 by mloskot, 16 years ago

Resolution: fixed
Status: assignedclosed

Martin,

Thanks for reporting. Fixed in trunk (r2180)

comment:3 by martinl, 16 years ago

Hi,

similar fixes need to be done also in 2.2 and 3.0 branch. Moreover I had similar problems with geos-2.2.3 tarball...

Thanks for fixing it.

comment:4 by mloskot, 16 years ago

Martin,

I agree the patch should be also applied to branches/3.0 but why you want it for 2.2? There is no CLocalizer class in 2.2.

in reply to:  4 comment:5 by martinl, 16 years ago

Replying to mloskot:

I agree the patch should be also applied to branches/3.0 but why you want it for 2.2? There is no CLocalizer class in 2.2.

Sorry, I didn't mean CLocalizer class. In 2.2 is included string header even C-based functions are used in the code (memcpy, strcmp). Patch attached.

by martinl, 16 years ago

Attachment: geos-22-cstring.diff added

compile geos 2.2 with g++

comment:6 by (none), 15 years ago

Milestone: 3.1.0

Milestone 3.1.0 deleted

comment:7 by pramsey, 15 years ago

Milestone: 3.1.0
Note: See TracTickets for help on using tickets.