Opened 15 years ago

Closed 15 years ago

#24117 closed defect (fixed)

libproxy 0.4.0 fails to compile on 10.6 64-bit

Reported by: cavinsays@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: nox@…, pope (K. Adam Christensen), marc.hanisch@…, king.tobo@…, raimue (Rainer Müller)
Port: libproxy

Description

Hi,

When doing an update on my ports, I came across a build failure for libproxy 0.4.0. I'm using 10.6 and build in x86_64.

Here is some of the output:

[ 96%] [100%] Built target proxy
Building CXX object libproxy/CMakeFiles/config_gnome.dir/modules/config_gnome.cpp.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.0/libproxy && /usr/bin/g++-4.2   -Dconfig_gnome_EXPORTS -D_POSIX_C_SOURCE=1 -DLIBEXECDIR=\"/opt/local/libexec/\" -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -g -Wall -Werror -fvisibility=hidden -pipe -O2 -arch x86_64  -O3 -DNDEBUG -fPIC -I/opt/local/include -I/opt/local/include/webkit-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtk-2.0 -I/opt/local/include/libsoup-2.4 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/opt/local/include/libxml2 -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.0/libproxy/..   -o CMakeFiles/config_gnome.dir/modules/config_gnome.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.0/libproxy/modules/config_gnome.cpp
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.0/libproxy/modules/config_gnome.cpp: In constructor 'gnome_config_extension::gnome_config_extension()':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.0/libproxy/modules/config_gnome.cpp:117: error: 'FNONBLOCK' was not declared in this scope
make[2]: *** [libproxy/CMakeFiles/config_gnome.dir/modules/config_gnome.cpp.o] Error 1
make[1]: *** [libproxy/CMakeFiles/config_gnome.dir/all] Error 2
make: *** [all] Error 2
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.0" && /usr/bin/make -j2 all " returned error 2
Error: Target org.macports.build returned: shell command failed
DEBUG: Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"

Thanks, Cavin

Change History (8)

comment:1 Changed 15 years ago by pope (K. Adam Christensen)

Cc: pope@… added

Cc Me!

comment:2 Changed 15 years ago by marc.hanisch@…

Cc: marc.hanisch@… added

Cc Me!

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

Owner: changed from macports-tickets@… to devans@…
Port: libproxy added

comment:4 Changed 15 years ago by king.tobo@…

Cc: king.tobo@… added

Cc Me!

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

Cc: nox@… added

comment:6 in reply to:  description Changed 15 years ago by lichadexun@…

I modified config_gnome.cpp line 117 from FNONBLOCK to O_NONBLOCK and libproxy upgraded fine.

comment:8 Changed 15 years ago by raimue (Rainer Müller)

Cc: raimue@… added
Resolution: fixed
Status: newclosed

FNONBLOCK is an alias for O_NONBLOCK, but usually only used in the kernel and not available if compiling with -D_POSIX_C_SOURCE. I will notify upstream as well.

Fixed in r65068.

Note: See TracTickets for help on using tickets.