#34746 closed defect (duplicate)
scamp build failure: Undefined symbols _plcol
Reported by: | abraham@… | Owned by: | tim@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | Cc: | tolga.guver@…, juandesant (Juande Santander-Vela) | |
Port: | scamp |
Description
Hi, I'm attempting to build scamp 1.6.2 on Mac OS X Lion (10.7.4). I currently have XCode 4.1 installed.
I've been using MacPorts successfully for quite some time and this appears to be an isolated problem. I tried building with clang in addition to llvm but neither compiler worked.
Looking through the build log file reveals the following build error which I think might indicate a missing dependency:
:info:build Undefined symbols for architecture x86_64: :info:build "_plcol", referenced from: :info:build _cplot_allsky in astrcplot.o :info:build _cplot_astrefprop in astrcplot.o :info:build _cplot_astrcolshift1d in astrcplot.o :info:build _cplot_referrhisto2d in astrcplot.o :info:build _cplot_referrhisto1d in astrcplot.o :info:build _cplot_aderrhisto2d in astrcplot.o :info:build _cplot_aderrhisto1d in astrcplot.o :info:build ... :info:build (maybe you meant: _c_plcol0, _c_plcol1 ) :info:build ld: symbol(s) not found for architecture x86_64
Here is what is reported on the command line (after removing the messages regarding installation of dependencies, which appeared to install fine):
---> Fetching archive for scamp ---> Attempting to fetch scamp-1.6.2_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/scamp ---> Fetching distfiles for scamp ---> Attempting to fetch scamp-1.6.2.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/scamp ---> Verifying checksum(s) for scamp ---> Extracting scamp ---> Configuring scamp ---> Building scamp Error: org.macports.build for port scamp returned: command execution failed To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port scamp failed
Attachments (3)
Change History (26)
comment:1 follow-up: 3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to tim@… |
---|
comment:2 follow-up: 4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | scamp 1.6.2 configure error - build failure → scamp build failure: Undefined symbols _plcol |
---|
Also, please consider upgrading Xcode; 4.1 is old.
comment:3 Changed 12 years ago by abraham@…
Replying to ryandesign@…:
Please attach the main.log file.
Done! Thanks for the suggestion, this is the first ticket I've filed and I'm a little unsure what information is critical vs. redundant.
comment:4 follow-up: 5 Changed 12 years ago by abraham@…
comment:5 Changed 12 years ago by abraham@…
Replying to abraham@…:
Replying to ryandesign@…:
Also, please consider upgrading Xcode; 4.1 is old.
Will do.
Hi, I've upgraded to XCode 4.3.2 and the port still fails to build (same issues).
comment:6 Changed 12 years ago by jmroot (Joshua Root)
Apparently plcol came from plplot, but was deprecated and removed. The replacement is plcol0.
http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.9/plcol.html
comment:7 follow-up: 9 Changed 12 years ago by lpsinger (Leo Singer)
The upstream developer changed from plcol to plcol0 in trunk: http://www.astromatic.net/wsvn/public/filedetails.php?repname=public+software.scamp&path=%2Ftrunk%2Fsrc%2Fastrcplot.c
tim, are you in touch with this package's author? Can you ask him when the next release will be available?
comment:8 Changed 12 years ago by tolga.guver@…
Cc: | tolga.guver@… added |
---|
Hi I just had the exact same problem. I was wondering if there is anything new to solve this issue.
thanks,
comment:9 Changed 12 years ago by cdeil (Christoph Deil)
Replying to aronnax@…:
The upstream developer changed from plcol to plcol0 in trunk: http://www.astromatic.net/wsvn/public/filedetails.php?repname=public+software.scamp&path=%2Ftrunk%2Fsrc%2Fastrcplot.c
tim, are you in touch with this package's author? Can you ask him when the next release will be available?
I just asked in the SCAMP forum if they can make a new release to get the fix for this issue out: http://www.astromatic.net/forum/showthread.php?tid=851
(Macports currently is at 1.6.2, I also tried with the latest release 1.7, which still contains the problem, so no need to update the port at this point)
comment:10 Changed 11 years ago by juandesant (Juande Santander-Vela)
I'm having the exact same problem with MacPorts 2.2.1 on Mavericks, with Xcode 5.0.2 and xcode-select --install
already performed. All of scamp dependencies (including atlas and libgcc), and the rest of Astromatic software (stiff, stuff, sextractor, skymapper, weightwatcher), installed like a charm. Will ping in the Astromatic forum as well. Not sure if it's worth it to add my main.log file.
comment:12 Changed 11 years ago by smeingast (Stefan Meingast)
Scamp 2.0 just came out of beta a few days ago. Would it be possible to update the port at this time?
comment:13 Changed 11 years ago by cdeil (Christoph Deil)
I'm still seeing this issue on Mac OS X 10.9 (see main.log here: https://gist.github.com/cdeil/2c18711341dd54e9a54c )
Note that I've made an update request for all Astromatic port here: https://trac.macports.org/ticket/43536#comment:3
Did anyone try the latest SCAMP release ... is this issue fixed?
comment:14 Changed 11 years ago by cdeil (Christoph Deil)
I've attached a diff for an updated Portfile that works for me on Mac OS X 10.9.
Given that this issue is 2 years old and Tim hasn't commented, maybe someone else can review and commit the patch?
comment:15 follow-ups: 16 18 Changed 11 years ago by mf2k (Frank Schima)
Some notes about your patch:
- The $Id$ line should not be changed.
- You also changed the license field, was that intended?
- Use modern checksums.
comment:16 Changed 11 years ago by lpsinger (Leo Singer)
Replying to mf2k@…:
- You also changed the license field, was that intended?
According to the latest scamp manual, the license is GPL-3+.
comment:17 Changed 11 years ago by lpsinger (Leo Singer)
By the way, the patched built fine on my Mavericks machine.
Changed 11 years ago by cdeil (Christoph Deil)
Attachment: | Portfile-scamp.diff added |
---|
comment:18 Changed 11 years ago by cdeil (Christoph Deil)
Replying to mf2k@…:
Some notes about your patch:
- The $Id$ line should not be changed.
Done.
- You also changed the license field, was that intended?
Yes, the license was changed from CeCILL to GPL-3+ :
- Use modern checksums.
Done.
The updated diff is attached as Portfile-scamp.diff
.
comment:19 Changed 11 years ago by cdeil (Christoph Deil)
Could a Macports committer please commit this patch?
comment:20 Changed 10 years ago by lpsinger (Leo Singer)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
See #43536.
comment:21 Changed 10 years ago by lpsinger (Leo Singer)
Since the update to plplot 5.10.0, I now get:
Undefined symbols for architecture x86_64: "_plwid", referenced from: _cplot_allsky in astrcplot.o _cplot_drawcoordgrid in astrcplot.o _cplot_drawloccoordgrid in astrcplot.o _cplot_fgroup in astrcplot.o _cplot_distort in astrcplot.o _cplot_astintsysmap in astrcplot.o _cplot_astrefsysmap in astrcplot.o ... ld: symbol(s) not found for architecture x86_64
It's been renamed:
$ nm /opt/local/lib/libplplotd.dylib | grep plwid 000000000001397f T _c_plwidth
And I can see that plwid
is deprecated in favor of plwidth
. See http://plplot.sourceforge.net/docbook-manual/plplot-html-5.10.0/plwid.html.
comment:22 Changed 10 years ago by lpsinger (Leo Singer)
Christoph, what is the preferred way to contact the upstream developer to ask them to fix this and issue a new release? I see that you went to the forum, but there's also an email author contact: http://www.astromatic.net/team/emmanuel
comment:23 Changed 10 years ago by lpsinger (Leo Singer)
In r121752, I added patches to fix the plplot API change. I also sent the patches to the upstream project.
Please attach the main.log file.