Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #4559 (closed defect: fixed)

Opened 3 years ago

Last modified 2 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@…
Port:

Description (last modified by mww@…) (diff)

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@… 5 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 2 years ago by pguyot@…

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

postgresql8 is deprecated. Please use postgresql81 instead.

Changed 20 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 16 months ago by nox@…

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

Changed 10 months ago by nerdrew@…

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

Changed 9 months ago by jmr@…

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

Assigning to maintainer.

Changed 9 months ago by ryandesign@…

  • cc waterson@… added

Chris Waterson also reported this problem on macports-users.

Changed 5 months ago by mcalhoun@…

  • cc yannick@…, mcalhoun@… added

Duplicate of #14465.

Changed 5 months ago by mcalhoun@…

Changed 5 months ago by mcalhoun@…

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

Changed 2 months ago by nerdrew@…

Is the fix going to be incorporated any time soon?

Changed 2 months ago by mww@…

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)

Commited the patch from mcalhoun; thanks! #40203

Note: See TracTickets for help on using tickets.