Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect lddlflags settings in hints/darwin.sh (perl 5.8.8) #9437

Open
p5pRT opened this issue Aug 1, 2008 · 4 comments
Open

incorrect lddlflags settings in hints/darwin.sh (perl 5.8.8) #9437

p5pRT opened this issue Aug 1, 2008 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Aug 1, 2008

Migrated from rt.perl.org#57518 (status was 'open')

Searchable as RT57518$

@p5pRT
Copy link
Author

p5pRT commented Aug 1, 2008

From vincent-perl@vinc17.net

For perl 5.8.8, the default lddlflags settings from hints/darwin.sh

  lddlflags="${ldflags} -bundle -undefined dynamic_lookup"

seems to be incorrect. The reason is that a -L... flag provided in
$LDFLAGS will have the precedence over the -L flags relative to the
build directory, meaning that the link may be done against an old
library version. For instance, see

  http​://trac.macports.org/ticket/16165

With the RRDs.pm module from rrdtool, the RRDs.bundle file is produced
by the command​:

  env MACOSX_DEPLOYMENT_TARGET=10.3 cc -L/opt/local/lib -bundle -undefined dynamic_lookup RRDs.o -L../../src/.libs/ -lrrd -o blib/arch/auto/RRDs/RRDs.bundle

As you can see, -L/opt/local/lib is before -L../../src/.libs/ hence the
problem during an upgrade of the module.

grep -r 'lddlflags=.*${\?ldflags' hints

shows that only darwin.sh, epix.sh and rhapsody.sh use $ldflags to set
lddlflags.

--
Vincent Lefèvre <vincent@​vinc17.org> - Web​: <http​://www.vinc17.org/>
100% accessible validated (X)HTML - Blog​: <http​://www.vinc17.org/blog/>
Work​: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

@p5pRT
Copy link
Author

p5pRT commented Jan 13, 2012

From @jkeenan

On Fri Aug 01 15​:56​:38 2008, vinc17 wrote​:

For perl 5.8.8, the default lddlflags settings from hints/darwin.sh

lddlflags="${ldflags} -bundle -undefined dynamic_lookup"

seems to be incorrect. The reason is that a -L... flag provided in
$LDFLAGS will have the precedence over the -L flags relative to the
build directory, meaning that the link may be done against an old
library version. For instance, see

http​://trac.macports.org/ticket/16165

With the RRDs.pm module from rrdtool, the RRDs.bundle file is produced
by the command​:

env MACOSX_DEPLOYMENT_TARGET=10.3 cc -L/opt/local/lib -bundle
-undefined dynamic_lookup RRDs.o -L../../src/.libs/ -lrrd -o
blib/arch/auto/RRDs/RRDs.bundle

As you can see, -L/opt/local/lib is before -L../../src/.libs/ hence
the
problem during an upgrade of the module.

grep -r 'lddlflags=.*${\?ldflags' hints

shows that only darwin.sh, epix.sh and rhapsody.sh use $ldflags to set
lddlflags.

I believe this is, in blead, the part of hints/darwin.sh that the OP is
referring to​:

#####
  185 lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
  186 case "$ld" in
  187 *MACOSX_DEVELOPMENT_TARGET*) ;;
  188 *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
  189 esac
#####

Are there any Darwin experts on list who could comment about this?

Thank you very much.
Jim Keenan

@p5pRT
Copy link
Author

p5pRT commented Jan 13, 2012

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jan 28, 2013

From @jkeenan

On Thu Jan 12 17​:08​:37 2012, jkeenan wrote​:

On Fri Aug 01 15​:56​:38 2008, vinc17 wrote​:

For perl 5.8.8, the default lddlflags settings from hints/darwin.sh

lddlflags="${ldflags} -bundle -undefined dynamic_lookup"

seems to be incorrect. The reason is that a -L... flag provided in
$LDFLAGS will have the precedence over the -L flags relative to the
build directory, meaning that the link may be done against an old
library version. For instance, see

http​://trac.macports.org/ticket/16165

With the RRDs.pm module from rrdtool, the RRDs.bundle file is produced
by the command​:

env MACOSX_DEPLOYMENT_TARGET=10.3 cc -L/opt/local/lib -bundle
-undefined dynamic_lookup RRDs.o -L../../src/.libs/ -lrrd -o
blib/arch/auto/RRDs/RRDs.bundle

As you can see, -L/opt/local/lib is before -L../../src/.libs/ hence
the
problem during an upgrade of the module.

grep -r 'lddlflags=.*${\?ldflags' hints

shows that only darwin.sh, epix.sh and rhapsody.sh use $ldflags to set
lddlflags.

I believe this is, in blead, the part of hints/darwin.sh that the OP is
referring to​:

#####
185 lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
186 case "$ld" in
187 *MACOSX_DEVELOPMENT_TARGET*) ;;
188 *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
189 esac
#####

Are there any Darwin experts on list who could comment about this?

Thank you very much.
Jim Keenan

Again I put out a request that any Darwin-knowledgeable people take a
look at this issue.

Thank you very much.
Jim keenan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants