Ticket #28926 (closed defect: fixed)
ossp-uuid: 'optarg' undeclared
| Reported by: | zakay@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | lion haspatch | Cc: | bit.kevin@…, felix.buenemann@… |
| Port: | ossp-uuid |
Description (last modified by ryandesign@…) (diff)
$ sudo port install postgresql90 ---> Computing dependencies for postgresql90 ---> Dependencies to be installed: ossp-uuid readline ---> Building ossp-uuid Error: Target org.macports.build returned: shell command failed (see log for details) Error: Failed to install ossp-uuid Log for ossp-uuid is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/main.log Error: The following dependencies were not installed: ossp-uuid readline Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
From the log file:
:notice:main ---> Building ossp-uuid :debug:build build phase started at Sun Mar 27 11:29:47 CEST 2011 :debug:build Executing org.macports.build (ossp-uuid) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/uuid-1.6.2" && /usr/bin/make -j2 -w all' :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/uuid-1.6.2' :info:build /Developer/usr/bin/llvm-gcc-4.2 -I. -I. -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -D_POSIX_C_SOURCE -arch x86_64 -c uuid_cli.c :info:build uuid_cli.c: In function 'main': :info:build uuid_cli.c:110: error: 'optarg' undeclared (first use in this function) :info:build uuid_cli.c:110: error: (Each undeclared identifier is reported only once :info:build uuid_cli.c:110: error: for each function it appears in.) :info:build uuid_cli.c:157: error: 'optopt' undeclared (first use in this function) :info:build uuid_cli.c:160: error: 'optind' undeclared (first use in this function) :info:build make: *** [uuid_cli.o] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/uuid-1.6.2' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/uuid-1.6.2" && /usr/bin/make -j2 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details)
Attachments
Change History
comment:1 Changed 2 years ago by ryandesign@…
- Port set to ossp-uuid
- Priority changed from High to Normal
- Description modified (diff)
- Summary changed from Installing Postgres90 fails to ossp-uuid: 'optarg' undeclared
comment:2 in reply to: ↑ description Changed 2 years ago by ryandesign@…
Replying to zakay@…:
:info:build /Developer/usr/bin/llvm-gcc-4.2 -I. -I. -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -D_POSIX_C_SOURCE -arch x86_64 -c uuid_cli.c
Hmm, why is /Developer/usr/bin/llvm-gcc-4.2 being used here? ossp-uuid, like most other ports, should build with /usr/bin/gcc-4.2 on Snow Leopard.
comment:3 follow-up: ↓ 6 Changed 2 years ago by zakay@…
Its because, I am running the developer preview of osx lion.
comment:4 Changed 2 years ago by jmr@…
- Keywords lion added
- Status changed from new to closed
- Resolution set to wontfix
We can't support prerelease OS versions. You might want to check if your NDA allows you to post this sort of info publicly BTW.
comment:6 in reply to: ↑ 3 Changed 2 years ago by bit.kevin@…
Replying to zakay@…:
Its because, I am running the developer preview of osx lion.
Have you solved this problem?
Changed 2 years ago by felix.buenemann@…
- Attachment patch-uuid_cli.c.diff added
Patch for missing getopt.h include in uuid_cli.c
comment:7 Changed 2 years ago by felix.buenemann@…
- Status changed from closed to reopened
- Resolution wontfix deleted
Adding the attached patch-uuid_cli.c.diff to the ports patch files fixes build on some releases of OS X by adding a missing include of getopt.h in uuid_cli.c.
comment:10 Changed 2 years ago by jmr@…
- Status changed from reopened to closed
- Resolution set to fixed

