Menu

#46 Build fails on Mac OS X 10.6.8

none
closed-wont-fix
nobody
None
medium
2014-03-12
2014-02-06
No

Can't build on Mac OS X 10.6.8
I tried to install as described here:
http://miskstuf.tumblr.com/post/6840077505/winexe-1-00-linux-macos-windows-7-finally-working
but buid fails.

What am I doing wrong? Is there a fix?

In summary what I did was (after applying 1.patch):

cd winexe-1.00/source4
./autogen.sh
./configure
make

Samba will be compiled with flags:
CPP = gcc -E
CPPFLAGS = -I./include -I. -I./lib -I./../lib/replace -I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H
CC = gcc
CFLAGS =
PICFLAG = -fno-common
BNLD = gcc
BNLD_FLAGS =
STLD = /opt/local/bin/ar
STLD_FLAGS = -rcs
SHLD = gcc
SHLD_FLAGS = -dynamiclib -Wl,-search_paths_first -undefined error
MDLD = gcc
MDLD_FLAGS = -dynamiclib -Wl,-search_paths_first -undefined dynamic_lookup
SHLIBEXT = dylib
srcdir = .
builddir = .
pwd = /Users/kmmertes/winexe-1.00/source4

...
Lots of compiler messages (warnings, but no errors)
...

Linking bin/regpatch
ld: warning: directory not found for option '-L./bin/static'
ld: warning: directory not found for option '-L./bin/shared'
Undefined symbols for architecture x86_64:
"_gcry_control", referenced from:
_tls_cert_generate in tls.o
"_gnutls_transport_set_lowat", referenced from:
_tls_init_server in tls.o
_tls_init_client in tls.o
"_libintl_bindtextdomain", referenced from:
_krb5_init_context in heimdal_krb5.o
_krb5_init_ets in heimdal_krb5.o
"_libintl_dgettext", referenced from:
_init_ccapi in heimdal_krb5.o
_make_cred_from_ccred in heimdal_krb5.o
_acc_store_cred in heimdal_krb5.o
_acc_get_principal in heimdal_krb5.o
_acc_get_first in heimdal_krb5.o
_acc_remove_cred in heimdal_krb5.o
_acc_get_default_name in heimdal_krb5.o
...
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [bin/regpatch] Error 1

gcc -v yields:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin10/4.6.4/lto-wrapper
Target: x86_64-apple-darwin10
Configured with: /opt/local/var/macports/build/_opt_mports_dports_lang_gcc46/gcc46/work/gcc-4.6.4/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc46 --includedir=/opt/local/include/gcc46 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.6 --with-local-prefix=/opt/local --with-libiconv-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.6 --with-gxx-include-dir=/opt/local/include/gcc46/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check --with-pkgversion='MacPorts gcc46 4.6.4_3'
Thread model: posix
gcc version 4.6.4 (MacPorts gcc46 4.6.4_3)

1 Attachments

Discussion

  • ahajda

    ahajda - 2014-03-12

    Sorry for late reply.
    I do not support version 1.0 anymore, especially on mac which I have no access to.
    Please try with latest version from git repository:
    git clone git://git.code.sf.net/p/winexe/winexe-waf winexe

     
  • Thomas Hood

    Thomas Hood - 2014-03-12
    • status: open --> closed-wont-fix
     

Log in to post a comment.