Opened 14 years ago

Closed 14 years ago

#23272 closed defect (fixed)

qtiplot 0.9.7.9 fails to build on Snow Leopard

Reported by: Stochasticus@… Owned by: jonas@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: celemourn@…, nicos_pavlov@…, vakuumfluktuation@…
Port: qtiplot

Description (last modified by mf2k (Frank Schima))

I was updating all outdated packages and qtiplot gave me a problem. I'm in the middle of a job that needs it so I don't want to uninstall the working version unless I'm sure it will fix the problem otherwise I'd do the uninstall and re-install test. The problem seems to be here but I'll attach the full log from a cleaned installation as well:

Undefined symbols:
  "_gzclose", referenced from:
      _gz_uncompress in minigzip.o
      _gz_compress in minigzip.o
  "_gzerror", referenced from:
      _gz_uncompress in minigzip.o
      _gz_compress in minigzip.o
  "_gzwrite", referenced from:
      _gz_compress in minigzip.o
  "_gzopen", referenced from:
      _file_uncompress in minigzip.o
      _file_compress in minigzip.o
  "_gzread", referenced from:
      _gz_uncompress in minigzip.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Attachments (3)

qtiplot.log.zip (81.4 KB) - added by Stochasticus@… 14 years ago.
output from "port -d install qtiplot" after performing "port clean qtiplot"
Portfile-qtiplot.diff (578 bytes) - added by nicos_pavlov@… 14 years ago.
Portfile-qtiplot-2.diff (1000 bytes) - added by nicos_pavlov@… 14 years ago.

Download all attachments as: .zip

Change History (15)

Changed 14 years ago by Stochasticus@…

Attachment: qtiplot.log.zip added

output from "port -d install qtiplot" after performing "port clean qtiplot"

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to jonas@…

Please remember to cc the maintainer.

comment:2 in reply to:  1 Changed 14 years ago by Stochasticus@…

Replying to jmr@…:

Please remember to cc the maintainer.

Sorry about that, I'll remember in future.

comment:3 Changed 14 years ago by celemourn@…

Cc: celemourn@… added

Cc Me!

comment:4 Changed 14 years ago by celemourn@…

I'm gettting this error too, on a fresh install of 10.6.2.

comment:5 Changed 14 years ago by nicos_pavlov@…

Cc: nicos_pavlov@… added

Cc Me!

comment:6 Changed 14 years ago by nicos_pavlov@…

It seems that adding the missing library to the compilation file does the trick. See attached portfile.

Changed 14 years ago by nicos_pavlov@…

Attachment: Portfile-qtiplot.diff added

comment:7 Changed 14 years ago by jonas@…

hmmm that's interesting. I thought zlib was already pulled in by Qt, but maybe the cocoa version doesn't do so... That wuold also explain why I can't reproduce the problem here on Leopard. (qt4-mac builds per default the cocoa variant on snow leopard, since the carbon variant isn't 64 bit ready)

Your patch seems a bit hacky though. Could you please try to add zlib to SYS_LIBS, say

- puts $confFD "SYS_LIBS = -L${prefix}/lib"
+ # snow leopard seems to need zlib explicitly, see #23272
+ puts $confFD "SYS_LIBS = -L${prefix}/lib -lz"

If this works, add zlib as additional dependency and feel free to commit, thanks.

comment:8 Changed 14 years ago by nicos_pavlov@…

This patch is indeed far cleaner. I am still not used to the build.conf file.

I confirm that it works with Snow Leopard 10.6.2 and the latest qt4-mac of Macports (4.6.1_0). I made a patch with the proposed modification and the addition of zlib as a dependency. I don't have commit rights, so since the maintainer agreed to it, could someone commit it ?

Changed 14 years ago by nicos_pavlov@…

Attachment: Portfile-qtiplot-2.diff added

comment:9 in reply to:  8 Changed 14 years ago by vakuumfluktuation@…

I'd like to install qtiplot an an iBook G4 with Tiger 10.4.11 ...

Build stops with:

/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_gzclose
_gzerror
_gzopen
_gzread
_gzwrite
collect2: ld returned 1 exit status
make[1]: *** [qtiplot.app/Contents/MacOS/qtiplot] Error 1
make: *** [sub-qtiplot-all] Error 2

I applied the given patch and it builds now! But doesn't that neglect the argument why it worked on Leopard and not on Snow Leopard?

comment:10 Changed 14 years ago by vakuumfluktuation@…

Cc: vakuumfluktuation@… added

Cc Me!

comment:11 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:12 Changed 14 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

Maintainer timeout. r63935.

Note: See TracTickets for help on using tickets.