Problem with configure.env and build.env

Simon Ruderich simon at ruderich.com
Wed Jul 4 11:23:40 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I'm trying to build qt3-mac but it failed with the same error like
reported on [trac][].

After doing some debugging I found the problem. The environment
specified in build.env is not set and so the libraries are not found
because DYLD_LIBRARY_PATH is not set correctly.

I don't know why the environment is not setup correctly, but it looks
like it's not working for configure.env either. The output with port -d
shows the build environment is empty and the configuration environment
is only filled with default values and not those from the Portfile.

- --->  Configuring qt3-mac
DEBUG: Executing com.apple.configure (qt3-mac)
DEBUG: Environment: CXXFLAGS='-O2' CPPFLAGS='-I/opt/local/include'
CFLAGS='-O2' LDFLAGS='-L/opt/local/lib'
DEBUG: Assembled command: ...
...
- --->  Building qt3-mac with target symlinks src-qmake src-moc sub-src
sub-tools
DEBUG: Executing com.apple.build (qt3-mac)
DEBUG: Environment:
DEBUG: Assembled command: ...

I fixed this problem temporarily by added the following line to the
build rules in the Portfile.

build.cmd "export DYLD_LIBRARY_PATH='${worksrcpath}/lib'; make"

But this is of course no real solution, but so I could build qt3-mac.

If you please could look into this. I'm using port version 1.442 (fresh
4.000 install and updated using port selfsync).

Thanks for your help,
Simon

[trac]: http://trac.macports.org/projects/macports/ticket/11895
- --
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGi+WsYRX4BO+zMikRCn0ZAKDXl7W+XJVBW/ZQ3Q616XdGhuqTAACgof51
dU4JK3EfV/TMeJa2TD6ntxQ=
=LnEK
-----END PGP SIGNATURE-----



More information about the macports-dev mailing list