Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#3039 closed defect (fixed)

BUG: gnuplot doesn't build on 10.4

Reported by: bench@… Owned by: rshaw@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: tom@…, justin@…
Port:

Description

---> Building gnuplot with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_math_gnuplot/work/gnuplot-4.0.0" && make all" returned error 2 Command output: /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libncurses.dylib(lib_tputs.o) definition of _PC /usr/bin/ld: warning multiple definitions of symbol _UP /opt/local/lib/libreadline.dylib(terminal.so) definition of _UP /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libncurses.dylib(lib_termcap.o) definition of _UP /usr/bin/ld: warning multiple definitions of symbol _BC /opt/local/lib/libreadline.dylib(terminal.so) definition of _BC /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libncurses.dylib(lib_termcap.o) definition of _BC if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term -DBINDIR=\"/opt/local/bin\" -DX11_DRIVER_DIR=\"/opt/local/libexec/gnuplot/4.0\" -DCONTACT=\"gnuplot-bugs@…\" -DHELPFILE=\"/opt/local/share/gnuplot/4.0/gnuplot.gih\" -I/opt/local/include -no-cpp-precomp -I/usr/X11R6/include -I/opt/local/include -I/opt/local/include

-g -O2 -ObjC -MT bf_test.o -MD -MP -MF ".deps/bf_test.Tpo" \

-c -o bf_test.o test -f 'bf_test.c' || echo './'bf_test.c; \

then mv ".deps/bf_test.Tpo" ".deps/bf_test.Po"; \ else rm -f ".deps/bf_test.Tpo"; exit 1; \ fi gcc -g -O2 -ObjC -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/usr/X11R6/lib -L/opt/local/lib -framework Carbon -o bf_test

bf_test.o binary.o alloc.o -laquaterm -framework Foundation

/usr/bin/ld: warning prebinding not disabled because (PAGEZERO segment (address = 0x0 size = 0x1000) of bf_test overlaps with TEXT segment (address = 0x0 size = 0xd000) of /opt/local/lib/libaquaterm.1.dylib /usr/bin/ld: warning prebinding not disabled because (TEXT segment (address = 0x1000 size = 0x9000) of bf_test overlaps with TEXT segment (address = 0x0 size = 0xd000) of /opt/local/lib/libaquaterm.1.dylib /usr/bin/ld: warning prebinding not disabled because (DATA segment (address = 0xa000 size = 0x1000) of bf_test overlaps with TEXT segment (address = 0x0 size = 0xd000) of /opt/local/lib/libaquaterm.1.dylib /usr/bin/ld: warning prebinding not disabled because (LINKEDIT segment (address = 0xb000 size = 0x5000) of bf_test overlaps with TEXT segment (address = 0x0 size = 0xd000) of /opt/local/lib/libaquaterm.1.dylib /usr/bin/ld: warning prebinding not disabled because (LINKEDIT segment (address = 0xb000 size = 0x5000) of bf_test overlaps with DATA segment (address = 0xd000 size = 0x1000) of /opt/local/lib/libaquaterm.1.dylib /usr/bin/ld: warning prebinding not disabled because (LINKEDIT segment (address = 0xb000 size = 0x5000) of bf_test overlaps with OBJC segment (address = 0xe000 size = 0x2000) of /opt/local/lib/libaquaterm.1.dylib if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term -DBINDIR=\"/opt/local/bin\" -DX11_DRIVER_DIR=\"/opt/local/libexec/gnuplot/4.0\" -DCONTACT=\"gnuplot-bugs@…\" -DHELPFILE=\"/opt/local/share/gnuplot/4.0/gnuplot.gih\" -I/opt/local/include -no-cpp-precomp -I/usr/X11R6/include -I/opt/local/include -I/opt/local/include

-g -O2 -ObjC -MT gplt_x11.o -MD -MP -MF ".deps/gplt_x11.Tpo" \

-c -o gplt_x11.o test -f 'gplt_x11.c' || echo './'gplt_x11.c; \

then mv ".deps/gplt_x11.Tpo" ".deps/gplt_x11.Po"; \ else rm -f ".deps/gplt_x11.Tpo"; exit 1; \ fi gplt_x11.c:519: error: 'Class' redeclared as different kind of symbol <built-in>:0: error: previous declaration of 'Class' was here make[3]: * [gplt_x11.o] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Attachments (2)

Portfile.diff (323 bytes) - added by benwill@… 19 years ago.
Portfile diff
patch-src-gplt_x11.c (2.1 KB) - added by benwill@… 19 years ago.
Patchfile to go with above portfile

Download all attachments as: .zip

Change History (13)

comment:1 Changed 20 years ago by bench@…

op_sys: Mac OS X 10.0Mac OS X 10.4

comment:2 Changed 20 years ago by jmpp@…

Owner: changed from darwinports-bugs@… to rshaw@…
Summary: gnuplot doesn't build on 10.4BUG: gnuplot doesn't build on 10.4

Assigning bug to port maintainer.

-jmpp

comment:3 Changed 19 years ago by tom@…

Cc: tom@… added

comment:4 Changed 19 years ago by tom@…

* Bug 3178 has been marked as a duplicate of this bug. *

comment:5 Changed 19 years ago by justin@…

Cc: justin@… added

comment:6 Changed 19 years ago by justin@…

This appears to be a gcc-4 versus gcc-3 issue.

By default in 10.4, gcc means gcc-4.0 -- changing this to gcc-3.3 causes the gnuplot port to build and work without any problems at all.

I'm not up on what needs to be changed to make gcc-4 happy with the code (i.e. the real fix) so I just built my version of the port with gcc-3. Not a true solution, but hopefully should point to one.

comment:7 Changed 19 years ago by wjgoh@…

Another way of solving the bug is to compile without X11 support. Adding +no_x11 to /opt/local/etc/ ports/variants.conf solves the problem.

GNUplot will then use AquaTerm and not X11. This could cause problems if you need X11 for features like mouse zooming, etc.

comment:8 Changed 19 years ago by marius173@…

My workaround for this bug is a bit un-DarwinPort like (i.e.ugly):

1) port build gnuplot: this will fail as above.

2) remove -ObjC from src/Makefile's CPPFLAGS: Objective C is no longer needed at this point.

2) port install gnuplot: this now finishes the compile.

comment:9 Changed 19 years ago by m@…

I am just confirming that gnuplot built succesfully using 'port install gnuplot +no_x11'

comment:10 Changed 19 years ago by benwill@…

The attached portfile patch and patchfile allow gnuplot +x11 to build on tiger.

I took the (trivial) fix from gnuplot CVS, see:

http://thread.gmane.org/gmane.comp.graphics.gnuplot.devel/2618 http://cvs.sourceforge.net/viewcvs.py/gnuplot/gnuplot/src/gplt_x11.c?rev=1.136&view=markup

Changed 19 years ago by benwill@…

Attachment: Portfile.diff added

Portfile diff

Changed 19 years ago by benwill@…

Attachment: patch-src-gplt_x11.c added

Patchfile to go with above portfile

comment:11 Changed 19 years ago by landonf@…

Resolution: fixed
Status: newclosed

Fix committed

Note: See TracTickets for help on using tickets.