Opened 19 years ago

Closed 16 years ago

Last modified 16 years ago

#4559 closed defect (fixed)

BUG: compile error when installing postgresql8 after unixODBC

Reported by: erickt@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: simon@…, jyrkiwahlstedt, waterson@…, yannick@…, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port:

Description (last modified by mww@…)

Hello,

I ran into a problem compiling postgresql 8 after I installed unixODBC. Since unixODBC also defines a header sqltypes.h, postgresql is picking up this file and erroring out:

gcc -no-cpp-precomp -I/opt/local/include -Wall -Wmissing-prototypes -Wpointer-arith -Wendif- labels -fno-strict-aliasing -I../../../../src/interfaces/ecpg/include -I../../../../src/interfaces/libpq -I../ ../../../src/include/utils -I../../../../src/include -I/opt/local/include -I/opt/local/include -c -o informix.o informix.c informix.c: In function `deccall3': informix.c:67: error: `CDECIMALTYPE' undeclared (first use in this function) informix.c:67: error: (Each undeclared identifier is reported only once informix.c:67: error: for each function it appears in.)

I can manually get this to compile if I disable unixODBC, but that doesn't seem to be an optimal solution. Or, if I move the "-I/opt/local/include" to the end of that command, it compiles fine. Is there any chance to have the unixODBC headers moved into their own namespace out of /opt/local/include? Or does someone else know a better solution?

Thanks,

-e

Attachments (1)

Portfile.diff (362 bytes) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 16 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 19 years ago by mww@…

Cc: simon@… added

CC'ing unixODBC maintainer; Simon, how about adding

--includedir=$[prefix}/include/${name}

to configure.args in unixODBC?

comment:2 Changed 19 years ago by mww@…

Summary: compile error when installing postgresql8 after unixODBCBUG: compile error when installing postgresql8 after unixODBC

comment:3 Changed 18 years ago by pguyot (Paul Guyot)

Resolution: wontfix
Status: newclosed

postgresql8 is deprecated. Please use postgresql81 instead.

comment:4 Changed 18 years ago by david.m.cooke@…

Resolution: wontfix
Status: closedreopened

This problem still occurs in postgresql81 and postgresql82 -- exact same error and same solution (uninstall unixODBC first).

comment:5 Changed 17 years ago by nox@…

Milestone: Port Bugs
Priority: ExpectedNormal
Version: 1.0

comment:6 Changed 17 years ago by nerdrew@…

I'm having this same problem with postgesql83 as well.

comment:7 Changed 17 years ago by jmroot (Joshua Root)

Cc: jwa@… added
Owner: changed from macports-tickets@… to mww@…
Status: reopenednew

Assigning to maintainer.

comment:8 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: waterson@… added

Chris Waterson also reported this problem on macports-users.

comment:9 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: yannick@… mcalhoun@… added

Duplicate of #14465.

Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attachment: Portfile.diff added

comment:10 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attached is proposed fix to allow postgresql83 to be installed with unixODBC already installed.

comment:11 Changed 16 years ago by nerdrew@…

Is the fix going to be incorporated any time soon?

comment:12 Changed 16 years ago by mww@…

Description: modified (diff)
Resolution: fixed
Status: newclosed

Commited the patch from mcalhoun; thanks! #40203

comment:13 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.