Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #4559 (new defect)

Opened 3 years ago

Last modified 3 months ago

BUG: compile error when installing postgresql8 after unixODBC

Reported by: erickt@… Owned by: mww@…
Priority: Normal Milestone: Port Bugs
Component: ports Version:
Keywords: Cc: simon@…, jwa@…, waterson@…, yannick@…, mcalhoun@…

Description

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

Portfile.diff (362 bytes) - added by mcalhoun@… 3 months ago.

Change History

Changed 3 years ago by mww@…

  • cc simon@… added

CC'ing unixODBC maintainer; Simon, how about adding

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

to configure.args in unixODBC?

Changed 3 years ago by mww@…

  • summary changed from compile error when installing postgresql8 after unixODBC to BUG: compile error when installing postgresql8 after unixODBC

Changed 21 months ago by pguyot@…

  • status changed from new to closed
  • resolution set to wontfix

postgresql8 is deprecated. Please use postgresql81 instead.

Changed 17 months ago by david.m.cooke@…

  • status changed from closed to reopened
  • resolution wontfix deleted

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

Changed 13 months ago by nox@…

  • priority changed from Expected to Normal
  • version 1.0 deleted
  • milestone set to Port Bugs

Changed 7 months ago by nerdrew@…

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

Changed 6 months ago by jmr@…

  • cc jwa@… added
  • owner changed from macports-tickets@… to mww@…
  • status changed from reopened to new

Assigning to maintainer.

Changed 6 months ago by ryandesign@…

  • cc waterson@… added

Chris Waterson also reported this problem on macports-users.

Changed 3 months ago by mcalhoun@…

  • cc yannick@…, mcalhoun@… added

Duplicate of #14465.

Changed 3 months ago by mcalhoun@…

Changed 3 months ago by mcalhoun@…

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

Note: See TracTickets for help on using tickets.