postgresql-interfaces/psqlodbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
[postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
10+ messages / 4 participants
[nested] [flat]

* [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-12 16:53 "jboakye (@jboakye)" <[email protected]>
  0 siblings, 0 replies; 10+ messages in thread

From: jboakye (@jboakye) @ 2024-05-12 16:53 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

symbol lookup error: /usr/local/lib/psqlodbca.so: undefined symbol: _strdup
[Debian][psqlodbc Release 16_004]

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 00:45 ` "davecramer (@davecramer)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: davecramer (@davecramer) @ 2024-05-13 00:45 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

You should report this to the debian maintainer.

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 01:44 ` "jboakye (@jboakye)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: jboakye (@jboakye) @ 2024-05-13 01:44 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

Just curious though why not define it as strdup ... that's my workaround.

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 08:29 ` "df7cb (@df7cb)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: df7cb (@df7cb) @ 2024-05-13 08:29 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

Hi,

anything in `/usr/local` is not a Debian problem. That's something you compiled yourself and installed there.

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 08:43 ` "df7cb (@df7cb)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: df7cb (@df7cb) @ 2024-05-13 08:43 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

The Debian package build has the same problem, though:
```
ODBCSYSINI=. ODBCINSTINI=./odbcinst.ini ODBCINI=./odbc.ini ./reset-db < ./sampletables.sql
./reset-db: symbol lookup error: ../.libs/psqlodbcw.so: undefined symbol: _strdup
make[2]: *** [Makefile:32: installcheck] Error 127
```

Full build log: https://pgdgbuild.dus.dg-i.net/job/psqlodbc-binaries/83/architecture=amd64,distribution=sid/console

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 09:29 ` "jboakye (@jboakye)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: jboakye (@jboakye) @ 2024-05-13 09:29 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

I just did some research and it seems _strdup is targeted at MS windows? .. seems like the enclosing #ifdefs should make sure _strdup does not get defined for non MS systems. 
Thank you all for looking into it.

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 12:15 ` "davecramer (@davecramer)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: davecramer (@davecramer) @ 2024-05-13 12:15 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

enclosing `#ifdefs` ?  We can add that to the official code if you can provide the code.

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 12:36 ` "apgrucza (@apgrucza)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: apgrucza (@apgrucza) @ 2024-05-13 12:36 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

Prior to #6, psqlODBC only used `_strdup` on Windows builds. `_strdup` is actually part of ISO C and C++, but as it does not compile on all systems, I've created #17 to resolve this issue.

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 18:00 ` "df7cb (@df7cb)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: df7cb (@df7cb) @ 2024-05-13 18:00 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

@davecramer do you plan a new release with the fix?

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup
@ 2024-05-13 18:22 ` "davecramer (@davecramer)" <[email protected]>
  8 siblings, 0 replies; 10+ messages in thread

From: davecramer (@davecramer) @ 2024-05-13 18:22 UTC (permalink / raw)
  To: postgresql-interfaces/psqlodbc <[email protected]>

I'd like to make sure some other things are fixed first, but sure.

^ permalink  raw  reply  [nested|flat] 10+ messages in thread


end of thread, other threads:[~2024-05-13 18:22 UTC | newest]

Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-05-12 16:53 [postgresql-interfaces/psqlodbc] issue #15: #define pg_strdup       _strdup "jboakye (@jboakye)" <[email protected]>
2024-05-13 00:45 ` "davecramer (@davecramer)" <[email protected]>
2024-05-13 01:44 ` "jboakye (@jboakye)" <[email protected]>
2024-05-13 08:29 ` "df7cb (@df7cb)" <[email protected]>
2024-05-13 08:43 ` "df7cb (@df7cb)" <[email protected]>
2024-05-13 09:29 ` "jboakye (@jboakye)" <[email protected]>
2024-05-13 12:15 ` "davecramer (@davecramer)" <[email protected]>
2024-05-13 12:36 ` "apgrucza (@apgrucza)" <[email protected]>
2024-05-13 18:00 ` "df7cb (@df7cb)" <[email protected]>
2024-05-13 18:22 ` "davecramer (@davecramer)" <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox