Bug 86283 - devel/newt build WITH_PYTHON fails on amd64
Summary: devel/newt build WITH_PYTHON fails on amd64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Hye-Shik Chang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-18 02:00 UTC by Tim Middleton
Modified: 2006-10-09 13:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Middleton 2005-09-18 02:00:11 UTC
On amd64 building newt with the WITH_PYTHON option set fails. See console output below...

How-To-Repeat: # make -DWITH_PYTHON
===>  Extracting for newt-py24-0.51.0_2
=> Checksum OK for newt-0.51.0.tar.gz.
===>  Patching for newt-py24-0.51.0_2
===>  Applying FreeBSD patches for newt-py24-0.51.0_2
/usr/bin/sed -i.bak -e 's,^\(SONAME=\).*,\151,g'  /tmp/usr/ports/devel/newt/work/newt-0.51.0/configure
===>   newt-py24-0.51.0_2 depends on file: /usr/local/lib/python2.4/distutils/core.py - found
===>   newt-py24-0.51.0_2 depends on file: /usr/local/bin/python - found
===>   newt-py24-0.51.0_2 depends on shared library: slang.1 - found
===>   newt-py24-0.51.0_2 depends on shared library: popt.0 - found
===>  Configuring for newt-py24-0.51.0_2
creating cache ./config.cache
checking for gcc... cc
checking whether the C compiler (cc -O -pipe  ) works... yes
checking whether the C compiler (cc -O -pipe  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether ln -s works... yes
checking how to run the C preprocessor... cc -E
checking for sys/select.h... yes
checking for alloca.h... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
===>  Building for newt-py24-0.51.0_2
cc -O -pipe   -I/usr/local/include -I/usr/local/include -DVERSION=\"0.51.0\" -c -o newt.o newt.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c button.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c form.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c checkbox.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c entry.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c label.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c listbox.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c scrollbar.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c textbox.c
textbox.c: In function `doReflow':
textbox.c:211: warning: assignment discards qualifiers from pointer target type
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c scale.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c grid.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c windows.c
windows.c: In function `newtWinMenu':
windows.c:157: warning: cast to pointer from integer of different size
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c buttonbar.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c checkboxtree.c
ar q libnewt.a newt.o button.o form.o checkbox.o entry.o label.o listbox.o  scrollbar.o textbox.o scale.o grid.o windows.o buttonbar.o  checkboxtree.o
ar: creating libnewt.a
ranlib libnewt.a
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c test.c
cc -g  -L/usr/local/lib -L/usr/local/lib -o test test.o libnewt.a -lslang -lm -lpopt -lncurses -static
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c whiptail.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c dialogboxes.c
dialogboxes.c: In function `inputBox':
dialogboxes.c:138: warning: assignment discards qualifiers from pointer target type
dialogboxes.c: In function `listBox':
dialogboxes.c:226: warning: cast to pointer from integer of different size
dialogboxes.c:237: warning: cast from pointer to integer of different size
dialogboxes.c:238: warning: assignment discards qualifiers from pointer target type
dialogboxes.c: In function `checkList':
dialogboxes.c:343: warning: assignment discards qualifiers from pointer target type
dialogboxes.c:358: warning: assignment discards qualifiers from pointer target type
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -DVERSION=\"0.51.0\" -c -o newt.So newt.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o button.So button.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o form.So form.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o checkbox.So checkbox.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o entry.So entry.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o label.So label.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o listbox.So listbox.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o scrollbar.So scrollbar.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o textbox.So textbox.c
textbox.c: In function `doReflow':
textbox.c:211: warning: assignment discards qualifiers from pointer target type
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o scale.So scale.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o grid.So grid.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o windows.So windows.c
windows.c: In function `newtWinMenu':
windows.c:157: warning: cast to pointer from integer of different size
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o buttonbar.So buttonbar.c
cc -O -pipe   -I/usr/local/include -I/usr/local/include -fPIC -c -O -pipe   -I/usr/local/include -I/usr/local/include -o checkboxtree.So checkboxtree.c
cc -shared  -L/usr/local/lib -L/usr/local/lib -o libnewt.so.51 -Wl,-soname,libnewt.so.51 newt.So button.So form.So checkbox.So entry.So label.So listbox.So  scrollbar.So textbox.So scale.So grid.So windows.So buttonbar.So  checkboxtree.So -lslang -lm -lc -lpopt -lncurses
cc -g  -L/usr/local/lib -L/usr/local/lib -o whiptail whiptail.o dialogboxes.o -L . libnewt.so.51 -lslang -lm -lpopt -lncurses -lpopt
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c testgrid.c
cc -g  -L/usr/local/lib -L/usr/local/lib -o testgrid testgrid.o libnewt.a -lslang -lm -lpopt -lncurses
cc -O -pipe   -I/usr/local/include -I/usr/local/include -c testtree.c
testtree.c: In function `main':
testtree.c:111: warning: assignment from incompatible pointer type
testtree.c:118: warning: cast from pointer to integer of different size
testtree.c:121: warning: assignment from incompatible pointer type
testtree.c:128: warning: cast from pointer to integer of different size
cc -g  -L/usr/local/lib -L/usr/local/lib -o testtree testtree.o libnewt.a -lslang -lm -lpopt -lncurses
running build
running build_py
creating build
creating build/lib.freebsd-5.4-RELEASE-amd64-2.4
copying snack.py -> build/lib.freebsd-5.4-RELEASE-amd64-2.4
running build_ext
building '_snack' extension
creating build/temp.freebsd-5.4-RELEASE-amd64-2.4
cc -fno-strict-aliasing -DNDEBUG -O -pipe -DTHREAD_STACK_SIZE=0x20000 -O -pipe -fPIC -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include/python2.4 -c snackmodule.c -o build/temp.freebsd-5.4-RELEASE-amd64-2.4/snackmodule.o
cc -shared -pthread -O -pipe build/temp.freebsd-5.4-RELEASE-amd64-2.4/snackmodule.o -L. -L/usr/local/lib -L/usr/local/lib -lnewt -lpopt -lslang -lncurses -o build/lib.freebsd-5.4-RELEASE-amd64-2.4/_snack.so
/usr/bin/ld: ./libnewt.a(newt.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
./libnewt.a: could not read symbols: Bad value
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/devel/newt.
Comment 1 Pav Lucistnik freebsd_committer 2005-09-18 11:59:00 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perky

Over to maintainer
Comment 2 Hye-Shik Chang freebsd_committer 2006-10-09 13:10:42 UTC
State Changed
From-To: open->closed

Fixed. Thank you!
Comment 3 dfilter service freebsd_committer 2006-10-09 13:11:33 UTC
perky       2006-10-09 12:11:00 UTC

  FreeBSD ports repository

  Modified files:
    devel/newt           Makefile 
    devel/newt/files     setup.py 
  Log:
  Fix build with WITH_PYTHON=yes on amd64
  
  PR:             86283
  Submitted by:   Tim Middleton <x@vex.net>
  
  Revision  Changes    Path
  1.28      +1 -0      ports/devel/newt/Makefile
  1.3       +2 -2      ports/devel/newt/files/setup.py
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"