codegooglecom / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Linking C shared library (Mac OS X) #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cmake ./
2. make

What is the expected output? What do you see instead?
Successful build.

Linking C shared library ../../../perl/blib/arch/auto/Net/Libproxy.dylib
Undefined symbols:
  "_Perl_call_list", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
  "_Perl_Imarkstack_ptr_ptr", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_Iunitcheckav_ptr", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
  "_Perl_Istack_sp_ptr", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_newSV_type", referenced from:
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
  "_Perl_sv_2iv_flags", referenced from:
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_sv_setref_pv", referenced from:
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
  "_Perl_av_push", referenced from:
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
  "_Perl_newRV", referenced from:
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
  "_Perl_newSVpv", referenced from:
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
  "_Perl_newXS", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
  "_Perl_croak", referenced from:
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_croak_xs_usage", referenced from:
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_Istack_base_ptr", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_Gthr_key_ptr", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _boot_Net__Libproxy in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy__ProxyFactoryPtr_DESTROY in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_Iscopestack_ix_ptr", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
  "_Perl_sv_2pv_flags", referenced from:
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_sv_derived_from", referenced from:
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_sv_2mortal", referenced from:
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
  "_Perl_sv_newmortal", referenced from:
      _XS_Net__Libproxy_proxy_factory_new in Libproxy.c.o
      _XS_Net__Libproxy_proxy_factory_get_proxies in Libproxy.c.o
  "_Perl_sv_setsv_flags", referenced from:
      XS_pack_charPtrPtr(sv*, char**, int)in Libproxy.c.o
  "_Perl_Isv_yes_ptr", referenced from:
      _boot_Net__Libproxy in Libproxy.c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [perl/blib/arch/auto/Net/Libproxy.dylib] Error 1
make[1]: *** [bindings/perl/src/CMakeFiles/PLlibproxy.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
0.4.2

Please provide any additional information below.
Same result under Mac OS X 10.5.8 and 10.6.3

cmake output:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
MODULES TO BUILD:
        config_envvar
        config_gnome
        config_kde4
    *   config_macosx
        config_w32reg
    *   ignore_domain
    *   ignore_hostname
    *   ignore_ip
        network_networkmanager
        pacrunner_mozjs
    *   pacrunner_webkit
    *   wpad_dns_alias

-- Found PythonInterp: /usr/local/bin/python2.6
-- Found Perl: /usr/local/bin/perl
-- Found PerlLibs:
/usr/local/lib/perl5/5.12.1/darwin-thread-multi-2level/CORE/libperl.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/libproxy-0.4.2

Original issue reported on code.google.com by mschamsc...@gmail.com on 21 May 2010 at 11:49

GoogleCodeExporter commented 9 years ago
We will investigate this issue soon. Meanwhile (if you don't need PERL binding) 
you
may try and compile without it using:

cmake . -DWITH_PERL=OFF

Original comment by nicolas.dufresne@gmail.com on 21 May 2010 at 3:07

GoogleCodeExporter commented 9 years ago
Also, could you *attach* the output of "make VERBOSE=1". I'm insisting on 
attaching
those long traces since they obfuscate the thread otherwise.

Thanks

Original comment by nicolas.dufresne@gmail.com on 21 May 2010 at 3:59

GoogleCodeExporter commented 9 years ago
I've attached the long trace.

Original comment by mschamsc...@gmail.com on 21 May 2010 at 4:15

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by nicolas.dufresne@gmail.com on 7 Jun 2010 at 4:11