#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)
Change History (14)
comment:1 Changed 19 years ago by mww@…
Cc: | simon@… added |
---|
comment:2 Changed 19 years ago by mww@…
Summary: | compile error when installing postgresql8 after unixODBC → BUG: compile error when installing postgresql8 after unixODBC |
---|
comment:3 Changed 18 years ago by pguyot (Paul Guyot)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
postgresql8 is deprecated. Please use postgresql81 instead.
comment:4 Changed 18 years ago by david.m.cooke@…
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
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: | Expected → Normal |
Version: | 1.0 |
comment:7 Changed 17 years ago by jmroot (Joshua Root)
Cc: | jwa@… added |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
Status: | reopened → new |
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:12 Changed 16 years ago by mww@…
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Commited the patch from mcalhoun; thanks! #40203
CC'ing unixODBC maintainer; Simon, how about adding
--includedir=$[prefix}/include/${name}
to configure.args in unixODBC?