Opened 15 years ago

Closed 15 years ago

#19902 closed defect (invalid)

libgsasl: syntax error in compiling script

Reported by: Damien@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: syntax, script, link Cc:
Port: libgsasl

Description

Using the +universal trick for 64 bits. Default port options are +ipv6 +quartz +no_x11 -x11 +universal

port -d install libgsasl +idn +universal
…
Making all in src
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -version-info 13:0:6 -export-symbols-regex '^(gsasl|GSASL).*' -no-undefined  -L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.5 -o libgsasl.la -rpath /opt/local/lib init.lo done.lo register.lo error.lo version.lo callback.lo property.lo supportp.lo suggest.lo listmech.lo xstart.lo xstep.lo xfinish.lo xcode.lo mechname.lo base64.lo md5pwd.lo crypto.lo saslprep.lo free.lo obsolete.lo ../gl/libgl.la ../external/libgsasl-external.la ../anonymous/libgsasl-anonymous.la ../plain/libgsasl-plain.la ../login/libgsasl-login.la ../cram-md5/libgsasl-cram_md5.la ../digest-md5/libgsasl-digest_md5.la  ../gssapi/libgsasl-gssapi.la  ../securid/libgsasl-securid.la  -dynamic -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -Wl,-search_paths_first -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv
libtool: link: link -dump -symbols  .libs/init.o .libs/done.o .libs/register.o .libs/error.o .libs/version.o .libs/callback.o .libs/property.o .libs/supportp.o .libs/suggest.o .libs/listmech.o .libs/xstart.o .libs/xstep.o .libs/xfinish.o .libs/xcode.o .libs/mechname.o .libs/base64.o .libs/md5pwd.o .libs/crypto.o .libs/saslprep.o .libs/free.o .libs/obsolete.o   ../gl/.libs/libgl.a ../external/.libs/libgsasl-external.a ../anonymous/.libs/libgsasl-anonymous.a ../plain/.libs/libgsasl-plain.a ../login/.libs/libgsasl-login.a ../cram-md5/.libs/libgsasl-cram_md5.a ../digest-md5/.libs/libgsasl-digest_md5.a ../gssapi/.libs/libgsasl-gssapi.a ../securid/.libs/libgsasl-securid.a |  | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libgsasl.exp
../libtool: eval: line 947: syntax error near unexpected token `|'
../libtool: eval: line 947: `link -dump -symbols  .libs/init.o .libs/done.o .libs/register.o .libs/error.o .libs/version.o .libs/callback.o .libs/property.o .libs/supportp.o .libs/suggest.o .libs/listmech.o .libs/xstart.o .libs/xstep.o .libs/xfinish.o .libs/xcode.o .libs/mechname.o .libs/base64.o .libs/md5pwd.o .libs/crypto.o .libs/saslprep.o .libs/free.o .libs/obsolete.o   ../gl/.libs/libgl.a ../external/.libs/libgsasl-external.a ../anonymous/.libs/libgsasl-anonymous.a ../plain/.libs/libgsasl-plain.a ../login/.libs/libgsasl-login.a ../cram-md5/.libs/libgsasl-cram_md5.a ../digest-md5/.libs/libgsasl-digest_md5.a ../gssapi/.libs/libgsasl-gssapi.a ../securid/.libs/libgsasl-securid.a |  | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libgsasl.exp'
make[2]: *** [libgsasl.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for libgsasl): org.macports.activate org.macports.build org.macports.destroot org.macports.archive org.macports.install
Error: Status 1 encountered during processing.

The problem is in the double pipe (look for " | | "); a variable containing a command is probably empty, causing such output.

Recently, I did encounter the same bug in another port (can't remember which one, sorry).

Change History (5)

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

Cc: jmr@… added

Updated to version 1.1 in r52123. Does that help?

comment:2 in reply to:  1 ; Changed 15 years ago by Damien@…

Replying to jmr@…:

Updated to version 1.1 in r52123. Does that help?

No. I did a port clean and started again.

Default variants are +ipv6 +quartz +no_x11 -x11 +universal, using the +universal trick for 64 bits (but I don't think it is related).

port -d install libgsasl +idn +universal
…
libtool: compile:  /usr/bin/gcc-4.0 -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I./../gl -I../gl -I./.. -DGSASL_BUILDING -I./../digest-md5 -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -c free.c -o free.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_CONFIG_H -I. -I..  -I./../gl -I../gl -I./.. -DGSASL_BUILDING -I./../digest-md5 -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.5.sdk   -fvisibility=hidden -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -c -o obsolete.lo obsolete.c
libtool: compile:  /usr/bin/gcc-4.0 -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I./../gl -I../gl -I./.. -DGSASL_BUILDING -I./../digest-md5 -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -c obsolete.c  -fno-common -DPIC -o .libs/obsolete.o
obsolete.c: In function 'gsasl_client_application_data_set':
obsolete.c:336: warning: 'gsasl_appinfo_set' is deprecated (declared at ./gsasl-compat.h:128)
obsolete.c: In function 'gsasl_client_application_data_get':
obsolete.c:356: warning: 'gsasl_appinfo_get' is deprecated (declared at ./gsasl-compat.h:130)
obsolete.c: In function 'gsasl_server_application_data_set':
obsolete.c:391: warning: 'gsasl_appinfo_set' is deprecated (declared at ./gsasl-compat.h:128)
obsolete.c: In function 'gsasl_server_application_data_get':
obsolete.c:411: warning: 'gsasl_appinfo_get' is deprecated (declared at ./gsasl-compat.h:130)
obsolete.c: In function '_gsasl_obsolete_property_map':
obsolete.c:1832: warning: 'gsasl_client_callback_service_get' is deprecated (declared at obsolete.c:862)
obsolete.c:1846: warning: 'gsasl_client_callback_service_get' is deprecated (declared at obsolete.c:862)
obsolete.c:1860: warning: 'gsasl_client_callback_anonymous_get' is deprecated (declared at obsolete.c:902)
obsolete.c:1874: warning: 'gsasl_client_callback_authentication_id_get' is deprecated (declared at obsolete.c:659)
obsolete.c:1888: warning: 'gsasl_client_callback_authorization_id_get' is deprecated (declared at obsolete.c:699)
obsolete.c:1902: warning: 'gsasl_client_callback_password_get' is deprecated (declared at obsolete.c:739)
obsolete.c:1916: warning: 'gsasl_client_callback_passcode_get' is deprecated (declared at obsolete.c:779)
obsolete.c:1930: warning: 'gsasl_client_callback_pin_get' is deprecated (declared at obsolete.c:820)
obsolete.c:1944: warning: 'gsasl_client_callback_realm_get' is deprecated (declared at obsolete.c:1021)
obsolete.c:1959: warning: 'gsasl_client_callback_qop_get' is deprecated (declared at obsolete.c:940)
obsolete.c: In function '_gsasl_obsolete_callback':
obsolete.c:1999: warning: 'gsasl_server_callback_anonymous_get' is deprecated (declared at obsolete.c:1259)
obsolete.c:2010: warning: 'gsasl_server_callback_external_get' is deprecated (declared at obsolete.c:1220)
obsolete.c:2021: warning: 'gsasl_server_callback_securid_get' is deprecated (declared at obsolete.c:1467)
obsolete.c:2038: warning: 'gsasl_server_callback_gssapi_get' is deprecated (declared at obsolete.c:1509)
obsolete.c:2049: warning: 'gsasl_server_callback_validate_get' is deprecated (declared at obsolete.c:1061)
obsolete.c:2060: warning: 'gsasl_server_callback_retrieve_get' is deprecated (declared at obsolete.c:1101)
obsolete.c:2076: warning: 'gsasl_server_callback_qop_get' is deprecated (declared at obsolete.c:1338)
libtool: compile:  /usr/bin/gcc-4.0 -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I./../gl -I../gl -I./.. -DGSASL_BUILDING -I./../digest-md5 -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -c obsolete.c -o obsolete.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -fvisibility=hidden -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -version-info 13:2:6 -no-undefined  -export-symbols-regex '^(gsasl|GSASL).*'  -L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.5 -o libgsasl.la -rpath /opt/local/lib init.lo done.lo register.lo error.lo version.lo callback.lo property.lo supportp.lo suggest.lo listmech.lo xstart.lo xstep.lo xfinish.lo xcode.lo mechname.lo base64.lo md5pwd.lo crypto.lo saslprep.lo free.lo obsolete.lo ../gl/libgl.la ../external/libgsasl-external.la ../anonymous/libgsasl-anonymous.la ../plain/libgsasl-plain.la ../login/libgsasl-login.la ../cram-md5/libgsasl-cram_md5.la ../digest-md5/libgsasl-digest_md5.la  ../gssapi/libgsasl-gssapi.la  ../securid/libgsasl-securid.la  -dynamic -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -Wl,-search_paths_first -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv
libtool: link: link -dump -symbols  .libs/init.o .libs/done.o .libs/register.o .libs/error.o .libs/version.o .libs/callback.o .libs/property.o .libs/supportp.o .libs/suggest.o .libs/listmech.o .libs/xstart.o .libs/xstep.o .libs/xfinish.o .libs/xcode.o .libs/mechname.o .libs/base64.o .libs/md5pwd.o .libs/crypto.o .libs/saslprep.o .libs/free.o .libs/obsolete.o   ../gl/.libs/libgl.a ../external/.libs/libgsasl-external.a ../anonymous/.libs/libgsasl-anonymous.a ../plain/.libs/libgsasl-plain.a ../login/.libs/libgsasl-login.a ../cram-md5/.libs/libgsasl-cram_md5.a ../digest-md5/.libs/libgsasl-digest_md5.a ../gssapi/.libs/libgsasl-gssapi.a ../securid/.libs/libgsasl-securid.a |  | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libgsasl.exp
../libtool: eval: line 947: syntax error near unexpected token `|'
../libtool: eval: line 947: `link -dump -symbols  .libs/init.o .libs/done.o .libs/register.o .libs/error.o .libs/version.o .libs/callback.o .libs/property.o .libs/supportp.o .libs/suggest.o .libs/listmech.o .libs/xstart.o .libs/xstep.o .libs/xfinish.o .libs/xcode.o .libs/mechname.o .libs/base64.o .libs/md5pwd.o .libs/crypto.o .libs/saslprep.o .libs/free.o .libs/obsolete.o   ../gl/.libs/libgl.a ../external/.libs/libgsasl-external.a ../anonymous/.libs/libgsasl-anonymous.a ../plain/.libs/libgsasl-plain.a ../login/.libs/libgsasl-login.a ../cram-md5/.libs/libgsasl-cram_md5.a ../digest-md5/.libs/libgsasl-digest_md5.a ../gssapi/.libs/libgsasl-gssapi.a ../securid/.libs/libgsasl-securid.a |  | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libgsasl.exp'
make[2]: *** [libgsasl.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_libgsasl/work/libgsasl-1.1" && nice -n 1 make all " returned error 2
Command output: obsolete.c:391: warning: 'gsasl_appinfo_set' is deprecated (declared at ./gsasl-compat.h:128)
obsolete.c: In function 'gsasl_server_application_data_get':
obsolete.c:411: warning: 'gsasl_appinfo_get' is deprecated (declared at ./gsasl-compat.h:130)
obsolete.c: In function '_gsasl_obsolete_property_map':
obsolete.c:1832: warning: 'gsasl_client_callback_service_get' is deprecated (declared at obsolete.c:862)
obsolete.c:1846: warning: 'gsasl_client_callback_service_get' is deprecated (declared at obsolete.c:862)
obsolete.c:1860: warning: 'gsasl_client_callback_anonymous_get' is deprecated (declared at obsolete.c:902)
obsolete.c:1874: warning: 'gsasl_client_callback_authentication_id_get' is deprecated (declared at obsolete.c:659)
obsolete.c:1888: warning: 'gsasl_client_callback_authorization_id_get' is deprecated (declared at obsolete.c:699)
obsolete.c:1902: warning: 'gsasl_client_callback_password_get' is deprecated (declared at obsolete.c:739)
obsolete.c:1916: warning: 'gsasl_client_callback_passcode_get' is deprecated (declared at obsolete.c:779)
obsolete.c:1930: warning: 'gsasl_client_callback_pin_get' is deprecated (declared at obsolete.c:820)
obsolete.c:1944: warning: 'gsasl_client_callback_realm_get' is deprecated (declared at obsolete.c:1021)
obsolete.c:1959: warning: 'gsasl_client_callback_qop_get' is deprecated (declared at obsolete.c:940)
obsolete.c: In function '_gsasl_obsolete_callback':
obsolete.c:1999: warning: 'gsasl_server_callback_anonymous_get' is deprecated (declared at obsolete.c:1259)
obsolete.c:2010: warning: 'gsasl_server_callback_external_get' is deprecated (declared at obsolete.c:1220)
obsolete.c:2021: warning: 'gsasl_server_callback_securid_get' is deprecated (declared at obsolete.c:1467)
obsolete.c:2038: warning: 'gsasl_server_callback_gssapi_get' is deprecated (declared at obsolete.c:1509)
obsolete.c:2049: warning: 'gsasl_server_callback_validate_get' is deprecated (declared at obsolete.c:1061)
obsolete.c:2060: warning: 'gsasl_server_callback_retrieve_get' is deprecated (declared at obsolete.c:1101)
obsolete.c:2076: warning: 'gsasl_server_callback_qop_get' is deprecated (declared at obsolete.c:1338)
libtool: compile:  /usr/bin/gcc-4.0 -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I./../gl -I../gl -I./.. -DGSASL_BUILDING -I./../digest-md5 -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -c obsolete.c -o obsolete.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -fvisibility=hidden -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -version-info 13:2:6 -no-undefined  -export-symbols-regex '^(gsasl|GSASL).*'  -L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.5 -o libgsasl.la -rpath /opt/local/lib init.lo done.lo register.lo error.lo version.lo callback.lo property.lo supportp.lo suggest.lo listmech.lo xstart.lo xstep.lo xfinish.lo xcode.lo mechname.lo base64.lo md5pwd.lo crypto.lo saslprep.lo free.lo obsolete.lo ../gl/libgl.la ../external/libgsasl-external.la ../anonymous/libgsasl-anonymous.la ../plain/libgsasl-plain.la ../login/libgsasl-login.la ../cram-md5/libgsasl-cram_md5.la ../digest-md5/libgsasl-digest_md5.la  ../gssapi/libgsasl-gssapi.la  ../securid/libgsasl-securid.la  -dynamic -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5 -Wl,-search_paths_first -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv
libtool: link: link -dump -symbols  .libs/init.o .libs/done.o .libs/register.o .libs/error.o .libs/version.o .libs/callback.o .libs/property.o .libs/supportp.o .libs/suggest.o .libs/listmech.o .libs/xstart.o .libs/xstep.o .libs/xfinish.o .libs/xcode.o .libs/mechname.o .libs/base64.o .libs/md5pwd.o .libs/crypto.o .libs/saslprep.o .libs/free.o .libs/obsolete.o   ../gl/.libs/libgl.a ../external/.libs/libgsasl-external.a ../anonymous/.libs/libgsasl-anonymous.a ../plain/.libs/libgsasl-plain.a ../login/.libs/libgsasl-login.a ../cram-md5/.libs/libgsasl-cram_md5.a ../digest-md5/.libs/libgsasl-digest_md5.a ../gssapi/.libs/libgsasl-gssapi.a ../securid/.libs/libgsasl-securid.a |  | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libgsasl.exp
../libtool: eval: line 947: syntax error near unexpected token `|'
../libtool: eval: line 947: `link -dump -symbols  .libs/init.o .libs/done.o .libs/register.o .libs/error.o .libs/version.o .libs/callback.o .libs/property.o .libs/supportp.o .libs/suggest.o .libs/listmech.o .libs/xstart.o .libs/xstep.o .libs/xfinish.o .libs/xcode.o .libs/mechname.o .libs/base64.o .libs/md5pwd.o .libs/crypto.o .libs/saslprep.o .libs/free.o .libs/obsolete.o   ../gl/.libs/libgl.a ../external/.libs/libgsasl-external.a ../anonymous/.libs/libgsasl-anonymous.a ../plain/.libs/libgsasl-plain.a ../login/.libs/libgsasl-login.a ../cram-md5/.libs/libgsasl-cram_md5.a ../digest-md5/.libs/libgsasl-digest_md5.a ../gssapi/.libs/libgsasl-gssapi.a ../securid/.libs/libgsasl-securid.a |  | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libgsasl.exp'
make[2]: *** [libgsasl.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for libgsasl): org.macports.activate org.macports.build org.macports.destroot org.macports.archive org.macports.install
Error: Status 1 encountered during processing.

comment:3 in reply to:  2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Replying to Damien@…:

Default variants are +ipv6 +quartz +no_x11 -x11 +universal, using the +universal trick for 64 bits (but I don't think it is related).

I can repeat the problem on Mac OS X 10.4.11 Intel with +universal with universal_archs set to x86_64 only. I do not see any problem building +universal for all four archs i386 ppc x86_64 ppc64, nor when building without the universal variant.

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Cc: jmr@… removed

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed

MacPorts 1.8 supports changing build_arch in macports.conf to change the build architecture without building universal. It is not supported to set universal_archs to a single value; the universal variant is for building for multiple architectures.

Note: See TracTickets for help on using tickets.